Image Block with wrong file broke website

Permalink
Hey everyone,

Client using 8.1 tried uploading a PDF file into the image block as an image. The following error gets thrown.

Any idea how to fix this. Maybe I can manually revert the page they were working on to a prior version? I'm locked out of the site and have to fix it from command line.

I've tried this but it didn't work:
https://stackoverflow.com/questions/43401757/concrete5-an-image-coul...

1 Attachment

ob7dev
 
ob7dev replied on at Permalink Reply
ob7dev
Turns out I can clear cache and get into file manager, but I cannot delete the file causing the problem from the file manager ( it times out ). How do I remove the file using the command line?
ob7dev replied on at Permalink Reply
ob7dev
Now I've found the problematic file under the application/files folder, and I've removed it. This lets the site load again, but the file still shows in the file manager and I cannot delete it from there without it timing out. Is there something in the database I need to remove to do a full removal of the file?
ob7dev replied on at Permalink Best Answer Reply
ob7dev
I ended up doing a command line upgrade to version 8.2. This solved the image problem and I was able to remove the bad file from the file manager successfully.

But upgrading the version broke a couple of plugins, so now I'm off to fix those.