• Resolved Cosmin T.

    (@cosmindan22)


    Hello

    First of all great and amazing plugin.

    Some of my snippets are getting deactivated from time to time and I’m not an expert in debugging, however I have enabled to show the logs. It would be very helpful if an email is sent when this happens so you know instantly if something is wrong.

    It seems that they are deactivated randomly and not always but I see the same error:

    2023-09-20T22:11:33+00:00 Undefined property: WP_Error::$term_id 2023-09-20T22:11:33+00:00 Snippet "cat count" (#45384) was automatically deactivated due to a fatal error.
    
    2023-09-16T10:22:10+00:00 Undefined property: WP_Error::$term_id
    2023-09-16T10:22:10+00:00 Snippet "disable page titles" (#18900) was automatically deactivated due to a fatal error.
    
    2023-09-16T13:08:51+00:00 Undefined property: WP_Error::$term_id
    2023-09-16T13:08:51+00:00 Snippet "elementor show logged" (#18901) was automatically deactivated due to a fatal error.

    Thank you

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

    (@gripgrip)

    Hi @cosmindan22,

    We’re happy to hear you are enjoying the plugin!

    Regarding the errors and email notifications – this is something we are considering adding in a future release, thank you for the suggestion.

    As for the error – did you get a chance to update the plugin to the latest version? We improved error reporting and in most cases when a snippet gets automatically deactivated you should also see the exact line where the snippet threw an error, we also improved the error handling so that only the snippet causing the error is deactivated, where possible.

    It might also be useful to take a look at the tips in this article: https://wpcode.com/docs/how-to-debug-php-errors-in-wpcode/

    If you still can’t find the error please reach out using the form at https://wpcode.com/contact and we’ll gladly help pinpoint the issue.

    Thread Starter Cosmin T.

    (@cosmindan22)

    Thank you and have an amazing day

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘receive email on errors’ is closed to new replies.