• 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 line

    define(‘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

    • This topic was modified 4 years, 7 months ago by carrie01.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter carrie01

    (@carrie01)

    I’ve fixed the problem now, by following the third piece of advice I found (here), which was to start by renaming the Code-Snippets folder to “##code-snippets”.

    • This reply was modified 4 years, 7 months ago by carrie01.
    Plugin Author Shea Bunge

    (@bungeshea)

    This is quite strange – the methods of enabling safe mode should work.

    I’ll have to do some checking to see what might have caused this.

    Just to confirm, by ‘one snippets file’, do you mean that you are actually editing a plugin file, or just that you use a single code snippet to store all your code?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘After I typed a snippet in error, Code Snippets has crashed my site’ is closed to new replies.