Title: [Plugin: Code Snippets] snippet causing fatal error
Last modified: August 20, 2016

---

# [Plugin: Code Snippets] snippet causing fatal error

 *  Resolved [Peter](https://wordpress.org/support/users/pwenwp/)
 * (@pwenwp)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/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/](http://wordpress.org/extend/plugins/code-snippets/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-code-snippets-snippet-causing-fatal-error/#post-3128927)
 * 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/](http://cs.bungeshea.com/docs/safe-mode/)
 *  Thread Starter [Peter](https://wordpress.org/support/users/pwenwp/)
 * (@pwenwp)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-code-snippets-snippet-causing-fatal-error/#post-3128968)
 * Hi Shea,
 * Thank you, this worked a treat.
 * Regards
 * Peter
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-code-snippets-snippet-causing-fatal-error/#post-3129013)
 * 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/](http://code-snippets.bungeshea.com/docs/safe-mode/)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: Code Snippets] snippet causing fatal error’ is closed to new
replies.

 * ![](https://ps.w.org/code-snippets/assets/icon.svg?rev=2148878)
 * [Code Snippets](https://wordpress.org/plugins/code-snippets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/code-snippets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/code-snippets/)
 * [Active Topics](https://wordpress.org/support/plugin/code-snippets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/code-snippets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/code-snippets/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [wp-config.php](https://wordpress.org/support/topic-tag/wp-config-php/)

 * 3 replies
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-code-snippets-snippet-causing-fatal-error/#post-3129013)
 * Status: resolved