Cannot use blocks after reinstalling site

Permalink
After reinstalling concrete 5 after a virus was on the site.
I cannot add blocks or go to blocks in dashboard.
Deleted all files from concrete folder
except
/config/site.php
/files/*
/packages/*
And uploaded all other files again.
Virus gone and site working but can't access blocks.

See below, the error message I get when trying to add a block to website.
Can any one help?
Thanks

Warning: require_once(/home/web7iepu/public_html/thesisbind.ie/concrete/blocks/piano_add/controller.php) [function.require-once]: failed to open stream: No such file or directory in /home/web7iepu/public_html/thesisbind.ie/concrete/core/libraries/loader.php on line 214

Fatal error: require_once() [function.require]: Failed opening required '/home/web7iepu/public_html/thesisbind.ie/concrete/blocks/piano_add/controller.php' (include_path='/home/web7iepu/public_html/thesisbind.ie/libraries/3rdparty:/home/web7iepu/public_html/thesisbind.ie/concrete/libraries/3rdparty:.:/usr/lib/php:/usr/local/lib/php') in /home/web7iepu/public_html/thesisbind.ie/concrete/core/libraries/loader.php on line 214

 
planist1 replied on at Permalink Reply
planist1
Did you have custom blocks in your root/blocks folder?
web7iepu replied on at Permalink Reply
Hi Planist1,

The "piano_add" is a block made by "designer content"

Not sure if it was stored in root/blocks folder.
I don't need the "piano_add" block any more.

Any idea on how to remove it so concrete 5 doesn't request it.

Thanks
planist1 replied on at Permalink Reply
planist1
Check in Dashboard -> Block Types

It might be towards the bottom, if it is there, you can click on it and then delete it. Clear cache afterwards just to be on the safe side. And as a side note, after creating a block with Designer Content, a new folder is created in root/blocks folder.
web7iepu replied on at Permalink Reply
Hi pianist1,

Tried clearing cache and uninstalled "designer content"

Still get error message when I click on block types in dashboard.


Warning: require_once(/home/web7iepu/public_html/thesisbind.ie/concrete/blocks/piano_add/controller.php) [function.require-once]: failed to open stream: No such file or directory in /home/web7iepu/public_html/thesisbind.ie/concrete/core/libraries/loader.php on line 214

Fatal error: require_once() [function.require]: Failed opening required '/home/web7iepu/public_html/thesisbind.ie/concrete/blocks/piano_add/controller.php' (include_path='/home/web7iepu/public_html/thesisbind.ie/libraries/3rdparty:/home/web7iepu/public_html/thesisbind.ie/concrete/libraries/3rdparty:.:/usr/lib/php:/usr/local/lib/php') in /home/web7iepu/public_html/thesisbind.ie/concrete/core/libraries/loader.php on line 214
planist1 replied on at Permalink Reply
planist1
Sorry, I should have been more specific. I think you need to delete the piano_add block.
web7iepu replied on at Permalink Reply
Hi pianist1,

I have deleted piano_add block form the block folder.

Still getting the same error message when I try to go to block types in dashboard or try to add a block when in edit mode.

Warning: require_once(/home/web7iepu/public_html/thesisbind.ie/concrete/blocks/piano_add/controller.php) [function.require-once]: failed to open stream: No such file or directory in /home/web7iepu/public_html/thesisbind.ie/concrete/core/libraries/loader.php on line 214

Fatal error: require_once() [function.require]: Failed opening required '/home/web7iepu/public_html/thesisbind.ie/concrete/blocks/piano_add/controller.php' (include_path='/home/web7iepu/public_html/thesisbind.ie/libraries/3rdparty:/home/web7iepu/public_html/thesisbind.ie/concrete/libraries/3rdparty:.:/usr/lib/php:/usr/local/lib/php') in /home/web7iepu/public_html/thesisbind.ie/concrete/core/libraries/loader.php on line 214
web7iepu replied on at Permalink Reply
Can any one help me with this.

Blocks made by "Designer Content" manually deleted from my server.

Cannot add any blocks in edit mode or when I try to click on block types in dashboard.

As Conctete5 is requesting these missing blocks.

Can Any Body Help Me Please!
planist1 replied on at Permalink Reply
planist1
Try recreating the block using designer content.
mhawke replied on at Permalink Best Answer Reply
mhawke
What appears to have happened is that the database still thinks there is a block called "piano_add" in the [root]/blocks/piano_add folder. When it goes looking for it, it is gone so what planist1 is suggesting is that you re-install Designer Content and then re-create the 'Piano Add' block using Designer Content. It doesn't have to be identical in every respect to the original Piano Add block but it does have to have a handle="piano_add" and name="Piano Add". This should give you access to the Block Types functions where you can officially remove the 'Piano Add' block from your database if so desired. My fear is that there are other blocks that were also deleted manually and these will now show up with a similar error message after you fix the Piano Add block but one step at a time.

Always remember to delete things like packages, blocks and themes using the concrete5 backend BEFORE you delete the physical files from the server.
web7iepu replied on at Permalink Reply
Thanks a million, that worked for me...

With the original problem, the virus, I couldn't log into my concrete 5 site. So I had to manually delete all the folders from the server.

Thanks again!
planist1 replied on at Permalink Reply
planist1
Glad you got it sorted. If you would make sure to mark the correct answer so others looking for the solution will know.
web7iepu replied on at Permalink Reply
Did that.
Thanks pianist1 & mhawke