Perch Shop - PHP error when adding products to cart etc.

  • Hello,


    I am getting a HTTP 500 error when adding a product to the cart.

    In my error logs I find this:


    Code
    1. [Tue Apr 02 16:34:00.294419 2019] [fcgid:warn] [pid 19914:tid 139799532775168] [client 31.160.4.226:53042] mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to a member function groupTaxRate() on boolean in /home/kndrxwbst/domains/kendrix.website/public_html/bindle/perch/addons/apps/perch_shop/lib/PerchShop_Product.class.php:384
    2. [Tue Apr 02 16:34:00.294485 2019] [fcgid:warn] [pid 19914:tid 139799532775168] [client 31.160.4.226:53042] mod_fcgid: stderr: Stack trace:
    3. [Tue Apr 02 16:34:00.294490 2019] [fcgid:warn] [pid 19914:tid 139799532775168] [client 31.160.4.226:53042] mod_fcgid: stderr: #0 /home/kndrxwbst/domains/kendrix.website/public_html/bindle/perch/addons/apps/perch_shop/lib/PerchShop_Product.class.php(369): PerchShop_Product->get_prices(1, 'standard', 'exc', Object(PerchShop_TaxLocation), Object(PerchShop_TaxLocation), Object(PerchShop_Currency), Object(PerchShop_CartTotaliser))
    4. [Tue Apr 02 16:34:00.294496 2019] [fcgid:warn] [pid 19914:tid 139799532775168] [client 31.160.4.226:53042] mod_fcgid: stderr: #1 /home/kndrxwbst/domains/kendrix.website/public_html/bindle/perch/addons/apps/perch_shop/lib/PerchShop_Cart.class.php(723): PerchShop_Product->get_prices(1, 'standard', 'exc', Object(PerchShop_TaxLocation), Object(PerchShop_TaxLocation), Object(PerchShop_Currency), Object(PerchShop_CartTotaliser), true)
    5. [Tue Apr 02 16:34:00.294509 2019] [fcgid:warn] [pid 19914:tid 139799532775168] [client 31.160.4.226:53042] mod_fcgid: stderr: #2 /home/kndrxwbst/domains/kendrix.website/public_html/bindle/perch/addons/apps/perch_shop/lib/PerchShop_Cart.class.php(285): PerchShop_Cart->calculate_cart()
    6. [Tue Apr 02 16:34:00.294513 2019] [fcgid:warn] [pid 19914:tid 139799532775168] [client 31.160.4.226:53042] mod_fcgid: stderr: #3 /home/kndrxwbst/domains/kendrix.website/pub in /home/kndrxwbst/domains/kendrix.website/public_html/bindle/perch/addons/apps/perch_shop/lib/PerchShop_Product.class.php on line 384

    What could be wrong? I have almost entirely duplicated from another Perch Shop website of mine, which works fine.

  • drewm

    Approved the thread.