Radiant: config error

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/ | Framework
Trace
http://70.47.63.150/buyscooter.co.uk/ | Full Trace
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/

Response

Headers: {“cookie”=>[]}

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 [email protected]:

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

2007/2/24, Oliver B. [email protected]:

Hi,
I just installed Radiand 0.6 RC1 on Site5. I combined the
instructions from here: 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

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/

Regards,
Martin O.