Got the same problem over here how can i get this warning out of my site?
any solutions?
Also receiving the same error after updating to WooCommerce v2.2.3 today.
Warning: Invalid argument supplied for foreach() in ***/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-menus.php on line 127
Also getting this error today after updating to 2.2.3
Hi,
I hardly believe that our plugin causes this problem, if it is uninstalled, according to the following reasons:
- This plugin does not create any menu item in WooCommerce menu section (just in WordPress general Setting section). class-wc-admin-menus.php line 127 deal with WooCommerce menu highlighting, but our plugin is not concerned in WooCommerce submenu items.
- WordPress is a well designed system, the plugins register their own menu items when they are initializing ourselves during every page load. So menu items are not stored in a global store in the database in WordPress. So plugins (and hence our plugin) cannot left an unwanted item, after it is uninstalled, it is not possible technically. That is why that is impossible that our plugin (or any plugin) left behind some kind of menu item in the database.
You have experienced this problem 7 hours ago. Two of you mentioned that this problem occurs in case of WooCommerce 2.2.3. This WooCommerce version was issued 16 hours ago! So the same time when the problem occurs!
Our plugin does not change in the past 1.5 months, so probably the problem is not in our plugin, rather in this new version of WooCommerce!?
I have just tested it, and do not experinece this problem in WooCommerce 2.2.3, but I guess this is a WooCommerce problem, or a plugin conflict between WooCommerce 2.2.3 and another installed and activated plugin, that you use.
Chatmandesign said that he uninstalled our plugin, so our plugin is not in conflict with WooCommerce 2.2.3 on his site.
I suppose try to find which plugin is (or is not) in conflict with WooCommerce, or if none, please send this problem to WooCommerce support team.
We have some more question to localize the problem:
- Are all of you using WooCommerce 2.2.3?
- Are all of you using WooCommerce Custom Tabs?
- Are all of you uninstalled our plugin, and the problem still occures?
- Are all of you start to use our plugin in the past 7 hours? Or you use it earlier without problem, and this error occurs now?
If you think that our plugin is concerned this problem, please show us it somehow, then we will still on to fix it, but
at this moment we see that not our plugin causes the problem.
If so, please remove your one star rating!
Best Regards,
Peter Rath
WebshopLogic
Also getting this error yesterday after updating to 2.2.3!
WebshopLogic, can you check your plugin update part of the language localization automatic function.
Thank you.
Hi there!
Same problem here.
I’ve received a message on my dashboard saying that I had to upgrade Woocommerce. After the upgrade I’m getting this error:
Warning: Invalid argument supplied for foreach() in /……/public_html/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-menus.php on line 127
WooCommerce Version: 2.2.3
After disabling woocommerce I have no more error exploding on the administration (my website was not launched so I could try this).
Thanks!
Hi Guys!
This is a WooCommerce problem, not related to “WooCommerce Custom Tabs” Plugin!
If you would like to add more product tab, please use our great plugin, that expands original WooCommerce functionality. You can find more details here: http://webshoplogic.com/
This bug is in the base WooCommerce plugin, and not in our “WooCommerce custom Tabs” plugin, SO PLEASE DO NOT WRITE HERE ABOUT THIS PROBLEM. We are a different company!
We have found a post for you about this problem at WooCommerce support, they said that the problem is solved: https://ww.wp.xz.cn/support/topic/error-message-in-multi-site-from-223?replies=3
Drear @chatmandesign!
SINCE THIS IS NOT THE PROBLEM OF OUR PLUGIN, PLEASE REMOVE THE ONE STAR RATING that you have given us! Please also reward the amount of work that our support team did in high priority today to investigate this problem about a mistake of another company.
We hope you will use our plugins in the future
to make you WordPress site better π
Peter Rath
WebshopLogic
Thanks for the follow-up and link pointing us to the correct issue and solution!
How do you remove a rating?
Thank you, i will give you a good rating for your help mr plugin master.
It appears that ratings cannot be deleted, only changed, so I have updated my rating and review to reflect that the error seems to have been unrelated to this plugin.
Please stop emailing my boss now. Thanks.