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:inexecute’
#{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:incolumns’
#{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:incolumn_methods_hash’
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1158:in
all_attributes_exists?' #{RAILS_ROOT}/lib/login_system.rb:77:inall?’
#{RAILS_ROOT}/app/models/radiant/config.rb:31:in []' #{RAILS_ROOT}/app/controllers/site_controller.rb:47:indev?’
#{RAILS_ROOT}/app/controllers/site_controller.rb:51:in live?' #{RAILS_ROOT}/app/controllers/site_controller.rb:18:inshow_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:inexecute’
#{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:incolumns’
#{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:incolumn_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:inall_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:inperform_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:inperform_action_without_rescue’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 69:inperform_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:inprocess_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:inprocess’
#{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:38:in dispatch' #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:150:inprocess_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:ineach_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:inprocess!’
#{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:inlog’
#{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:incolumns’
#{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:696:in
columns' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:709:incolumn_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:inall_attributes_exists?’
#{RAILS_ROOT}/lib/login_system.rb:77:in all?' #{RAILS_ROOT}/vendor/rails/activerecord/lib/active_record/base.rb:1158:inall_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:inlive?’
#{RAILS_ROOT}/app/controllers/site_controller.rb:18:in show_page' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/base.rb:941:inperform_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:inperform_action_without_rescue’
/usr/lib/ruby/1.8/benchmark.rb:293:in measure' #{RAILS_ROOT}/vendor/rails/actionpack/lib/action_controller/benchmarking.rb: 69:inperform_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:inprocess_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:inprocess’
#{RAILS_ROOT}/vendor/rails/railties/lib/dispatcher.rb:38:in dispatch' #{RAILS_ROOT}/vendor/rails/railties/lib/fcgi_handler.rb:150:inprocess_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:ineach_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:inprocess!’
#{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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs