Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1145660
    Mary Beth M
    Participant

    Hello there,

    I installed the woocommerce plugin from the extensions area and then immediately get this error on any page related to woocommerce:

    “Warning: Division by zero in /home/wp_mxqmi5/texassleepdocs.com/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 250

    Warning: Division by zero in /home/wp_mxqmi5/texassleepdocs.com/wp-content/plugins/woocommerce/includes/wc-template-functions.php on line 252
    class=”post-851 product type-product status-publish has-post-thumbnail instock sold-individually shipping-taxable purchasable product-type-simple”> ”

    made a quick sample product so you could see the error live https://www.texassleepdocs.com/product/sample-product/

    Everything is completely up-to-date, any idea why I might get that error?

    Thank you very much

    #1145987
    Prasant Rai
    Moderator

    Hello There,

    Thanks for writing in!

    This is just a PHP warning which is caused by a null or not yet initialize column variable in your site. You may go to your customizer, Appearance > Customize > WooCommerce > Shop and 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 ); just above /* That’s all, stop editing! Happy blogging. */ For example:

    define('WP_DEBUG', false);

    /* That’s all, stop editing! Happy blogging. */
    When you revisit the page, the error should be gone.

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

    #1146984
    Mary Beth M
    Participant

    That worked thank you. I’ve set up so many woocommerce stores before I have no idea how I haven’t run across this yet lol. Thank you

    #1146991
    Rahul
    Moderator

    Glad you’ve sorted it out.

    If you still have any issues with the theme, let us know. We’d be happy to assist you with everything.

    Thanks.

    #1148572
    Mary Beth M
    Participant

    You guys are the best. I’ve been using this theme exclusively for 3 years, so I think I’ve made roughly 125 or sites with X so far, and every single client thought it was amazing compared to what they were used to.

    I do have a question though. I’m working with a national client now that needs to integrate Google Structured Data for their FAQ’s, and was wondering where I would place these blurbs:

    <script type=”application/ld+json”>
    {
    “@context”: “http://schema.org&#8221;,
    “@type”: “Law Firm”,
    “url”: “https://www.goldbergjones.com&#8221;,
    “contactPoint”: [{
    “@type”: “ContactPoint”,
    “telephone”: “+1-401-555-1212”,
    “contactType”: “customer service”
    }]
    }
    </script>

    Thank you again for any help!

    #1148611
    Rahul
    Moderator

    Hey There,

    Thanks for writing back!

    Follow this ticket for more information regarding Google Structure Data :

    <a href=”https://community.theme.co/forums/topic/how-to-add-structured-markup-data-from-google/
    “>https://community.theme.co/forums/topic/how-to-add-structured-markup-data-from-google/
    /a>
    Hope this helps!

  • <script> jQuery(function($){ $("#no-reply-1145660 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>