VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Quality & Testing VirtueMart 1.1.x => Virtuemart 1.1 Development (Archiv) => Q&T Resolved => Topic started by: mauri on December 02, 2008, 22:22:00 PM

Title: [FIXED] Undefined variable
Post by: mauri on December 02, 2008, 22:22:00 PM
Nightly build 1.1.2 revision 1574. Joomla 1.5.8.
My server log is full of these.
QuoteUndefined variable: discount_word in /administrator/components/com_virtuemart/html/ro_basket.php on line 271
Undefined variable: payment_discount_display in /administrator/components/com_virtuemart/html/ro_basket.php on line 274
They come when shopper select Payment Method in checkout and paymentmethod have no payment_discount or fee.

Fix, define these variables before:
If you add two rows after /* DISCOUNT */ in:
/administrator/components/com_virtuemart/html/ro_basket.php
162   /* DISCOUNT */
163 $discount_word = ' ';
164 $payment_discount_display = '0';
Title: Re: Undefined variable
Post by: aravot on December 02, 2008, 22:32:50 PM
What is your error reporting settings, must be off for my server it doesn't show any errors.
Title: Re: Undefined variable
Post by: mauri on December 02, 2008, 23:18:22 PM
Error reporting is only in developing server.
I'm a developer and would like to see all the warnings, errors and notifies so that I can make the site most pure.  ;D
Title: Re: Undefined variable
Post by: aravot on December 08, 2008, 23:28:54 PM
Fixed in r1589