How can I delete an unused block type?
To remove the old one I just deleted its folder under /blocks, with hindsight I guess I shouldn't have done this but I thought since it wasn't being used on any pages it would just disappear - no. Now I have both blocks in my list of block types - the 'real' one is used 40-odd times, but the deleted one is 'used' once. Even though it's not in use.
Whenever I try to remove it, it says Usage Count = 1.
But this block is not on any existing page, or anywhere in the trash, and the cache has been cleared dozens of times. I'm pretty sure it's not on an old page version (but I have a LOT of pages and it is hard to tell, I have removed as many old versions as I can manually but I can't auto-remove old versions).
Is there any way at all of figuring out where it thinks it is finding this mystery block?
I just want to stop it from appearing in the Block Type list, as I now have two blocks with the same name there (and if you click the non-existent one you obviously get an error!)
Also, when I try to do Remove Block, initially I got an error message like
Fatal error: Call to a member function deleteBlock() on a non-object in /public_html/concrete/models/block_types.php on line 691
Now when I click Remove, it tries to go to a URL like
but this just gives an HTTP 500 Error.
I found a post here that looked kind of related but didn't really help:http://www.concrete5.org/community/forums/customizing_c5/removing-p...
I would really appreciate it if anyone has any ideas
Thanks very much
Designer Content use a simple naming convention, Say your block was called my_custom_block, then the table you need to delete would be called btDCMyCustomBlock.
After you do that, you might see things go back to normal.
Can I use this?http://www.concrete5.org/marketplace/addons/database-manager/...
(Sorry, totally new to this, never messed with my databases before!)
But your host most likely has some configuration utility (most likely phpMyAdmin), where you can access and edit your database. It is also useful for making full backups and exporting the database if you want to move your site.
Just curious: How do you develop if you haven't messed with databases before? You do everything on a live site?
I'm not really sure what the major downsides are of doing things the way I am - seems like a lot of people here (well, the newbies particularly!) work on live sites?
When you see the interface, you will have a column on the left hand with a list of databases. Click on the database's name you are using for concrete5 (you named it yourself during the install so you should know the name)
The left column will change to a list of all the tables in the database. The main central screen will also show you a list of all the tables.
Find the table you want to delete. to delete it you have to possibility. either you click on the red button that says "drop". The button is aligned with the name of the table and other buttons (Browse, structure, search...)
Or you can check the box next to the name of the table then go at the bottom of the page and, in the dropdown list that says "With Selected" you select drop.
After that of course you confirm and you're good.
I deleted the btDC table that I didn't want any more, then I saw the table called BlockTypes, I had to delete the relevant row in that table too and finally it was gone from the list. Brilliant.
I asked this question a couple of months back and noone replied to me so I am really grateful you took the time to help.
You know sometimes what happens is that a lot of messages get posted at the same time and some of them go unnoticed. Usually what you do is wait a bit (say a week) and if no answer, go back to your thread and says something to yourself like "Bump" so your message goes back on top of the list. That might give it a second chance of being seen.
And its fixed.