Cant delete block typeBrowser Info Environment
Trying to delete test blocks I created using Block Designer. The blocks don't exist anywhere on the website and I have deleted the database tables manually.
When I try to delete these block types it just seems as if the "delete" button is void. It does nothing.
Are the folder under application/blocks being deleted? If so, then the block is deleted correctly. Database tables will not be removed, that's default Concrete5 behavior. You will have to keep doing this manually, as upon uninstalling these tables won't be deleted. There's nothing I can do about that. If the block folder is being deleted, it works as expected. Does that answer your question? If not, I will gladly take a look at your environment.
When I delete the block in the from the application/blocks, I get the an "unexpected error" saying that the controller could not be found when trying to add a block or trying to go to the Block Designer > Config page. See the attached screenshot.
What am I doing wrong? It would be great if there would just be an "uninstall" option.
You will have to nagivate to Stacks & Blocks - Block Types first. Then click the block you want to uninstall, and hit "Remove" in the page that gets loaded. But you've already deleted your directory from the server/FTP, so it seems. So you skipped these steps. Once installed, you can not simply remove stuff. It's like removing Windows files, when still using Windows (you will get erros haha).
Now, you will have to create a block again with the same block handle and put it back in place. If you can give me the block handle, I can do that for you too. But if you are able to do that yourselves, please do that. Concrete5 will keep looking for this already installed block type.
A workaround could be to go to the database, and remove the block type from the "BlockTypes" database table. I'm not sure that will do the job though, as I'm not at my station. Before you try ANYTHING, make backups!
Thank you for your quick reply. I'm still getting used to Concrete5 5.7 and stupidly enough, I was trying to locate the installed block under "Add-ons" and under the "Block Config" sections.
I had a local copy of the directory that I removed from the FTP server, so I was able to upload that, locate the block under "Block Types" and then managed to successfully uninstall it.
Finally, I removed the associated table from the database manually to remove any trace of the block.
That's the way to do it indeed. Good thing you got it fixed now! If you have any other questions, do let me know. I will be closing this thread.