Deleting Designer Block

Permalink
I have created a Designer Block called CAD_downloads.
However, I have deleted the CAD_downloads directory but now get an error on all the pages when I try to add other blocks
[code]
Warning: require_once(/var/www/vhosts/generation2.build/httpdocs/concrete/blocks/cad_downloads/controller.php): failed to open stream: No such file or directory in /var/www/vhosts/generation2.build/httpdocs/concrete/core/libraries/loader.php on line 217

Fatal error: require_once(): Failed opening required '/var/www/vhosts/generation2.build/httpdocs/concrete/blocks/cad_downloads/controller.php' (include_path='/var/www/vhosts/generation2.build/httpdocs/libraries/3rdparty:/var/www/vhosts/generation2.build/httpdocs/concrete/libraries/3rdparty:.:/opt/plesk/php/5.6/share/pear') in /var/www/vhosts/generation2.build/httpdocs/concrete/core/libraries/loader.php on line 217
[code]

also in MySQL...

[code]
SQL query: DocumentationEdit Edit


SELECT * FROM `BlockTypes`
ORDER BY `BlockTypes`.`btName` ASC
MySQL said: Documentation

Cannot connect: invalid settings.
[code]

Is there something I need to remove from the db? Using PHPMyAdmin I can't find anything called CAD_downloads or Designer Block.

Thanks

trixiemay
 
Gondwana replied on at Permalink Reply
Gondwana
Did you uninstall the block from c5 before blowing away the directory?

If so, could be a cache thing. (Unfortunately, there are LOTS of caches these days.)
ramonleenders replied on at Permalink Best Answer Reply
ramonleenders
From your "BlockTypes" database table, search for the enty that has the handle of your Block Type for the column "btHandle". Delete that entry. You should be good after doing that if I'm not mistaken. I mostly do this for Block Types when I haven't used them on pages, so not sure what happens when they have been placed on pages. But since the complete Block Type is deleted, I assume it will work as expected. Make backups first though (like you should have with the Block Type)!
trixiemay replied on at Permalink Reply
trixiemay
Perfect! PHPMyAdmin > Block Types >cad_downloads >delete