Getting this error message when trying to customize block
Permalink
I'm trying to customize a block to contain (1) a text editor, and (2) an additional small text field.
I copied the default basic text editor from concrete/blocks/ and added the additional text field.
I'm getting this error when I go to edit the block:
"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 "AboutContentBlockController" 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/site1/site1.com/client/concrete/startup/process.php on line 515"
Anyone have an idea of what it means?
Thank you!
I copied the default basic text editor from concrete/blocks/ and added the additional text field.
I'm getting this error when I go to edit the block:
"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 "AboutContentBlockController" 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/site1/site1.com/client/concrete/startup/process.php on line 515"
Anyone have an idea of what it means?
Thank you!
Did you name the directory correctly where your custom block controller resides? Should be: /blocks/about_content (watch the lowercase and underscore)
Thanks, this works! Thank you so much. I don't know how you found the solution... I know that the directory name needs to match the controller name, but the controller name didn't have an underscore, unless I'm seeing something wrong. Anyway, will be more aware of this in the future, and thanks again.
Congrats! C5, especially 5.4.x is really picky about directory nameing and CamelCase class definitions :)
Good luck with your new custom block!
Good luck with your new custom block!