WordPress.org

Ready to get started?Download WordPress

Forums

Code Snippets
[resolved] snippet causing fatal error (4 posts)

  1. pwenwp
    Member
    Posted 1 year ago #

    Hi there,

    I have added a snippet that is causing a fatal error when I activate it. I have deactivated the plugin but cannot restart as it set of a fatal error warning?

    On which file or where can I find the snippet I added so I can remove it manually to restore the active snippets I had?

    Regards

    Peter

    http://wordpress.org/extend/plugins/code-snippets/

  2. Shea Bunge
    Member
    Plugin Author

    Posted 1 year ago #

    Hello,

    You can try activating 'Safe Mode', which means that your snippets do not run, but everything else in the plugin works as normal. This means that you can access your dashboard and deactivate the faulty snippet.

    To activate safe mode, add the line

    define('CS_SAFE_MODE', true);

    to your wp-config.php file.

    Read more here: http://cs.bungeshea.com/docs/safe-mode/

  3. pwenwp
    Member
    Posted 1 year ago #

    Hi Shea,

    Thank you, this worked a treat.

    Regards

    Peter

  4. Shea Bunge
    Member
    Plugin Author

    Posted 1 year ago #

    In Code Snippets 1.6, the constant has changed to CODE_SNIPPETS_SAFE_MODE. The old constant will still work (for backwards-compatibility), but is not preferred.

    To activate safe mode, add the line

    define('CODE_SNIPPETS_SAFE_MODE', true);

    to your wp-config.php file.

    Read more here: http://code-snippets.bungeshea.com/docs/safe-mode/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic