Turned on caching, now I have an error and cannot get into my site

Permalink
I turned on Basic Cacheing (spelling) but now I have a site error:

Fatal error: Block::getInstance() [<a href='block.getinstance'>block.getinstance</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "ProductSearchBlockController" 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 /home/elaine/public_html/concrete/models/block.php on line 329


I would go and turn off caching, but I can't get into my site.

I also have not changed block.php at all so I don't want to go in and mess with the core code.

Any ideas?

 
nicolechung replied on at Permalink Reply
Okay, I went into concrete/config/app and modified the line:

if (ENABLE_CACHE) {
   //Config::getOrDefine('FULL_PAGE_CACHE_GLOBAL', 'blocks');
       Cache::disableCache();
}


This allowed me to get back into the dashboard long enough to turn off the caching (and change back the code above.

However, it looks like I am having an issue with my product search block (from the ecommerce addon)...what should I do when I go out of development and I want to turn the cache on? Should I just turn it on for specific page types?
nicolechung replied on at Permalink Reply
Ahh...was a mistake in my custom block, I had to change my block name

public function getBlockTypeName() {
      return t("Product Search");
   }