TypeError (no marshal_dump is defined for class Proc)

127 views
Skip to first unread message

krismartin

unread,
May 23, 2011, 11:58:45 PM5/23/11
to Refinery CMS
I've been running Refinery in development environment and everything
seems to be working perfectly until I switch over to production mode.

Every now and then I occasionally get an exception when updating a
page from the admin interface.
This issue usually occurs when I click on the "Save & continue
editing" button.

I don't recall seing this problem in development mode.

The exception I'm getting is:
TypeError in Admin::PagesController#update
no marshal_dump is defined for class Proc

Full trace can be found here:
http://pastie.org/1964455

Does anyone else have come across this issue?

Here are my setup:

Rails 3.0.7
Ruby 1.8.7
RefineryCMS 0.9.9.22

Refinery Settings:
Cache Menu: true
Cache Pages Backend: true
I18n Translation Enabled (Refinery): false
New Page Parts: true
Use Resource Caching: true
* Everything else remain unchanged

Philip Arndt

unread,
May 24, 2011, 12:03:06 AM5/24/11
to refine...@googlegroups.com
This thread seems to be relevant:


So maybe we need to rip out the caching of "collection" and "roots"

I've just been refactoring the menu anyway and it may soon be fast enough that we won't even need to try to do this.

krismartin

unread,
May 24, 2011, 12:40:14 AM5/24/11
to Refinery CMS
Great! I'll switch off menu caching for now as a temporary solution.


On May 24, 2:03 pm, Philip Arndt <p...@resolvedigital.co.nz> wrote:
> This thread seems to be relevant:
>
> http://groups.google.com/group/acts_as_cached/browse_thread/thread/1c...

Philip Arndt

unread,
May 24, 2011, 12:41:41 AM5/24/11
to refine...@googlegroups.com
Please let me know if that fixes it.... :-) It may not because it invalidates the cache regardless..
hmm..

krismartin

unread,
May 24, 2011, 1:14:11 AM5/24/11
to Refinery CMS
That seems to fixed it :)

I've left Cache Pages Backend to true - I'm actually not sure what
this does.

Philip Arndt

unread,
May 24, 2011, 1:15:35 AM5/24/11
to refine...@googlegroups.com
It just caches the pages tab on refinery backend. It can get slow with lots of pages.

Glad it fixed it, I'll make sure to address that in the coming future version.

Thanks so much!!!!!

Reply all
Reply to author
Forward
0 new messages