# Radiant: config error

**URL:** <https://www.ruby-forum.com/t/radiant-config-error/86716>\
**Category:** Radiant CMS\
**Created:** [February 24, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/radiant-config-error/86716 "2007-02-24T23:50:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![keith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@keith](https://www.ruby-forum.com/u/keith)\
**Post date:** [February 24, 2007, 11:50pm UTC](https://www.ruby-forum.com/t/radiant-config-error/86716/1 "2007-02-24T23:50:39Z")

</div>

Hi

I’ve installed Radiant on Site5 hosting using the wiki tutorial  
referring to  
a small orange hosting.I’m getting the following error at the end of the  
tutorial.

ActiveRecord::StatementInvalid in SiteController#show\_page

Mysql::Error: Table ‘buyscoot\_radiantdev.config’ doesn’t exist: SHOW  
FIELDS  
FROM config  
RAILS\_ROOT: …/config/…  
Application Trace [http://70.47.63.150/buyscooter.co.uk/](http://70.47.63.150/buyscooter.co.uk/) | Framework  
Trace  
[http://70.47.63.150/buyscooter.co.uk/](http://70.47.63.150/buyscooter.co.uk/) | Full Trace  
[http://70.47.63.150/buyscooter.co.uk/](http://70.47.63.150/buyscooter.co.uk/)  
#{RAILS\_ROOT}/vendor/rails/activerecord/lib/active\_record/connection\_adapter  
s/abstract\_adapter.rb:120:in `log' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/connection_adapter s/mysql_adapter.rb:184:in `execute’  
#{RAILS\_ROOT}/vendor/rails/activerecord/lib/active\_record/connection\_adapter  
s/mysql\_adapter.rb:292:in `columns' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:696:in `columns’  
#{RAILS\_ROOT}/vendor/rails/activerecord/lib/active\_record/base.rb:709:in  
`column_names' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:722:in `column\_methods\_hash’  
#{RAILS\_ROOT}/vendor/rails/activerecord/lib/active\_record/base.rb:1158:in  
`all_attributes_exists?' #{RAILS_ROOT}/lib/login_system.rb:77:in `all?’  
#{RAILS\_ROOT}/app/models/radiant/config.rb:31:in `[]' #{RAILS_ROOT}/app/controllers/site_controller.rb:47:in `dev?’  
#{RAILS\_ROOT}/app/controllers/site\_controller.rb:51:in `live?' #{RAILS_ROOT}/app/controllers/site_controller.rb:18:in `show\_page’  
#{RAILS\_ROOT}/vendor/rails/activerecord/lib/active\_record/connection\_adapter  
s/abstract\_adapter.rb:120:in `log' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/connection_adapter s/mysql_adapter.rb:184:in `execute’  
#{RAILS\_ROOT}/vendor/rails/activerecord/lib/active\_record/connection\_adapter  
s/mysql\_adapter.rb:292:in `columns' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:696:in `columns’  
#{RAILS\_ROOT}/vendor/rails/activerecord/lib/active\_record/base.rb:709:in  
`column_names' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:722:in `column\_methods\_hash’  
#{RAILS\_ROOT}/vendor/rails/activerecord/lib/active\_record/base.rb:1158:in  
`all_attributes_exists?' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1158:in `all\_attributes\_exists?’  
#{RAILS\_ROOT}/vendor/rails/activerecord/lib/active\_record/base.rb:1095:in  
`method_missing' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:941:in `perform\_action\_without\_filters’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/filters.rb:368:i  
n `perform_action_without_benchmark' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 69:in `perform\_action\_without\_rescue’  
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 69:in `perform\_action\_without\_rescue’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/rescue.rb:82:in  
`perform_action' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:408:in `process\_without\_filters’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/filters.rb:377:i  
n `process_without_session_management_support' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/session_manageme nt.rb:117:in `process’  
#{RAILS\_ROOT}/vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:150:in `process\_request’  
#{RAILS\_ROOT}/vendor/rails/railties/lib/fcgi\_handler.rb:54:in `process!' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in `each\_cgi’  
/usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each_cgi' #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:53:in `process!’  
#{RAILS\_ROOT}/vendor/rails/railties/lib/fcgi\_handler.rb:23:in `process!' dispatch.fcgi:24 #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/connection_adapter s/abstract_adapter.rb:120:in `log’  
#{RAILS\_ROOT}/vendor/rails/activerecord/lib/active\_record/connection\_adapter  
s/mysql\_adapter.rb:184:in `execute' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/connection_adapter s/mysql_adapter.rb:292:in `columns’  
#{RAILS\_ROOT}/vendor/rails/activerecord/lib/active\_record/base.rb:696:in  
`columns' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:709:in `column\_names’  
#{RAILS\_ROOT}/vendor/rails/activerecord/lib/active\_record/base.rb:722:in  
`column_methods_hash' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1158:in `all\_attributes\_exists?’  
#{RAILS\_ROOT}/lib/login\_system.rb:77:in `all?' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1158:in `all\_attributes\_exists?’  
#{RAILS\_ROOT}/vendor/rails/activerecord/lib/active\_record/base.rb:1095:in  
`method_missing' #{RAILS_ROOT}/app/models/radiant/config.rb:31:in `[]’  
#{RAILS\_ROOT}/app/controllers/site\_controller.rb:47:in `dev?' #{RAILS_ROOT}/app/controllers/site_controller.rb:51:in `live?’  
#{RAILS\_ROOT}/app/controllers/site\_controller.rb:18:in `show_page' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:941:in `perform\_action\_without\_filters’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/filters.rb:368:i  
n `perform_action_without_benchmark' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 69:in `perform\_action\_without\_rescue’  
/usr/lib/ruby/1.8/benchmark.rb:293:in `measure' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 69:in `perform\_action\_without\_rescue’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/rescue.rb:82:in  
`perform_action' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:408:in `process\_without\_filters’  
#{RAILS\_ROOT}/vendor/rails/actionpack/lib/action\_controller/filters.rb:377:i  
n `process_without_session_management_support' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/session_manageme nt.rb:117:in `process’  
#{RAILS\_ROOT}/vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:150:in `process\_request’  
#{RAILS\_ROOT}/vendor/rails/railties/lib/fcgi\_handler.rb:54:in `process!' /usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in `each\_cgi’  
/usr/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each_cgi' #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:53:in `process!’  
#{RAILS\_ROOT}/vendor/rails/railties/lib/fcgi\_handler.rb:23:in `process!’  
dispatch.fcgi:24

Request

## Parameters: {“url”=\>“/”} Show session dump [http://70.47.63.150/buyscooter.co.uk/](http://70.47.63.150/buyscooter.co.uk/)

Response

Headers: {“cookie”=\>[]}

---

<div class="post-metadata">

**Author:** ![keith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@keith](https://www.ruby-forum.com/u/keith)\
**Post date:** [February 25, 2007, 12:29am UTC](https://www.ruby-forum.com/t/radiant-config-error/86716/2 "2007-02-25T00:29:43Z")

</div>

Hi Keith,

is buyscoot\_radiantdev your production database? if not, try  
uncommenting

ENV[‘RAILS\_ENV’] ||= ‘production’

on your config/environment.rb file, so that it loads the right database

2007/2/24, keith [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![keith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@keith](https://www.ruby-forum.com/u/keith)\
**Post date:** [February 25, 2007, 12:31am UTC](https://www.ruby-forum.com/t/radiant-config-error/86716/3 "2007-02-25T00:31:43Z")

</div>

unless you’re trying to deliberately run on dev mode there…

2007/2/24, Oliver B. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![keith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/f05b48/32.png) [@keith](https://www.ruby-forum.com/u/keith)\
**Post date:** [February 26, 2007, 9:47am UTC](https://www.ruby-forum.com/t/radiant-config-error/86716/4 "2007-02-26T09:47:03Z")

</div>

Hi,  
I just installed Radiand 0.6 RC1 on Site5. I combined the  
instructions from here: [http://radiantcms.org/blog/2007/02/04/](http://radiantcms.org/blog/2007/02/04/)  
radiant-0-6-release-candidate/ with the instructions on Site5:s forum  
here: [http://forums.site5.com/showthread.php?t=14847](http://forums.site5.com/showthread.php?t=14847)

I got it working and even managed to import my local MySQL database.  
I’m really proud - I am new to both Rails and Radiant, but it was  
actually pretty easy.

Sorry if this is not helpful - I guess Olivers reply is probably  
right on target. Or you haven’t set up your database correctly in  
some other way.

The result: [http://smpl.se/](http://smpl.se/)

Regards,  
Martin O.
