resolve/refinerycms — Issue #1200: (TypeError) "can't convert Symbol into Integer" in RefinerySettings
Author: ddeyoung
Created: 2011-12-29 21:50:00+00:00
State: open

RefinerySetting has started to throw "can't convert symbol to integer" errors. I don't believe there are any special settings in entered and I'm using RefineryCMS 1.0.8.

```
# (TypeError) "can't convert Symbol into Integer"

.../bundle/ruby/1.9.1/gems/refinerycms-settings-1.0.8/app/models/refinery_setting.rb:49:in `[]'
.../bundle/ruby/1.9.1/gems/refinerycms-settings-1.0.8/app/models/refinery_setting.rb:49:in `block in cache_read'
.../bundle/ruby/1.9.1/gems/refinerycms-settings-1.0.8/app/models/refinery_setting.rb:48:in `each'
.../bundle/ruby/1.9.1/gems/refinerycms-settings-1.0.8/app/models/refinery_setting.rb:48:in `detect'
.../bundle/ruby/1.9.1/gems/refinerycms-settings-1.0.8/app/models/refinery_setting.rb:48:in `cache_read'
.../bundle/ruby/1.9.1/gems/refinerycms-settings-1.0.8/app/models/refinery_setting.rb:109:in `get'
.../bundle/ruby/1.9.1/gems/refinerycms-settings-1.0.8/app/models/refinery_setting.rb:95:in `find_or_set'
.../bundle/ruby/1.9.1/gems/refinerycms-i18n-1.0.0/lib/refinery/i18n.rb:98:in `enabled?'
.../bundle/ruby/1.9.1/gems/refinerycms-i18n-1.0.0/lib/refinery/i18n-filter.rb:5:in `around_recognize'
.../bundle/ruby/1.9.1/bundler/gems/routing-filter-e636ce0bb116/lib/routing_filter/filter.rb:11:in `run'
.../bundle/ruby/1.9.1/bundler/gems/routing-filter-e636ce0bb116/lib/routing_filter/chain.rb:15:in `run'
.../bundle/ruby/1.9.1/bundler/gems/routing-filter-e636ce0bb116/lib/routing_filter/adapters/rails_3.rb:68:in `recognize_with_filtering'
.../bundle/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:139:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:493:in `call'
.../bundle/ruby/1.9.1/gems/newrelic_rpm-3.3.0/lib/new_relic/rack/browser_monitoring.rb:40:in `call'
.../bundle/ruby/1.9.1/gems/exceptional-2.0.32/lib/exceptional/integration/rack_rails.rb:13:in `call'
.../bundle/ruby/1.9.1/gems/exceptional-2.0.32/lib/exceptional/integration/rack.rb:21:in `call'
.../bundle/ruby/1.9.1/gems/rack-ssl-1.3.2/lib/rack/ssl.rb:27:in `call'
.../bundle/ruby/1.9.1/gems/warden-1.0.5/lib/warden/manager.rb:35:in `block in call'
.../bundle/ruby/1.9.1/gems/warden-1.0.5/lib/warden/manager.rb:34:in `catch'
.../bundle/ruby/1.9.1/gems/warden-1.0.5/lib/warden/manager.rb:34:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/head.rb:14:in `call'
.../bundle/ruby/1.9.1/gems/rack-1.2.3/lib/rack/methodoverride.rb:24:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/flash.rb:182:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/cookies.rb:302:in `call'
.../bundle/ruby/1.9.1/gems/rack-ssl-1.3.2/lib/rack/ssl.rb:27:in `call'
.../bundle/ruby/1.9.1/gems/activerecord-3.0.10/lib/active_record/query_cache.rb:32:in `block in call'
.../bundle/ruby/1.9.1/gems/activerecord-3.0.10/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
.../bundle/ruby/1.9.1/gems/activerecord-3.0.10/lib/active_record/query_cache.rb:12:in `cache'
.../bundle/ruby/1.9.1/gems/activerecord-3.0.10/lib/active_record/query_cache.rb:31:in `call'
.../bundle/ruby/1.9.1/gems/activerecord-3.0.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/callbacks.rb:46:in `block in call'
.../bundle/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:416:in `_run_call_callbacks'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/callbacks.rb:44:in `call'
.../bundle/ruby/1.9.1/gems/rack-1.2.3/lib/rack/sendfile.rb:107:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
.../bundle/ruby/1.9.1/gems/railties-3.0.10/lib/rails/rack/logger.rb:13:in `call'
.../bundle/ruby/1.9.1/gems/rack-1.2.3/lib/rack/runtime.rb:17:in `call'
.../bundle/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
.../bundle/ruby/1.9.1/gems/dragonfly-0.9.8/lib/dragonfly/middleware.rb:13:in `call'
.../bundle/ruby/1.9.1/gems/rack-cache-1.0.3/lib/rack/cache/context.rb:132:in `forward'
.../bundle/ruby/1.9.1/gems/rack-cache-1.0.3/lib/rack/cache/context.rb:243:in `fetch'
.../bundle/ruby/1.9.1/gems/rack-cache-1.0.3/lib/rack/cache/context.rb:181:in `lookup'
.../bundle/ruby/1.9.1/gems/rack-cache-1.0.3/lib/rack/cache/context.rb:65:in `call!'
.../bundle/ruby/1.9.1/gems/rack-cache-1.0.3/lib/rack/cache/context.rb:50:in `call'
.../bundle/ruby/1.9.1/gems/dragonfly-0.9.8/lib/dragonfly/middleware.rb:13:in `call'
.../bundle/ruby/1.9.1/gems/rack-cache-1.0.3/lib/rack/cache/context.rb:132:in `forward'
.../bundle/ruby/1.9.1/gems/rack-cache-1.0.3/lib/rack/cache/context.rb:243:in `fetch'
.../bundle/ruby/1.9.1/gems/rack-cache-1.0.3/lib/rack/cache/context.rb:181:in `lookup'
.../bundle/ruby/1.9.1/gems/rack-cache-1.0.3/lib/rack/cache/context.rb:65:in `call!'
.../bundle/ruby/1.9.1/gems/rack-cache-1.0.3/lib/rack/cache/context.rb:50:in `call'
.../bundle/ruby/1.9.1/gems/rack-1.2.3/lib/rack/lock.rb:11:in `block in call'
:10:in `synchronize'
.../bundle/ruby/1.9.1/gems/rack-1.2.3/lib/rack/lock.rb:11:in `call'
.../bundle/ruby/1.9.1/gems/dragonfly-0.9.8/lib/dragonfly/cookie_monster.rb:9:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
.../bundle/ruby/1.9.1/gems/railties-3.0.10/lib/rails/application.rb:168:in `call'
.../bundle/ruby/1.9.1/gems/railties-3.0.10/lib/rails/application.rb:77:in `method_missing'
.../gems/passenger-3.0.1/lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
.../gems/passenger-3.0.1/lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
.../gems/passenger-3.0.1/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
.../gems/passenger-3.0.1/lib/phusion_passenger/rack/application_spawner.rb:205:in `start_request_handler'
.../gems/passenger-3.0.1/lib/phusion_passenger/rack/application_spawner.rb:170:in `block in handle_spawn_application'
.../gems/passenger-3.0.1/lib/phusion_passenger/utils.rb:479:in `safe_fork'
.../gems/passenger-3.0.1/lib/phusion_passenger/rack/application_spawner.rb:165:in `handle_spawn_application'
.../gems/passenger-3.0.1/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
.../gems/passenger-3.0.1/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
.../gems/passenger-3.0.1/lib/phusion_passenger/abstract_server.rb:180:in `start'
.../gems/passenger-3.0.1/lib/phusion_passenger/rack/application_spawner.rb:128:in `start'
.../gems/passenger-3.0.1/lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
.../gems/passenger-3.0.1/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
...//gems/passenger-3.0.1/lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
.../gems/passenger-3.0.1/lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
:10:in `synchronize'
.../gems/passenger-3.0.1/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
.../gems/passenger-3.0.1/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
.../gems/passenger-3.0.1/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
.../gems/passenger-3.0.1/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
.../gems/passenger-3.0.1/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
...//gems/passenger-3.0.1/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
.../gems/passenger-3.0.1/helper-scripts/passenger-spawn-server:99:in `

'
```