Fatal error: Call to a member function getBlockTypeHandle() on a non-object in /home/hawkwell/public_html/lhonorg/concrete/core/libraries/block_view_template.php on line 41

Permalink
I deleted a block from my site and I had left an instance of it in a global area. I now get the above fault on every page. Is there a way to resolve this without a clean install?

cleverington
 
jpcharrier replied on at Permalink Reply
jpcharrier
Have you tried clearing the cache?

You could also re-create the global area and rename it (depending on how much content..). A possible solution would be to create a test page and hide it, copy all the global area's content to somewhere on this page. Rename that area in your template and then copy the content back into it (making sure you edit it so that it creates a new instance in the global area).
mhawke replied on at Permalink Reply
mhawke
This sounds like you might have deleted the block's files before deleting the block from within the Dashboard. Can you replace those missing block files? If you can, then replace the files and then delete the block through Dashboard->Block Types and then you should be free to delete the block's files again.

If the block's files are no longer available, I have had luck by deleting the block from the BlockTypes table in the database.

I have also tried using the Designer Content add-on to re-create a block by the same name and then deleting the block through the Dashboard->Block Types.

http://www.concrete5.org/marketplace/addons/designer-content/...