VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: capewellmj on June 01, 2015, 23:46:12 PM

Title: calculationh.php on line 1272
Post by: capewellmj on June 01, 2015, 23:46:12 PM
Hello

I am getting the following error in my cart (yagendoo ajax cart):

virtuemart_state_id in /home/user/public_html/administrator/components/com_virtuemart/helpers/calculationh.php on line 1272

Can anyone help me with this error?

Thank you for any help

Martin
VM 3.0.9  J3.4.1
Title: Re: calculationh.php on line 1272
Post by: Milbo on June 02, 2015, 10:38:33 AM
ehrm, you wrote only parts of the error
the code there

} else if (!empty($rule['virtuemart_state_ids']) ) {
$hitsDeliveryArea = $this->testRulePartEffecting($rule['virtuemart_state_ids'], $this->_deliveryState);
}


So what is with  virtuemart_state_ids ? virtuemart_state_id is not used there
Title: Re: calculationh.php on line 1272
Post by: Milbo on June 03, 2015, 12:08:13 PM
seems the vmdebug has an old virtuemart_state_id there, just delete the line
Title: Re: calculationh.php on line 1272
Post by: capewellmj on June 03, 2015, 20:03:01 PM
So just delete line 1272? Any of the lines around it?

Martin
Title: Re: calculationh.php on line 1272
Post by: Milbo on June 03, 2015, 21:20:13 PM
just the line with the vmdebug, or just the  .$virtuemart_state_id  (beware the dot)
Title: Re: calculationh.php on line 1272
Post by: Milbo on June 11, 2015, 23:29:59 PM
fix is now here http://dev.virtuemart.net/projects/virtuemart/files vm3.0.9.4