News:

Looking for documentation? Take a look on our wiki

Main Menu

Notice: Undefined index

Started by goldlink, September 25, 2018, 12:11:05 PM

Previous topic - Next topic

goldlink

Hello guys,

sorry for the trouble but I have a small problem that I find the conclusion of the order and I hope that some of you can help me.

This warning appears but does not affect the correct order submission.

Notice: Undefined index: salesPrice in /var/www/html/administrator/components/com_virtuemart/plugins/vmpsplugin.php on line 984

Notice: Undefined index: VatTax in /var/www/html/administrator/components/com_virtuemart/plugins/vmpsplugin.php on line 1118

Warning: array_merge(): Argument #1 is not an array in /var/www/html/administrator/components/com_virtuemart/plugins/vmpsplugin.php on line 1118

Notice: Undefined index: salesPrice in /var/www/html/administrator/components/com_virtuemart/plugins/vmpsplugin.php on line 1119

Notice: Undefined index: salesPrice in /var/www/html/administrator/components/com_virtuemart/plugins/vmpsplugin.php on line 984




$cartPrice = !empty($cart->cartPrices['withTax'])? $cart->cartPrices['withTax']:$cart->cartPrices['salesPrice'];

$taxrules = array_merge($cart->cartData['VatTax'],$cart->cartData['taxRulesBill']);

$cartdiscountBeforeTax = $calculator->roundInternal($calculator->cartRuleCalculation($cart->cartData['DBTaxRulesBill'], $cart->cartPrices['salesPrice']));



I've also tried to disable the debugging display on the configurations, but it continues to appear with every order.


You could give me some advice, thanks in advance.

goldlink.

kishoreonwork

You should turn off the error reporting in joomla global configuration.
Please see the attached image for same
I am available for paid joomla and virtuemart consulting.
http://www.kishoreweblabs.com/
skype kishore2607

jenkinhill

Although it is good to know the cause & solve it, the notices can be suppressed:  http://forum.virtuemart.net/index.php?topic=102555

Possible PHP/VM version issue, but you show no version info!!!  http://forum.virtuemart.net/index.php?topic=79799.0
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

goldlink

#3
Sorry,

Joomla 3.8.2
Virtuemart 3.2.8

goldlink

#4
Quote from: kishoreonwork on September 25, 2018, 12:37:33 PM
You should turn off the error reporting in joomla global configuration.
Please see the attached image for same

Thanks, I had already tried, but the error continued to appear.


Fixed instead setting on the configurations of Virtuemart: PHP Developer mode on No debug.


Thank you all for the support, I close.

GJC Web Design

QuoteJoomla 3.8.2
Virtuemart 3.2.8

!!!!!!!!!!!!!

current are

Joomla 3.8.12
VM 3.4.0

no one is going to be chasing notices on old versions
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation