Cant delete block type

Permalink Browser Info Environment
Hi there,
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.
Please help.
Thanks,

Type: Pre-Sale
Status: Resolved
binomonkey
View Replies:
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Bjorn,

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.

Kind regards,

Ramon
plindelauf replied on at Permalink Reply 1 Attachment
plindelauf
Hi Ramon,

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.

Kind regards,

Pascal.
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Pascal,

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!

Kind regards,

Ramon
plindelauf replied on at Permalink Reply
plindelauf
Hi Ramon,

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.

Thanks again!

Pascal
ramonleenders replied on at Permalink Reply
ramonleenders
Hi Pascal,

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.

Kind regards,

Ramon
joelmattstone replied on at Permalink Reply
joelmattstone
Hi Pascal

I am actually new to concrete5.

I have tried deleting a block on one of my pages but keep getting this error message:

Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0
{"error":{"message":"Failed to set the session handler because headers have already been sent by \"\" at line 0."},"errors":["Failed to set the session handler because headers have already been sent by \"\" at line 0."]}
ramonleenders replied on at Permalink Reply
ramonleenders
You are trying to do this on a page I guess? Does it work for other blocks? Seems like a concrete5 issue. Did you try the setting as proposed in the error message?

"To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead."

Kind regards,

Ramon

concrete5 Environment Information

# concrete5 Version
Core Version - 5.7.5.2
Version Installed - 5.7.5.2


# concrete5 Packages
Background Image and Overlay (0.9.5), Block Designer (1.3.3), Honest Websites Back To Top (0.9.4), Quick Tabs (1.0), Responsive Embed (1.0.0), Spacer (0.9.2).

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36

Hide Post Content

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

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.