• Resolved SiKth

    (@sikth)


    Hi,

    Great plugin with a lot of functions. I have moved from another similar plugin that I use on a lot of sites to try this one, due to more functions.

    But the snippets I have been using for years keeps getting disabled with this plugin on every little error it can find. I have not digged in to what some of them are, and some have I resolved with the error log. But they are so small that if they get the error they don’t need to be completely disabled. I have getting a lot of trubbel because the deactivation of the snippet is a much bigger issue then the error itself.

    I do get the idea that its to protect the site but I want to disable the disable function on some of my snippets. Or at least get a notification by mail if they are. Right now I have to go in regularly to check if they are still active. While on the other plugin the same snippet have been active for years without any issue.

Viewing 1 replies (of 1 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @sikth,

    We understand that this behaviour can be frustrating and in version 2.1.4 we have changed the way snippets get deactivated so that they only get deactivated if the error is thrown in the admin. For errors thrown in the frontend we now register them and you will be able to see a list of snippets with errors but they will only be deactivated if you run into the error while viewing admin pages.

    You can also disable the auto-deactivation feature completely using this filter:

    add_filter( 'wpcode_error_locations_auto_disable', '__return_empty_array' );

    If you choose to add this code please know that you might get locked out the admin in case of a fatal error and if that happens you can use the WPCode Safe Mode to regain access to the site as explained in this article.

Viewing 1 replies (of 1 total)

The topic ‘Snippets keep getting deactivated’ is closed to new replies.