Author Topic: A non well formed numeric value encountered  (Read 316 times)

yrygvay

  • Beginner
  • *
  • Posts: 8
A non well formed numeric value encountered
« 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:
Code: [Select]
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?

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2330
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: A non well formed numeric value encountered
« Reply #1 on: September 17, 2017, 02:02:26 am »
You can Disable php debug in Joomla config>system tab.

yrygvay

  • Beginner
  • *
  • Posts: 8
Re: A non well formed numeric value encountered
« Reply #2 on: September 17, 2017, 06:16:06 am »
Both debug is turned off in the settings

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 26357
  • Always on vacation
    • Jenkin Hill Internet
Re: A non well formed numeric value encountered
« Reply #3 on: September 17, 2017, 11:28:48 am »
Kelvyn

Jenkin Hill Internet,
Keswick, Lake District

Unsolicited PMs/emails will be ignored.

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

Currently using VM3.2.4 on Joomla 3.8.1 PHP 7.0.23

Testing VM3.2.5 on J!3.8.1

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2330
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: A non well formed numeric value encountered
« Reply #4 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".

yrygvay

  • Beginner
  • *
  • Posts: 8
Re: A non well formed numeric value encountered
« Reply #5 on: September 17, 2017, 13:57:59 pm »
Thank you, helped off the display errors in the tab Server

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9372
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: A non well formed numeric value encountered
« Reply #6 on: September 18, 2017, 11:50:45 am »
It would be still nice to understand the problems with these lines
Code: [Select]

$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.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/