I am having trouble duplicating. What version of PHP are you using? Do you get the errors if you deactivate this plugin?
if i deactivate the errors are gone
wp : 4.9.1
wc: 3.2.6
php: 7.1.10
theme shopkeeper by getbowtied
i saw and update of the plugin and i executed it
there is still an error
Warning: A non-numeric value encountered in /***/etserv.be/httpd.www/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php on line 234 Warning: A non-numeric value encountered in /***/etserv.be/httpd.www/wp-content/plugins/woocommerce/includes/class-wc-discounts.php on line 88
I have been trying to reproduce it at my end and I have not been able to. There must be a unique combination of theme/plugins that is producing the warning. I will let you know if I find something.
maybe yes, weird thing is the class-wc-totals but also class-wc-discounts
non-numeric values
By some weird random combination i have now reproduced it. I will let you know as soon as fixed. Maybe for now suppress warnings on production site?
ok, i found what is going on, it was logic that maybe, just maybe it has something todo with us.
Meaning, we did not input a value for each product, meaning our whole catalogue does not have prices because we wanted to work witth rfq only
If i attach a price to a product, the error is gone
So, it is our side but, before the woocommerce update this was not a problem
I found the same thing on my side. Price (even zero) is becoming required it seems like.
i guess, nevertheless thank you for looking into this
Hi, I’m getting the same message: Unsupported operand types in /home4/###/public_html/wp-content/plugins/woocommerce/includes/class-wc-cart-totals.php:234 etc. The difference is I have prices attached to my products. When I select “visit site” in my dashboard the only thing visible are those error messages frozen on the screen. My problem occurred when I modified code in my child themes function.php file. Since I modified, deleted the code, completely removed the file, reinstalled woo-commerce and WordPress but I’m still frozen out of my site. If I remove the woocommerce.php file or deactivate the woocommerce plugin my menu bar shows up. Any help would be appreciated. Using wp:4.9.2/wc:3.2.6/php:7.0.25
what version php are you using?
Using wp:4.9.2/wc:3.2.6/php:7.0.25
Try 7.1 and see if the error goes away. Do you get this error without this plugin?
As I stated above My problem occurred when I modified code in my child themes function.php file. Since, I’ve modified and/or deleted the code, completely removed the function.php file, reinstalled woo-commerce and WordPress and deactivated all my plugins but I’m still frozen out of my site. When I deactivate the woocommerce plugin and/or remove the woocommerce.php file from the woo-commerce plugin, the only thing that shows up is my sites menu bar with “Notice: Trying to get property of non-object in /home4/nsdinc/public_html/wp-includes/nav-menu.php on line 780.”& Notice: Use of undefined constant WOOCOMMERCE_VERSION…