fdv/typo — Issue #51: bignum too big to convert into `long'
Author: libryder
Created: 2011-10-28 17:24:46+00:00
State: open

I was having a lot of issues with a previous install of Typo so I started completely fresh using sqlite3 instead of mysql. I switched back and forth between rails server for development and phusion passenger for production while getting it setup.

Not sure exactly when, but after I made some changes in development (articles, settings, etc) I restarted apache, tried to access /admin on production and an attempt to route me to this page occurred:

admin/settings/update_database

And in the log is this:

`Started GET "/admin/settings/update_database" for 209.33.214.243 at 2011-10-28 13:20:02 -0400
Processing by Admin::SettingsController#update_database as HTML
Parameters: {"id"=>nil}
Completed 500 Internal Server Error in 13ms

RangeError (bignum too big to convert into `long'):
app/controllers/admin/settings_controller.rb:39:in `[]'
app/controllers/admin/settings_controller.rb:39:in `update_database'`

I deleted the database and the cache then ran

`rake db:create
rake db:migrate`

And after entering my blog name and admin email on the initial setup I clicked on "continue to admin" and was immediately routed to __admin/settings/update_database__ with the same error.