After adding my own debelopped block to the front-end i got fatal error
Permalink 1 user found helpful
Hi! I'm trying to create my own addon and itself block. After installed i'm go to the front-end and trying to add my block. After clicked on "Add" button, as result i've got such 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 "SNBookingBlockController" 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 D:\wamp\www\mysite\concrete\models\block.php on line 329
PS:sorry for my bad english
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 "SNBookingBlockController" 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 D:\wamp\www\mysite\concrete\models\block.php on line 329
PS:sorry for my bad english
Also, the capitalization of the letters in your controller name looks like it might be tricky -- the block directory would need to be "s_n_booking", not "sn_booking" -- so make sure that matches up too.