Page Caching Problem

Permalink
Using C5.4.1.1, whenever I enable page caching, the system dies and it throws this error:


Fatal error: View::render() [<a href='view.render'>view.render</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;ImageBlockController&quot; of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /var/www/coopergt/concrete/libraries/view.php on line 734

I suspected it may have had something to do w/ the ImageBlockController, but this occurs across all pages if they use any kind of block.

Anyone had any similar experience and figured out an answer?

Thanks!

focus43
 
Ale replied on at Permalink Reply
Do you have any custom blocks or customized block controllers in the site? I had the same problem when there was improperly named block controller within the site.

The primary rule of naming block classes and directories goes as following.

If your class is called:
MyCustomBlockController

your directory name will have to be:
/blocks/my_custom


You can read more in this thread:
http://www.concrete5.org/community/forums/customizing_c5/cache-prob...