• Hello,

    I just updated WordPress to 4.7.1 version, and woocommerce to 2.6.12 version it says that has compatibility with wordpress 4.7.1, I don’t know why the following issue is displayed in my shopping cart?

    Warning: Division by zero in /home/grnhghfu/public_html/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 250

    Thanks in advance for your support, your job is great

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi zidukxud,
    The cause was likely your theme.
    This is just a PHP warning which is caused by a null or not yet initialize column variable in your site.
    Make sure that you have selected the shop columns that you would like to have in your shop page. To get rid of this warning, please disable the WP_DEBUG mode. You can do this by opening wp-config.php and adding

    define('WP_DEBUG', false);

    When you revisit the page, the error should be gone.

    Hope this helps. Please let me know how it goes.

    Thread Starter zidukxud

    (@zidukxud)

    Hi Trung,

    Thnaks for your response, well I just see the config.php file and this function was already added previously with the variable “false”, so what else can we do?

    Regards

    This is just a PHP warning which is caused by a null or not yet initialize column variable in your site.
    Make sure that you have selected the shop columns that you would like to have in your shop page.

    Did you try it?

    Thread Starter zidukxud

    (@zidukxud)

    Where can I select the shop columns? I just updated the woocommerce

    The cause is not woocommerce.
    What theme did you use?
    When you updated the Woo, maybe it reset the your theme previous setup.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Woocommerce update’ is closed to new replies.