• hessi2

    (@hessi2)


    Hello folks,

    I found a whole bunch of errors in my error.log that I couldn’t figure out. So I asked ChatGPT, who explained everything to me – and I didn’t understand anything about it, or rather I didn’t want to fiddle around in the plugin’s source code.

    So I asked the AI to create a support request for me. …

    Hi,

    I’m experiencing multiple PHP warnings when using the Insert PHP Code Snippet plugin. These warnings seem to originate from the plugin’s shortcode-handler.php file. Here’s a snippet of the error log for reference:

    PHP Warning: Undefined variable $_debugging in /path/to/insert-php-code-snippet/shortcode-handler.php on line [various lines]  
    

    The warnings occur on many lines where the variable $_debugging is used without being defined. I suspect that the variable might be missing a proper initialization, or there might be an issue with how it’s being referenced.

    Details of my setup:

    • WordPress version: 6.7
    • Plugin version: 1.3.7
    • PHP version: 8.2.5
    • Hosting: Alfahosting

    These warnings are filling up my server logs and might potentially impact the site’s performance. Could you please advise on how to resolve this issue? Is there an update planned to address this, or is there a workaround I can apply in the meantime?

    Thank you for your help!

    Best regards,
    Michael

Viewing 1 replies (of 1 total)
  • Hi Michael,

    There isn’t a variable named $_debugging in the Insert PHP Code Snippet plugin’s source code. The issue is likely originating from the custom snippet code you’ve added.

    Please review your snippet to check for any references to $_debugging, as it seems to be causing the warnings. Correcting or removing this undefined variable from your code should resolve the issue. Let me know if you need further assistance!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.