Error on Woocommerce product page

Hello, there is an error on woocommerce on product page? It show " Warning: A non-numeric value encountered in /home2/ecpis/coffeekingdoms/wpcontent/plugins/woocommerce/includes/wc-product-functions.php on line 879". May I know how to solve it? Thank you

Hi Jian,

Thanks for writing in! Your error is actually related to the PHP version that you’re using, which you can read more from here (https://theme.co/apex/forum/t/php-7-1-error-in-header-x-theme/3411/2?u=mldarshana). In case if you see this error again, you can try switching to a different PHP version. We recommend PHP v5.6.x or above to avoid incompatibility issues.

Or else you can disable WP_Debug mode by editing your wp-config.php file. You can refer to the detailed guide here (https://codex.wordpress.org/WP_DEBUG).

define('WP_DEBUG', false);

Let us know how it goes.
Thanks!

It’s work! Thank you so much.

You’re welcome! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.