<span class="resolved" aria-label="Resolved" title="Topic is resolved."></span>How to debug PHP warnings?

[ad_1]

Replies: 2

Hi, first: thanks for this excellent plugin!

One small issue I ran into: my error log is being flooded with PHP warning messages. I assume they are coming from one of the code snippets but… Since there are many snippets, is there a way to find out quickly from where it is coming?

[02-Jun-2023 10:13:09 UTC] PHP Warning:  Undefined variable $args in /home/xxx/xxx/wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-snippet-execute.php(277) : eval()'d code on line 28
[02-Jun-2023 10:13:09 UTC] PHP Warning:  Trying to access array offset on value of type null in /home/xxx/xxx/wp-content/plugins/insert-headers-and-footers/includes/class-wpcode-snippet-execute.php(277) : eval()'d code on line 28

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer