• Resolved Victor Font

    (@vfontj)


    This error notice appears in the WordPress admin area after the WP 5.3 update. Deactivating the plugin removes the notice.

    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/hpsadmin1/staging.hpsubfloors.com/wp/wp-includes/functions.php on line 4903

    You’re passing 8 parameters to this function instead of 7 in https-redirection.php.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support mbrsolution

    (@mbrsolution)

    Hi, I don’t think the error message is related to our plugin. What PHP version is running in your server?

    To find out if your site is healthy, run a health check. Go to Tools -> Site Health in your admin dashboard.

    Thank you

    Thread Starter Victor Font

    (@vfontj)

    This has nothing to do with PHP version. It is your plugin. add_submenu_page() is a WordPress function. You are passing 8 parameters to the function when there should only be seven. If you look at line 222 in https-redirection.php, this is the code:

    add_submenu_page(‘options-general.php’, ‘HTTPS Redirection’, ‘HTTPS Redirection’, ‘manage_options’, ‘https-redirection’, ‘httpsrdrctn_settings_page’, plugins_url(“images/px.png”, __FILE__), 1001);

    If you remove plugins_url(“images/px.png”, __FILE__), so you have this it works correctly:

    add_submenu_page(‘options-general.php’, ‘HTTPS Redirection’, ‘HTTPS Redirection’, ‘manage_options’, ‘https-redirection’, ‘httpsrdrctn_settings_page’, 1001);

    I’m a developer for over 30-years. I’ve shown you the issue and solution. You can either accept the fact that your plugin is calling the function incorrectly or not. Here’s the WordPress docs, the function only receives 7 parameters, not 8. https://developer.www.ads-software.com/reference/functions/add_submenu_page/

    Plugin Support mbrsolution

    (@mbrsolution)

    Thank you for the detail information regarding our code. I have submitted a message to the developers to investigate further your findings.

    Once again thank you so much for sharing your findings with us.

    Kind regards

    Plugin Author mra13

    (@mra13)

    Thank you. I have applied an update for this. Please upgrade the plugin to v1.9.1 and this should be resolved.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error notice:’ is closed to new replies.