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 &quot;ProductListBlockController&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 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?

Techn0tic
 
nteaviation replied on at Permalink Best Answer Reply
nteaviation
Check your custom block directory and class name for proper CamelCase Syntax.
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.
Techn0tic replied on at Permalink Reply
Techn0tic
perfect, thanks!
nteaviation replied on at Permalink Reply
nteaviation
Your welcome. This little "gotcha" suddenly appeared in a custom block I had, but only "reared it's ugly head" when I upgraded from version 5.3.x to 5.4.x