error on block edit
Permalink 1 user found helpful
I'm getting an error message whenever I try to submit the edit form for a block I'm developing. the error message is:
Fatal error: main() [<a href='function.main'>function.main</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "ProductListBlockController" 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 C:\xampplite\htdocs\cmsdemo\concrete\startup\process.php on line 515
There's no problem when adding the block to a page, only on updating it. Does anybody have any ideas what I've done wrong here?
Fatal error: main() [<a href='function.main'>function.main</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "ProductListBlockController" 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 C:\xampplite\htdocs\cmsdemo\concrete\startup\process.php on line 515
There's no problem when adding the block to a page, only on updating it. Does anybody have any ideas what I've done wrong here?
See:
http://www.concrete5.org/community/forums/customizing_c5/cache-prob...
Your custom block directory should be /blocks/product_list and your class name should be ProductListBlockController.