Page 1 of 1

I am getting a warning on my page:

PostPosted: December 4th, 2011, 6:18 am
by Deyson
Warning: Missing argument 2 for WP_Admin_Bar::add_node(), called in /home/name/public_html/website/wp-content/plugins/quick-cache/includes/classes/menu-pages.inc.php on line 242 and defined in /home/name/public_html/website/wp-includes/class-wp-admin-bar.php on line 164

This is after I installed admin bar disabler.

Any clue on how to fix this?

Thank you :)

Re: I am getting a warning on my page:

PostPosted: December 5th, 2011, 10:38 am
by DDVille
This developed after the WordPress 3.3 compatibility fix. I receive a similar warning on all my non multi-site installations. It only shows while logged into a site.

I three warnings printed in the footer of non multi-sites are:

Code: Select all
Warning: Missing argument 2 for WP_Admin_Bar::add_node(), called in ../plugins/quick-cache/includes/classes/menu-pages.inc.php on line 242 and defined in ../wp-includes/class-wp-admin-bar.php on line 164

Warning: Missing argument 3 for WP_Admin_Bar::add_node(), called in ../plugins/quick-cache/includes/classes/menu-pages.inc.php on line 242 and defined in ../wp-includes/class-wp-admin-bar.php on line 164

Warning: Invalid argument supplied for foreach() in ../wp-includes/class-wp-admin-bar.php on line 165

Re: I am getting a warning on my page:

PostPosted: December 5th, 2011, 11:06 am
by Deyson
I tried using the plugin that Cristian used here: viewtopic.php?f=4&t=2871&p=53701&

Seems to work now.

Re: I am getting a warning on my page:

PostPosted: December 5th, 2011, 11:39 am
by DDVille
That's great but I love my admin bar. The issue shows for me when the admin bar is present.

Re: I am getting a warning on my page:

PostPosted: December 5th, 2011, 12:02 pm
by Deyson
I see, I do not have my admin bar anymore either :)

I was trying to find a way to disable the bar for subscribers..

I guess I will be heading back to the drawing board :)

Re: I am getting a warning on my page:

PostPosted: December 5th, 2011, 12:34 pm
by DDVille
:) The developers will release a fix soon. The warning doesn't show for non logged in users so it's bearable.

Thank you for your suggestion. It'll help someone.