Site logo

Archived topic

Critical error on my homepage

11 replies · Started by Ravo on February 22, 2023

Viewing posts 1–12 of 12

Hello everyone,

I am facing a critical error on a website that is hosted locally for the moment.

Context : I was trying to change an icon on the homepage when I noticed something wrong : not only the new icon did not show but the whole page (still in the back-office) started to freeze. So I closed the page. Re-opened it, and this thing showed up.

Screenshot critical error
(link to the screenshot)

I did opening this "formatting.php" they are talking about but I do not understand a line ...

Note, the rest of the website is working fine. It's just the homepage that is out of control.

Can somebody please help me or at least tell me what this is about ?

Thank you very much

Hi there.

was the icon one of the pre-installed icons ? Or was it a custom icon ?

Hi David,

It was a custom icon 😔

It sounds like WP did not like what was in the SVG.

Where did that icon code come from ?

Yes I see that. It downloaded it from Canva as an SVG, then I copied/pasted the <svg> code... Lesson's learned !

Is there any way I can restore the older versions of my homepage ?

Did you have a backup of the site ?

I don't think so, it's still hosted on my computer for the moment, no live version.

Hi Ravo,

If that's the case, you can probably try to access your Homepage through the wp_posts table of your database. You'll need to look for the specific page and try to remove the Block code that contains the SVG you added.

Hi Fernando,

Thanks a lot for your answer. I was so thrilled to do that, and I did it but nothing changed. I even erased all the latest versions from these couple days, still nothing.

So, I ended up creating a new homepage because I have no patience :D

Funny thing is, when I tried to delete the problematic homepage, it showed an error page again. So I closed the website, reopened it, went to check the pages again ... And poof, the bad guy was gone.

Thanks again for your help ! Now I'm off to rebuild my homepage (silver lining is : at least it's not the whole website).

I see. You're welcome, Ravo! We would recommend backup your site every now and then so that if something like this happens again, you won't need to start from scratch anymore.

Thanks Fernando, yes I will do that from now on :)

You're welcome, Ravo! :)

This archived topic is closed to new replies.