Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#30418 closed defect (bug) (invalid)

Warnings in add_submenu_page()

Reported by: josephorr's profile josephorr Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.0
Component: Themes Keywords: close reporter-feedback
Focuses: Cc:

Description

Warning: Missing argument 5 for add_submenu_page(), called in /nfs/c06/h06/mnt/174569/domains/ps212.com/html/wp-content/themes/ps212/functions.php on line 203 and defined in /nfs/c06/h06/mnt/174569/domains/ps212.com/html/wp-admin/includes/plugin.php on line 1103

Warning: Illegal offset type in isset or empty in /nfs/c06/h06/mnt/174569/domains/ps212.com/html/wp-includes/capabilities.php on line 1322

Warning: Illegal offset type in isset or empty in /nfs/c06/h06/mnt/174569/domains/ps212.com/html/wp-includes/capabilities.php on line 994

Change History (3)

#1 @josephorr
10 years ago

Not sure what's happening here. This is a fresh install of WordPress. I even replaced the files, and still nothing helped.. this error occurred when I migrated a localhost site to the hosted domain...maybe the DB is buggy?

#2 @johnbillion
10 years ago

  • Component changed from General to Themes
  • Keywords close reporter-feedback added
  • Summary changed from Warning: Missing argument 5 for add_submenu_page(), called in /nfs/c06/h06/mnt/174569/domains/ps212.com/html/wp-content/themes/ps212/functions.php on line 203 and defined in /nfs/c06/h06/mnt/174569/domains/ps212.com/html/wp-admin/includes/plugin.php on line 1103 Warning: Illegal offset type in isset or empty in /nfs/c06/h06/mnt/174569/domains/ps212.com/html/wp-includes/capabilities.php on line 1322 Warning: Illegal offset type in isset or empty in /nfs/c06/h06/mnt/174569/domains/ps212.com/html/wp-includes/capabilities.php on line 994 to Warnings in add_submenu_page()

Thanks for the report joesphorr.

This appears to be a problem with your theme, "ps212". It's calling add_submenu_page() but missing the fifth parameter.

Can you activate the default theme and confirm that the error goes away? If so, you'll need to report the problem with the developer of the "ps212" theme.

#3 @SergeyBiryukov
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

The missing 5th parameter is not the only issue, apparently it also passes an invalid (non-scalar) value to the 4th parameter. Still, the issues clearly come from the "ps212" theme, not WordPress core.

Note: See TracTickets for help on using tickets.