Site logo

[Resolved] What can I do when my updated Element Hook crashes my website?

Home Forums Support [Resolved] What can I do when my updated Element Hook crashes my website?

Home Forums Support What can I do when my updated Element Hook crashes my website?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #737518
    Pete

    What can I do when my updated Element Hook crashes my website?

    #737525
    Pete

    I’ve just put in some new php code in one of my element hooks and now my website is broken and won’t load any page, at all.

    #737544
    Tom
    Lead Developer
    Lead Developer

    In your wp-config.php file, find this line:

    /* That's all, stop editing! Happy blogging. */

    And add this line above it:

    define( 'DISALLOW_FILE_EDIT', true );

    Your wp-config.php file is located in the root folder of your website.

    Then you’ll be able to go in to delete your broken code.

    There are very few instances of broken PHP in Elements that’ll take down an entire Dashboard. What code did you add?

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