Block Install fails even after displaying success message
PermalinkI have created a basic Block based on the Basic Test block available on the C5 web site.
When I try and install this from the Add Functionality tab the success message "Block Type Installed." appears but the Block is still available for adding and doesn't appear in the list of custom add-ons.
Permissions are the same as the Basic Test Block which successfully installed.
Can any one help?
Thanks,
Jake

It should be attached to this reply.
Thanks
So you want to take the db.xml file from the sample block you were using and drop that into your block. Change the table name in it though (to something like "btShareLocation", and also remember to set the table name in your block controller:
protected $btTable = 'btShareLocation';
BTW, you are calling a function "$controller->getDefaultBlockLocation()" in your view and edit files, but you didn't actually create that function in your controller.
Add this to your controller:
public function getDefaultLocation() { return 'something'; }