This topic has 14 replies, 4 voices, and was last updated 9 years, 2 months ago ago by Eva Kemp
Hello,
I am receiving an error on a site we are developing. We are using the ‘WooCommerce TM Extra Product Options’ plugin so that a customer can add ‘Accessories’ to their item. When you have added the ‘Accessories’ and then checkout, in the cart there are several errors.
Warning: array_filter() expects parameter 1 to be array, string given in /homepages/7/d588970449/htdocs/clickandbuilds/GalaFlags/wp-content/plugins/woocommerce/includes/class-wc-product-variation.php on line 166
Warning: array_map(): Argument #2 should be an array in /homepages/7/d588970449/htdocs/clickandbuilds/GalaFlags/wp-content/plugins/woocommerce/includes/class-wc-product-variation.php on line 166
Thankyou,
Ash
Hello,
As you can see the warning is related to Woocommerce plugin – /wp-content/plugins/woocommerce. Try to reupload Woocommerce plugin files.
Regards,
Eva Kemp.
Hello,
You should contact Woocommerce support concerning your query as this is their configuration.
Regards,
Robert Hall.
Hi Robert,
I have tried to contact their support however as the plugin was bundled with the theme, I cannot receive any technical support from Woocommerce.
Thanks,
Hello,
Did you try to reupload Woocommerce plugin files in wp-content/plugins directory?
Please try it.
Best regards,
Jack Richardson.
Hi Jack,
I have de-activated, removed, re-installed and re-activated the Woocommerce plugin. Still no joy.
Regards,
Hello,
Please provide us with FTP and wp-admin panel credentials in Private Content.
Regards,
Eva Kemp.
Details below, thank you.
Hello,
As I see you’re using old theme version.
Please update the theme to the latest version 2.5.
Before update delete “woocommerce” folder in the directory wp-content/themes/woopress/ and it’ll be reuploaded from a new theme package.
Also update all required plugins https://www.8theme.com/download-plugins/ .
Don’t forget to create back up of your files and database before starting update process!
(it’s for Legenda theme but the process is the same).
Regards,
Eva Kemp.
I have updated Woopress and it still isn’t working.
Could you send me the up-to-date Woocommerce plugin please?
Regards,
Never mind, I have installed the latest version 2.4.7 and I still have the same issue!
Regards,
Hello,
The same warning was present in default WordPress Twenty Fifteen theme.
I’ve disabled “display_errors” function in your php.ini file and now error has disappeared.
Please clear browser cache and check.
Regards,
Eva Kemp.
Brilliant, yes that is correct. It is working now!
Thankyou for your help there!
Kind Regards,
Hello,
You’re welcome.
Regards,
Eva Kemp.
Tagged: best selling, cart, extra product options, solutions, themes, woocommerce
The issue related to '‘Woocommerce Cart not working correctly with Extra Product Options’' has been successfully resolved, and the topic is now closed for further responses