• Hello,

    I have problem with products after installed bento theme:

    Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /data01/virt30259/domeenid/www.carparts.ee/carcare/wp-content/plugins/woocommerce/includes/wc-template-functions.php:250 Stack trace: #0 /data01/virt30259/domeenid/www.carparts.ee/carcare/wp-content/plugins/woocommerce/includes/wc-template-functions.php(293): wc_get_loop_class() #1 /data01/virt30259/domeenid/www.carparts.ee/carcare/wp-includes/class-wp-hook.php(298): wc_product_post_class(Array, Array, 109) #2 /data01/virt30259/domeenid/www.carparts.ee/carcare/wp-includes/plugin.php(203): WP_Hook->apply_filters(Array, Array) #3 /data01/virt30259/domeenid/www.carparts.ee/carcare/wp-includes/post-template.php(543): apply_filters(‘post_class’, Array, Array, 109) #4 /data01/virt30259/domeenid/www.carparts.ee/carcare/wp-includes/post-template.php(423): get_post_class(Array, NULL) #5 /data01/virt30259/domeenid/www.carparts.ee/carcare/wp-content/plugins/woocommerce/templates/content-single-product.php(39): post_class() #6 /data01/virt30259/domeenid/www.carparts.ee/carc in /data01/virt30259/domeenid/www.carparts.ee/carcare/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 250

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hello Indru,

    This sounds like plugin conflict. I’ve put together some possible solutions below which will help identify whether these are potential causes.

    Checking for Plugin conflict

    All of our themes have been developed following WordPress best practices and as such plugin conflicts are rare. However, these do happen. To test whether you’re issue is being caused by a conflicting plugin please follow the steps below:

    1-Deactivate all of your plugins (except the Page Builder if installed).

    2-Now check to see if this has resolved any issues you’re experiencing.

    3-If the issues are resolved please re-activate each plugin 1 at a time. After each activation check whether the problematic feature is still working.

    4-Repeat step 3 until the problem re-occurs. The last plugin activated is the conflicting plugin

    Please reply with the name of the conflicting plugin so we can look into a potential patch.

    If either of the above solutions worked, great! If not, please do let us know and we’ll continue to look into this issue further.

    Regards,

    Manoj

    Try deactivating all plugins and then activate the theme after that If that reactivate each plugin individually.

    Theme Author satoristudio

    (@satoristudio)

    Hey @indru,

    thank you for choosing Bento!

    Please try the following: download this archive, unzip it, and upload the resulting functions.php file into the /wp-content/themes/bento/ directory inside your WordPress installation, either by using an FTP client or via your hosting provider’s file manager. When prompted to replace the existing file, agree. After that, refresh your web page and let me know if the issue persists.

    Sincerely,
    Andrii / Satori Studio

    Thread Starter indru

    (@indru)

    Hello,

    It helped, now all running as it should be!
    Many thanks Andrii!

    Thread Starter indru

    (@indru)

    Hello again,

    I have one question more, regarding shoping cart layout.
    I understand that the issue is related to the product name.

    Okay

    Not okay

    Theme Author satoristudio

    (@satoristudio)

    Hey @indru,

    glad to hear the error message issue has been resolved! We’ll include the fix into the next version update of Bento.

    Regarding your second question – could you please provide the URL of your website? I can’t seem to be able to reproduce the problem, and seeing the live code would enable me to give more precise recommendations. Thanks!

    Sincerely,
    Andrii / Satori Studio

    Thread Starter indru

    (@indru)

    Hello,

    I turned “Coming soon page” now off so You can see the content.
    This seems to be Firefox and Edge problem, Chrome works well.
    Try to add this: https://www.carcare.ee/toode/x2010-supreme-shine-mikrokiudlapp/ product and go to shopping cart then.

    Best regards,
    Indru

    Theme Author satoristudio

    (@satoristudio)

    Hey Indru,

    thank you for the additional info!
    Please visit the “Appearance – Editor” admin section, and in the editor field (the “style.css” file should be open by default, that one is exactly what you need), find the line which says:
    .woocommerce-cart .entry-content .shop_table {
    and inside its brackets remove the line which says:
    table-layout: auto;
    then save the changes and refresh the web page – let me know if the issue persists!

    Sincerely,
    Andrii / Satori Studio

    Thread Starter indru

    (@indru)

    Hello Andrii,

    Worked okay, but ideally would then product field is wider and closer to product image.

    Best regards,
    Indru

    Theme Author satoristudio

    (@satoristudio)

    Hey Indru,

    this is the default WooCommerce way of presenting the shopping cart table; you can try manipulating the column width, but it would inevitably involve either using the CSS you’ve just removed or explicitly defining column width, which has potential to negatively affect the view on various device sizes and in case of various image-text combinations in the content (i.e. the actual dimensions of the product images and the length of product names).

    Sincerely,
    Andrii / Satori Studio

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal error: Uncaught DivisionByZeroError’ is closed to new replies.