Forum

Thread tagged as: Error, Shop

Perch Shop - PHP Error

Hi Drew,

After fiddling with Taxes in the Shop tab I started to receive a following error:

Catchable fatal error: Argument 4 passed to PerchShop_Product::get_prices() must be an instance of PerchShop_TaxLocation, boolean given, called in /home/K5E8866U/htdocs/cms/addons/apps/perch_shop/lib/PerchShop_Cart.class.php on line 713 and defined in /home/K5E8866U/htdocs/cms/addons/apps/perch_shop/lib/PerchShop_Product.class.php on line 278

I am not sure what's wrong?

This error effectively prevents from using the Shop.

Best regards, Damian

Damian Drozdowicz

Damian Drozdowicz 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

I've seen this a couple of times but I'm not sure of the cause/

What "fiddling" did you do?

Damian Drozdowicz

Damian Drozdowicz 0 points
Registered Developer

Hi Drew,

We've manage to deal with it by cleaning up the data base a little. We've cleared all the tax related tables and started from the beginning. It seems that the issues been resolved for now however it seems to me that when you set up the tax and than change it's name or value then some part of the site is not aware of that change. Hence an error.

Many thanks, Damian

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, we'll look into it - thanks.