Title: Failsafe
Last modified: August 30, 2016

---

# Failsafe

 *  [ocisutiocean](https://wordpress.org/support/users/ocisutiocean/)
 * (@ocisutiocean)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/failsafe/)
 * If my custom snippet results in fatal error, will it be automatically deactivated
   like in ‘My custom functions’ plugin? Or there is some other procedure?
 * [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)

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

 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/failsafe/#post-6623705)
 * Unfortunately, there is no automatic detection. If you do end up activating a
   snippet that breaks your site, you can enable [safe mode](https://wordpress.org/support/topic/what-to-do-if-a-snippet-breaks-your-site?replies=11).
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/failsafe/#post-6623718)
 * I’m planning on adding error detection when saving a snippet in the next version.
 *  Thread Starter [ocisutiocean](https://wordpress.org/support/users/ocisutiocean/)
 * (@ocisutiocean)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/failsafe/#post-6623723)
 * Hehe, good to know. Your plugin is nice organized so automatic detection is simply
   a ‘must’. Atm I am using My Custom Functions plugin because it has this function,
   but sometimes it fails in detecting. So I was looking more secure solution and
   came acros your plugin.
 * Safe mode is ultimate solution and it is good to have that one. With a combination
   of safe mode + automatic detection your plugin would be win.
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/failsafe/#post-6623727)
 * I’ve just released version 2.5.0, which includes the error detection. I have 
   been puzzling over how to implement it for a while now, as lots of people have
   requested it.
 * What I was doing wrong was trying to detect errors when the snippets are *executed*,
   which doesn’t really work, when I should have been checking the code for errors
   before the snippet is saved to the database.
 *  Thread Starter [ocisutiocean](https://wordpress.org/support/users/ocisutiocean/)
 * (@ocisutiocean)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/failsafe/#post-6623748)
 * Nice, I will test it out tommorow or later today.
    Will report some feed back.
 * regarding to this error detection, you should make it work as much similar as
   you can with My custom functions plugin.
 *  Plugin Author [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * (@bungeshea)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/failsafe/#post-6623759)
 * Sure, I’ll have a look at it.

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

The topic ‘Failsafe’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [Shea Bunge](https://wordpress.org/support/users/bungeshea/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/failsafe/#post-6623759)
 * Status: not a support question