• Resolved Jon

    (@freshyjon)


    I have like 5 different snippets set up. But I see in our server error log, this error:

    PHP Warning: array_intersect(): Argument #2 is not an array in /nas/content/live/yourinstall/wp-content/plugins/code-snippets/php/snippet-ops.php(517) : eval()’d code on line 31

    How can I determine which snippet (and ideally even the line in the snippet) is causing the issue?

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

    (@bungeshea)

    Unfortunately, there’s no way to see the name or ID of the snippet causing the error.

    However, you can see that the line number is 31 in the last part of the message, so it must originate from a snippet with at least 31 lines. Furthermore, it has to do with calling the array_intersect() function on that line, so all you need to do is look through those five snippets for one matching these criteria.

Viewing 1 replies (of 1 total)
  • The topic ‘How to know which Snippet is causing an error’ is closed to new replies.