Undefined Variable Warnings in insert-php-code-snippet Plugin
-
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
- You must be logged in to reply to this topic.