Title: Plugin is filling debug.log with &#8220;errors&#8221;
Last modified: December 29, 2022

---

# Plugin is filling debug.log with “errors”

 *  Resolved [giangel84](https://wordpress.org/support/users/giangel84/)
 * (@giangel84)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/plugin-is-filling-debug-log-with-errors/)
 * Hi, inside debug.log I found a lot of strings such as
 * PHP Notice: Trying to access array offset on value of type null in /home/public_html/
   wp-content/plugins/wp-megamenu/classes/class.wp-megamenu-base.php on line 384
 * This happens also for the lines: 386, 387, 388, 391, 400, 407, 417

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

 *  [largbasket](https://wordpress.org/support/users/largbasket/)
 * (@largbasket)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/plugin-is-filling-debug-log-with-errors/#post-16329776)
 * Dear [@giangel84](https://wordpress.org/support/users/giangel84/) 
   I am very 
   sorry for the issue. Can you please tell me your website PHP version number. 
   Because the WP Mega can work with the PHP 7.3.Have a good day.
 *  Thread Starter [giangel84](https://wordpress.org/support/users/giangel84/)
 * (@giangel84)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/plugin-is-filling-debug-log-with-errors/#post-16354890)
 * I’m using PHP 7.4 which is the minimum version I must use for security and compatibility
   reason.
   There’s no planned update for this plugin?
 *  [largbasket](https://wordpress.org/support/users/largbasket/)
 * (@largbasket)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/plugin-is-filling-debug-log-with-errors/#post-16356838)
 * Dear [@giangel84](https://wordpress.org/support/users/giangel84/) 
   At this moment
   WP Mega Menu isn’t compatible with PHP 7.4, maybe in the future we will update
   the plugin.Have a good day.
 *  Thread Starter [giangel84](https://wordpress.org/support/users/giangel84/)
 * (@giangel84)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/plugin-is-filling-debug-log-with-errors/#post-16359526)
 * Meanwhile I fix the issue by editing the file “wp-megamenu/classes/class.wp-megamenu-
   base.php”.
 * I just embody the foreach loop content (line 382 to 420), with:
 * `if (is_array($widget_item)) { //loop }`
 * Bye!

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

The topic ‘Plugin is filling debug.log with “errors”’ is closed to new replies.

 * ![](https://ps.w.org/wp-megamenu/assets/icon-256x256.jpg?rev=2451874)
 * [WP Mega Menu](https://wordpress.org/plugins/wp-megamenu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-megamenu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-megamenu/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-megamenu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-megamenu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-megamenu/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [giangel84](https://wordpress.org/support/users/giangel84/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/plugin-is-filling-debug-log-with-errors/#post-16359526)
 * Status: resolved