News:

Looking for documentation? Take a look on our wiki

Main Menu

Error with price display - PHP5.3

Started by media991, May 26, 2012, 00:14:31 AM

Previous topic - Next topic

media991

Hi There,

We are using php5.3 and when we use virtuemart 2.0 we get the following errors appearing when we are viewing the products in a category view.

Warning: number_format() expects parameter 2 to be long, string given in /home/xxxxx/public_html/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 450

Any ideas please?

media991


jenkinhill

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

media991

Awesome thank you, that seemed to work  :)

chantalw

Hi there,

I have the same problem. I use virtuemart 2.0.6 and have turned off error reporting.
But price is still no show and the following warning keeps showing:

Warning: number_format() expects parameter 2 to be long, string given in /home/xxxxxx/public_html/administrator/components/com_virtuemart/helpers/currencydisplay.php on line 338

Can any one advice?
Thanks.

Milbo

Just look in the file, find the line and try $res = number_format((float)$nb,(long)$nbDecimal,$this->_decimal,$this->_thousands);
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/