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

Home Forums Support [Resolved] Php code in an element breaks my site, how do I get back?

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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2337034
    Carsten

    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

    #2337210
    David
    Staff
    Customer Support

    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

    #2337247
    Carsten

    Thanks, managed to go back without, but good to know until next time ๐Ÿ˜‰

    #2337249
    Carsten

    Thanks, managed to go back without, but good to know until next time ๐Ÿ˜‰

    #2337271
    David
    Staff
    Customer Support

    Glad to hear you fixed it !

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.