• Resolved lencw

    (@lencw)


    Hi, since the v4.0.0 to v4.1.0 update, I now get hundreds of error lines in the WordPress error_log, all the same. , there can be many in one minute. I have removed the domain reference from the error. Is this error due to code in a code snippet or in the core code-snippets code, how can I identify this, and how can it be fixed?

    [18-Nov-2026 12:22:02 UTC] PHP Warning: Attempt to read property “ID” on null in /home/aaaaaaaaaaaaaaaaaa/public_html/wp-content/plugins/code-snippets/php/snippet-ops.php(947) : eval()’d code on line 86

    • This topic was modified 5 days, 3 hours ago by lencw.
    • This topic was modified 5 days, 3 hours ago by lencw.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter lencw

    (@lencw)

    I, I eventually tracked this down, the line 86 refers to line 86 in one of many code snippets, fortunately only a couple have this many lines. It would be helpful and save a lot of time for error messages to include the code snippet reference, can this please be considered as an enhancement.

    Plugin Author Carolina

    (@carolinaop)

    Hi @lencw ,

    Thank you for the update and for tracking down the affected snippet.

    You’re correct: the line number refers to the code inside the snippet. Because it runs through the plugin’s shared execution function, PHP’s log shows the plugin file rather than identifying the snippet directly.

    Including the snippet’s name or ID would make troubleshooting easier. Thank you for suggesting this enhancement and explaining why it would be useful.

    I’m marking this topic as resolved. If you need further help, please reply here and we’ll be happy to assist.

    Kind regards,
    Carolina

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.