WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Code Snippets] snippet causing fatal error

[Resolved] [Plugin: Code Snippets] snippet causing fatal error

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shea Bunge

    @bungeshea

    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/

    Hi Shea,

    Thank you, this worked a treat.

    Regards

    Peter

    Plugin Author Shea Bunge

    @bungeshea

    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: Code Snippets] snippet causing fatal error’ is closed to new replies.