Site logo

Archived topic

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

2 replies · Started by Pete on November 24, 2018

Viewing posts 1–3 of 3

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

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.

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?

This archived topic is closed to new replies.