Site logo

Archived topic

Php code in an element breaks my site, how do I get back?

4 replies · Started by Carsten on September 8, 2022

Viewing posts 1–5 of 5

Hi there, I'm using GP Pro, and I have an issue with Elements.

If I add some php with an error and save, I'm not able to go back and fix it, and the

There has been a critical error on this website.

pops up.

What do I do in a situation like this, where I can't access my dashboard to change the php code in the element which breaks my site?

Regards
Carsten

Hi there,

you would need server access to search the database - in the wp_post tables you can search for the post_type = gp_elements
Either delete the bad post or change its post_status to draft

Thanks, managed to go back without, but good to know until next time ;-)

Thanks, managed to go back without, but good to know until next time ;-)

Glad to hear you fixed it !

This archived topic is closed to new replies.