Every once in a while when posting or publishing home page. I get the following error. A simple refresh brings back
the admin page.
ActiveRecord::StatementInvalid in Homepage#index
Mysql::Error: Lost connection to MySQL server during query: SELECT * FROM parameters WHERE (category = 'weblog' AND
name='title') LIMIT 1
RAILS_ROOT: .
Application Trace | Framework Trace | Full Trace
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract_adapter.rb:88:in
`log'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:180:in
`execute'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:322:in
`select'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:171:in
`select_all'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:431:in `find_by_sql'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:395:in `find'
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:393:in `find'
#{RAILS_ROOT}/app/models/parameter.rb:81:in `get_value'
#{RAILS_ROOT}/app/models/parameter.rb:17:in `[]'
#{RAILS_ROOT}/app/controllers/homepage_controller.rb:144:in `configured'
#{RAILS_ROOT}/lib/commands/squib.rb:90 |