VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: loungn14 on November 19, 2013, 23:10:26 PM

Title: Issue with UPS Shipping module - Undefined variable: ups_rates
Post by: loungn14 on November 19, 2013, 23:10:26 PM
VM 2.0.24B

Getting the following at checkout

Notice: Undefined variable: ups_rates in /var/www/vhosts/x.com/httpdocs/plugins/vmshipment/istraxx_ups/istraxx_ups.php on line 520 Notice: Undefined variable: ups_rates in /var/www/vhosts/x.com/httpdocs/plugins/vmshipment/istraxx_ups/istraxx_ups.php on line 521 Notice: Undefined index: in /var/www/vhosts/x.com/httpdocs/administrator/components/com_virtuemart/models/orders.php on line 977 Notice: Undefined index: in /var/www/vhosts/x.com/httpdocs/administrator/components/com_virtuemart/models/orders.php on line 990

anyone have any ideas?

It is able to accurately get UPS shipping data and calculate accordingly.  It just at checkout the error appears.  It also causes us to not get the email (nor the shopper) that the order was successful
We downloaded the latest UPS module/code and still the same problem

Title: Re: Issue with UPS Shipping module - Undefined variable: ups_rates
Post by: GJC Web Design on November 20, 2013, 00:41:25 AM
These are only php notices - not errors...

Normally on a production server you wouldn't want to display this low level of reporting - also this is highly unlikely to be causing the confirmation emails not to be sent..

Check in your Joomla Global Config that your error reporting is set to "Normal"  - if it is then it is a server setting - your host will advise.
You can blank these reports by putting at the top of each of these files (after the Joomla access code)

error_reporting(E_ERROR);

then only actual errors will report.

or for undefined varible errors you can just declare them in the file

e.g  put $ups_rates = '';
b4 line 520 etc