PHP Warning


Just thought I would bring this to your attention. I keep getting these warnings in the log…

PHP Warning: foreach() argument must be of type array|object, null given in /public_html/wp-admin/includes/plugin.php on line 1792


Can you install Query Monitor?

Looks like a plugin is using remove_menu_page in the wrong way.

1 Like

Thanks for your reply.

The only thing I found with Query Monitor is I was using depreciated contextual_help_list to remove the help tab.
Maybe that was the problem.

1 Like

It was remove_menu_page. It was using admin_init rather than admin_menu.

Thanks for your help on this.


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.