Snippet id not available in the WP error_log
-
Hi,
During development phases, the WP error log shows critical information when debugging a snippet, as in:
“[21-Jun-2024 15:53:17 UTC] PHP Warning: Undefined variable $atts in /srv/htdocs/wp-content/plugins/code-snippets-pro/php/snippet-ops.php(609) : eval()’d code on line 8”
But this is very vague.
Why does this not contain the snippet ID so you can instantly target the faulty snippet? Otherwise this is just like seaching for a needle in a haystack when you have multiple snippets running in parallel.
Have I missed something? Is there a way to direct the configuration to expose the ID that is the source of the error via “$snippet_id”?
Kindly advise.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.