Debugging Error

I’ve got the following debugging notice: add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.) in /var/www/wp-includes/functions.php on line 4903

Is that a theme issue? I’ve disable plugins and am still seeing the message.

Thanks for your help.

Hello @coxdigitalarts,

Thanks for writing in!

add_submenu_page() is a WordPress function (https://developer.wordpress.org/reference/functions/add_submenu_page/) that may have been added in your child theme’s functions.php file. Please check your custom PHP code and make sure that it is correct. You are seeing the PHP message because the debug mode was enabled. To get rid of the message, you can disable the debug mode. You can do this by opening wp-config.php and adding


define('WP_DEBUG', true);

/* That's all, stop editing! Happy blogging. */

When you revisit the page, you should no longer be seeing any PHP message.

Hope this helps.

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