After I typed a snippet in error, Code Snippets has crashed my site
-
Hello,
I run Code Snippets and I keep all my snippets in one snippets file. Today I typed in some code at the end of this file by mistake, which has crashed my site. I managed to insert the linedefine(‘CODE_SNIPPETS_SAFE_MODE’, true);
into wp-config.php immediately before “/* That’s all, stop editing! Happy blogging. */”, but I am still locked out of the site.
I also tried the other method recommended here, namely appending
?page=snippets&snippets-safe-mode=1
to the end of
https://[the-domain-name-of-my-site]/wp-admin/admin.php
and could not get in to the site this way either.
Is there a way to use FTP to access the Code Snippets file, because if I can do that then I will know exactly what code in it needs to be removed.
Thanks!
Carrie
- The topic ‘After I typed a snippet in error, Code Snippets has crashed my site’ is closed to new replies.