locomotivecms / engine

A platform to create, publish and edit sites
http://www.locomotivecms.com
Other
2.32k stars 626 forks source link

Devise error in existing application after update #105

Closed kikito closed 13 years ago

kikito commented 13 years ago

I updated an application I'm developing to the most recent locomotive master branch.

The update seemed to go fine (no errors or conflicts), which is logical since the only file I've changed is the db config file.

This is the error I'm getting:

==RuntimeError in Admin::RenderingController#show

Devise changed how it stores objects in session. If you are seeing this message, you can fix it by changing one character in your secret_token or cleaning up your database sessions if you are using a db store.

lib/locomotive/render.rb:81:in `locomotive_context'
lib/locomotive/render.rb:20:in `render_locomotive_page'
app/controllers/admin/rendering_controller.rb:11:in `show'
lib/locomotive/middlewares/seo_trailing_slash.rb:18:in `call'
lib/locomotive/middlewares/fonts.rb:27:in `call'
lib/locomotive/middlewares/cache.rb:21:in `call'

I have tried changing several things inside config/initializers/secret_token.rb (removed the bushido part, changed some random numbers on the long string) but nothing worked - I kept receiving the same error.

This is the first time I work with Mongodb, but I don't think there's a "sessions table" in the database.

Help, please?

did commented 13 years ago

hey Enrique, have you tried to remove the browser cookies related to your locomotive website ?

kikito commented 13 years ago

Hi Did, thanks for the quick response!

That seemed to fix the devise error. I'm getting another error now, but since it's not related with Devise, I'll close this issue and open a new one.