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
-
This reply was modified 6 years, 5 months ago by
mbrsolution.
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.wordpress.org/reference/functions/add_submenu_page/
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.