VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: Marquis2000 on January 04, 2021, 13:58:45 PM

Title: Error after Update in calculationh.php
Post by: Marquis2000 on January 04, 2021, 13:58:45 PM
Hi Guys,

i have follow problem after last update. I hope u can help.
But im not the only user with this problem:

I become follow error in frontend:

Notice: Undefined index: subTotal in
administrator/components/com_virtuemart/helpers/calculationh.php on line 886

In this line is follow code:

//When the rule got not active, we remove the rule
      foreach ($this->_cart->cartData['DATaxRulesBill'] as $k=>&$rule) {
         vmdebug('calc_categories $darule[\'subTotal\'] ',$rule['subTotal']);
         if(empty($rule['subTotal'])){
            unset($this->_cart->cartData['DATaxRulesBill'][$k]);
         }
      }

And on the checkout:

Notice: Undefined index: taxAmount in /www/htdocs/w01ad8fe/fantasticbaits.de/components/com_virtuemart/helpers/cart.php on line 2489
Notice: Undefined index: priceWithoutTax in /www/htdocs/w01ad8fe/fantasticbaits.de/components/com_virtuemart/helpers/cart.php on line 2490
Notice: Undefined index: discountedPriceWithoutTax in /www/htdocs/w01ad8fe/fantasticbaits.de/components/com_virtuemart/helpers/cart.php on line 2491

in the lines follow codes:

      $data->billTotal_tax_amount = $currencyDisplay->priceDisplay( $this->cartPrices['taxAmount'] );
      $data->billTotal_net = $currencyDisplay->priceDisplay( $this->cartPrices['priceWithoutTax'] );
      $data->billTotal_discounted_net = $currencyDisplay->priceDisplay( $this->cartPrices['discountedPriceWithoutTax'] );

Can anyone help please?

Greatings


Title: Re: Error after Update in calculationh.php
Post by: jenkinhill on January 04, 2021, 15:30:13 PM
Like your previous post:  http://forum.virtuemart.net/index.php?topic=145734.msg517682#msg517682

Try http://forum.virtuemart.net/index.php?topic=102555.0
Title: Re: Error after Update in calculationh.php
Post by: Marquis2000 on January 04, 2021, 16:45:03 PM
OK i have error messages deactivatet.

Thanks jenkin hill

Greatings
Title: Re: Error after Update in calculationh.php
Post by: StefanSTS on January 04, 2021, 17:38:34 PM
Thanks for reporting these Notices.
Notices have the tendency to become problems in later versions of PHP, so it is good to address them.

Can you please add the information from which version to which version you updated?
The PHP-Version is interesting too.

Thanks
Stefan