Author Topic: Notice: Undefined index  (Read 178 times)

goldlink

  • Beginner
  • *
  • Posts: 15
Notice: Undefined index
« on: September 25, 2018, 12:11:05 pm »
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.

Code: [Select]
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



Code: [Select]
$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

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 52
  • Free Virtuemart Consulting For Non Profits
    • virtuemart expert
  • Skype Name: kishore2607
  • VirtueMart Version: 3
Re: Notice: Undefined index
« Reply #1 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
I am available for paid joomla and virtuemart consulting.
http://www.kishoreweblabs.com/
skype kishore2607

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26993
  • Always on vacation
    • Jenkin Hill Internet
Re: Notice: Undefined index
« Reply #2 on: September 25, 2018, 12:46:08 pm »
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

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

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

Currently using VM 3.4.0.9935 on Joomla 3.8.12 PHP 7.0.31
Testing VM 3.4.0.9941 on Joomla 3.8.12

goldlink

  • Beginner
  • *
  • Posts: 15
Re: Notice: Undefined index
« Reply #3 on: September 25, 2018, 13:12:54 pm »
Sorry,

Joomla 3.8.2
Virtuemart 3.2.8

goldlink

  • Beginner
  • *
  • Posts: 15
Re: Notice: Undefined index
« Reply #4 on: September 25, 2018, 13:16:11 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

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8197
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Notice: Undefined index
« Reply #5 on: September 25, 2018, 18:36:37 pm »
Quote
Joomla 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 http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 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
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation