Opened 5 years ago
Closed 5 years ago
#49172 closed defect (bug) (invalid)
Notice popped up while updating WP 5.3.0
Reported by: | ninarol | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 5.3.2 |
Component: | General | Keywords: | |
Focuses: | Cc: |
Description
Hi!
I have a lingering NOTICE on top of my WP interface since updating to version 5.3.0. I have tried deactivating all plugins one by one, and contacted both my hosting provider and theme company support about the issue. Both refered me to WordPress support.
Message is as it follows:
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 /home/ninarola/public_html/wp-includes/functions.php on line 4986
Can you help me resolve this?
Thank you,
Nina Roland
Change History (1)
Note: See
TracTickets for help on using
tickets.
Hi @ninarol,
Sorry for the delayed response, this Trac instance is for the development of WordPress Core. For support the WP Forums are the best avenue;
wordpress.org/support
There is also an IRC Support Channel available here - https://make.wordpress.org/support/irc-support-channel/
From the sounds of your issue at a quick glance, there is some custom/theme/plugin code which is calling the
add_submenu_page
incorrectly. In 5.3 the warning was introduced as several plugins were confusing the seventh param as a string instead of an integer. Since the notice was introduced many plugins have corrected their code so you may find updating has addressed your issue. If the message persists you can go through your theme and custom code to attempt to identify the code misusing the add_submenu_page`s seventh parameter (It should be an integer).I'm going to close this ticket but if you get stuck your best option for active support is the support forums (wordpress.org/support).