Deleted the block in FTP instead of uninstalling

Permalink Browser Info Environment
Hello.

For some stupid reason, even though I already knew about this, I deleted a block created by designercontent via FTP. That means everything block related in C5 gives me an error.

My bet is that there's of course still something in the database, which C5 is looking for.

Is there any way to fix this problem or is a clean install the only solution?

Type: Discussion
Status: In Progress
lundco99
View Replies: View Best Answer
jordanlev replied on at Permalink Reply
jordanlev
Hi,
I understand -- sometimes you're just in the flow and do the thing you normally do for other kinds of projects, forgetting that C5 has its own rules for how things work.

The easiest fix I can think of is to create a new C5 site on your local machine and recreate the custom block with designer content there. Then copy out the custom block's folder and put it into your original site. Now you can trash that new site (you just made it for this one purpose... now you don't need it anymore).

Note that after you get C5 to recognize this block again, you should probably uninstall it via the dashboard and delete it from your site... because you probably won't remember the exact order of the fields from the first time around so the existing database table is probably not exactly right.

Hope this helps.

-Jordan
lundco99 replied on at Permalink Best Answer Reply
lundco99
Thanks a lot for your quick response. You're absolutely right about the workflow. :p

I actually managed to fix the problem on the site. Having deleted the block folder i went to phpMyAdmin where i deleted 'btDCappetizer' (appetizer being my block handle) and i also deleted the appetizer row under 'BlockTypes'.

After that I was able to create a new designer content block with the same handle (appetizer) and now everything works fine.

Phew! :p

But anyway thanks for your help.

Best Regards
Jeppe C.
enlil replied on at Permalink Reply
enlil
Excellent solution lundco99...

I inadvertently deleted a DC block that was still installed and displayed on my home page. An hour and a half of headache and only 4 minutes to fix it after finding this thread. Just deleted all the appropriate sql tables and rows as you indicated. Thanks!
lundco99 replied on at Permalink Reply
lundco99
No problem. I'm glad I could help. :)
tduncandesign replied on at Permalink Reply
tduncandesign
Good gravy, this just saved my bacon as well. Little bit hasty with the old command delete on the ftp when my block designer block in 5.7 didn't do like I wanted just yet...
MarmaladeSoup replied on at Permalink Reply
MarmaladeSoup
You sir are an absolute legend - deleted the wrong block directly from server via ftp, and was about to jump out of the nearest window!

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.