WPIntell

Source evidence

PHP Notice with WP 5.3

Cookie Bar · support · 2019-11-20T16:58:00+00:00

mixedsentiment
mediumseverity
0.84relevance
5replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 25 rows with source links

16.0% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

21 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
themightyant resolved
Hi I am recieveing this error on several sites with WP 5.3. ON each when I disable this Cookie Bar plugin the error disappears. The error is 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/alixlaw1/public_html/wordpress-cms/wp-includes/functions.php on line 4903 Hi, I just ran several tests on v5.3 and I can not reproduce this error. What PHP version are you using? By “disable” you mean “deactivate” the plugin I guess, is this correct? Hi Thanks for the prompt response. I’m running 7.3 but have tested in 7.1 with the same problem. Below is a link to an image with all other plugins disabled, default theme and the problem still appearing (it is a dev site so errors are on). Yes, the notice goes away when Cookie Bar plugin is deactivated. https://www.dropbox.com/s/x4eacn57bpwv789/alp-error-cookie-bar.png This reply was modified 6 years, 6 months ago by themightyant . After quite a bit of narrowing down it was definitely your plug-in creating the problem on one of my client sites. Here is the debug information. 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/bushrasl/public_html/wp-includes/functions.php on line 4903 #0 _doing_it_wrong() called at [/home/site/public_html/wp-admin/includes/plugin.php:1385] #1 add_submenu_page() called at [/home/site/public_html/wp-admin/includes/plugin.php:1481] #2 add_options_page() called at [/home/site/public_html/wp-content/plugins/cookie-bar/cookie-bar.php:16] #3 cookie_bar_menu() called at [/home/site/public_html/wp-includes/class-wp-hook.php:288] #4 WP_Hook->apply_filters() called at [/home/site/public_html/wp-includes/class-wp-hook.php:312] Hope that helps. I confirm the bug with wordpress v5.3. Cookie Bar v1.8.7 is now available which should be resolving this issue. Please update and let me know if you need anything further. Thank you @nimonogi that solves it and @stevember for the extra info. Thanks for the great plugin also. Case closed

Comments

5 shown
nimonogi 2019-11-21T06:30:00+00:00

Hi, I just ran several tests on v5.3 and I can not reproduce this error. What PHP version are you using? By “disable” you mean “deactivate” the plugin I guess, is this correct?

themightyant 2019-11-21T08:52:00+00:00

Hi Thanks for the prompt response. I’m running 7.3 but have tested in 7.1 with the same problem. Below is a link to an image with all other plugins disabled, default theme and the problem still appearing (it is a dev site so errors are on). Yes, the notice goes away when Cookie Bar plugin is deactivated. https://www.dropbox.com/s/x4eacn57bpwv789/alp-error-cookie-bar.png This reply was modified 6 years, 6 months ago by themightyant .

stevember 2019-11-22T09:31:00+00:00

After quite a bit of narrowing down it was definitely your plug-in creating the problem on one of my client sites. Here is the debug information. 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/bushrasl/public_html/wp-includes/functions.php on line 4903 #0 _doing_it_wrong() called at [/home/site/public_html/wp-admin/includes/plugin.php:1385] #1 add_submenu_page() called at [/home/site/public_html/wp-admin/includes/plugin.php:1481] #2 add_options_page() called at [/home/site/public_html/wp-content/plugins/cookie-bar/cookie-bar.php:16] #3 cookie_bar_menu() called at [/home/site/public_html/wp-includes/class-wp-hook.php:288] #4 WP_Hook->apply_filters() called at [/home/site/public_html/wp-includes/class-wp-hook.php:312] Hope that helps.

nimonogi 2019-11-22T09:46:00+00:00

I confirm the bug with wordpress v5.3. Cookie Bar v1.8.7 is now available which should be resolving this issue. Please update and let me know if you need anything further.

themightyant 2019-11-22T10:20:00+00:00

Thank you @nimonogi that solves it and @stevember for the extra info. Thanks for the great plugin also. Case closed