• Hello,

    In order to improve the code of my site, it would be great to tell us in which snippet we have the following messages in debug.log

    PHP Notice: Trying to get property 'ID' of non-object in /srv/htdocs/wp-content/plugins/code-snippets/php/snippet-ops.php(446) : eval()'d code on line 8

    All notices are located in snippet-ops.php, it’s very long to find manually which piece of code corresponds to this.

    Thanks for your feedback!

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

    (@bungeshea)

    It would be great to have a more useful error message that included the snippet ID and perhaps name, but unfortunately this is a limitation of PHP, and not something I can change in the plugin.

    ‘snippet-ops’ has nothing to do with this sort of notice – it is to do with the snippets you have running on your site. To narrow down which one it may be, you can always use the search feature. In this case, searching for ‘ID’ should give you a list of snippets that could be causing the problem.

Viewing 1 replies (of 1 total)
  • The topic ‘Improve snippets logs’ is closed to new replies.