• I am getting a 500 server error when I click on the quick view button for a product.

    Browser console says:

    custom.min.js?ver=1.1.8:1 POST https://test.my-domain.com/wp-admin/admin-ajax.php 500
    (anonymous) @ custom.min.js?ver=1.1.8:1


    Server error log says:

    16886#0: *4603585 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Call to a member function is_sold_individually() on null in /var/www/vhosts/my-domain.com/test.my-domain.com/wp-content/plugins/woocommerce-measurement-price-calculator/src/class-wc-price-calculator-product-page.php:691
    Stack trace:
    #0 /var/www/vhosts/my-domain.com/test.my-domain.com/wp-includes/class-wp-hook.php(307): WC_Price_Calculator_Product_Page->remove_max_quantity_calculated_inventory()
    #1 /var/www/vhosts/my-domain.com/test.my-domain.com/wp-includes/plugin.php(191): WP_Hook->apply_filters()
    #2 /var/www/vhosts/my-domain.com/test.my-domain.com/wp-content/plugins/woocommerce/includes/wc-template-functions.php(1789): apply_filters()
    #3 /var/www/vhosts/my-domain.com/test.my-domain.com/wp-content/themes/botiga/inc/plugins/woocommerce/woocommerce-template-functions.php(303): woocommerce_quantity_input()
    #4 /var/www/vhosts/my-domain.com/test.my-doma" while reading response header from upstream

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @dickraney,

    Error 500 mostly occurs on the server level. Please visit your host settings to increase PHP memory limit. If you couldn’t find the corresponding setting for it, I’d recommend contacting your web hosting support.

    Thread Starter DickRaney

    (@dickraney)

    I have tried other themes that have a quick view feature and they work fine, so it seems like the issue is with Botiga.

    Hi @dickraney,

    Thanks for contacting us!

    As the server error log you shared with us says, the PHP fatal error is being thrown by the plugin ‘WooCommerce Measurement Price Calculator’:

    PHP Fatal error: Uncaught Error: Call to a member function is_sold_individually() on null in /var/www/vhosts/my-domain.com/test.my-domain.com/wp-content/plugins/woocommerce-measurement-price-calculator/src/class-wc-price-calculator-product-page.php:691

    So the issue is related with the extra plugin you are using. In this case my suggestion for you is contact the ‘WooCommerce Measurement Price Calculator’ plugin author.

    Hope this helps and clarifies!

    Kind Regards,

    Rodrigo.

    Thread Starter DickRaney

    (@dickraney)

    I contacted them first. And they were the ones who pointed out that it works fine with other themes.

    Hi @dickraney,

    Could you please confirm if that’s the plugin you are using?
    Measurement Price Calculator

    Because I did some tests here and couldn’t reproduce the same issue. If that’s the correct plugin, could you please share with me the admin settings from the product where the issue is happening? Also, it happens only if you define the product to be sold individually?

    Kind Regards,

    Rodrigo.

    Thread Starter DickRaney

    (@dickraney)

    Yes, that is the plugin. The products are not set to be sold individually. It happens on all products including the ones imported as part of the Beauty starter site.

    I could give you admin access to the site if you share a secure method of providing the info.

    Thread Starter DickRaney

    (@dickraney)

    Just checking to see if you have any more info?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Quick View – Server Error’ is closed to new replies.