VirtueMart Forum

VirtueMart 2 + 3 + 4 => Installation, Migration & Upgrade => Topic started by: yrygvay on September 06, 2017, 13:24:26 PM

Title: A non well formed numeric value encountered
Post by: yrygvay on September 06, 2017, 13:24:26 PM
Hi. Use Joomla 3.7.5, VM 3.2.4, PHP 7.1.8. I see this warning:

Notice: A non well formed numeric value encountered in /home/web/reff.pro/public_html/administrator/components/com_virtuemart/models/product.php on line 835

Notice: A non well formed numeric value encountered in /home/web/reff.pro/public_html/administrator/components/com_virtuemart/models/product.php on line 836


how to fix it, or hide?
Title: Re: A non well formed numeric value encountered
Post by: Studio 42 on September 17, 2017, 02:02:26 AM
You can Disable php debug in Joomla config>system tab.
Title: Re: A non well formed numeric value encountered
Post by: yrygvay on September 17, 2017, 06:16:06 AM
Both debug is turned off in the settings
Title: Re: A non well formed numeric value encountered
Post by: jenkinhill on September 17, 2017, 11:28:48 AM
Turn off in VirtueMart config   http://forum.virtuemart.net/index.php?topic=102555.msg436061#msg436061
Title: Re: A non well formed numeric value encountered
Post by: Studio 42 on September 17, 2017, 12:04:56 PM
Please do the screenshot in english.
DEBUG in screenshot is certainly Joomla debug and not PHP Debug
For PHP debug, it's a select list and can be set to "none".
Title: Re: A non well formed numeric value encountered
Post by: yrygvay on September 17, 2017, 13:57:59 PM
Thank you, helped off the display errors in the tab Server
Title: Re: A non well formed numeric value encountered
Post by: Milbo on September 18, 2017, 11:50:45 AM
It would be still nice to understand the problems with these lines


$rest = $suglimit%$category->products_per_row;
$limit = $suglimit - $rest;


Set the vmdebug to admin and add above the $rest =.... vmdebug('product model suggested limited and so on',$suglimit,$category->products_per_row); and then tell us the result.