Post by Nordikota » Thu Nov 15, 2018 11:25 pm

OC 3.0.2.0 running Journal 2. PHP 7.1

Our error log has started to expand rapidly with this error.

Code: Select all

PHP Notice:  A non well formed numeric value encountered
Any pointers on what might be causing this?

It's happening with both of these below:
/system/library/template/Twig/Environment.php(403)
/system/storage/modification/catalog/controller/product/category.php

Active Member

Posts

Joined
Tue Feb 11, 2014 8:04 pm

Post by IP_CAM » Fri Nov 16, 2018 7:40 am

Google knows much more than most everybody else ;)
Ernie
https://www.google.com/search?q=%22A+no ... 2+Opencart

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Nordikota » Fri Nov 16, 2018 4:59 pm

That's the first thing I always do before posting here. I couldn't see any answer that actually answered HOW to fix it..

Active Member

Posts

Joined
Tue Feb 11, 2014 8:04 pm

Post by ostechnologies » Fri Nov 16, 2018 5:06 pm

The error is self-explanatory. Probably there is some math without the proper brackets/ integer/float values. It not a default opencart error, if you are using any extension then contact to the support team of extension.

Opencart Expert | sales[at]ost.agency
Skype - manish.osuniverse | Gtalk - manishmt

Extensions for Opencart @ https://www.ost.agency/product/product- ... extensions
ost.agency - ecommerce website design, development and digital company


User avatar
Active Member

Posts

Joined
Mon Apr 06, 2015 1:30 pm

Post by ocmta » Fri Nov 16, 2018 5:08 pm

This is php 7 specific notice (not error), which usually doesn't affect anything and can be ignored. There is no good and easy solution to prevent it from filling up logs. Possible solutions:
  • In system/startup.php, change

    Code: Select all

    error_reporting(E_ALL);
    to

    Code: Select all

    error_reporting(E_ALL ^ E_NOTICE);
    , but then it will ignore all notices, not just this one
  • Disable Log Errors in admin
  • track those notices to their sources one by one and fix them, but that can be hard, because for example this - /system/library/template/Twig/Environment.php(403) - just means that it's originated from some template file, with no information from which one. Not worth the effort considering that this notice doesn't mean much.

Extensions for affiliates (openCart 1, 2, 3):
Advanced Multi Level Affiliate System
Customer and Affiliate Accounts Combined into one Account
Affiliate Tracking with Coupons
Discount for Referred Customers - Order Total
Type Tracking Code
Mass Pay
Affiliate Transactions for openCart 3
Affiliate Pack X - all modules with 40% discount


Active Member

Posts

Joined
Mon Mar 12, 2012 11:21 am


Post by Nordikota » Fri Nov 16, 2018 5:33 pm

OK & thanks for the response. We've only just been moved over to OC3.0.2.0 and we are experiencing a number of errors. We have a number of Extensions installed, but nothing new has been added/updated in the last week. This error started appearing 2 days ago & we're getting >2000 a day.

But If it's nothing to worry about, I'll disable the error log.

Active Member

Posts

Joined
Tue Feb 11, 2014 8:04 pm

Post by tingwing » Tue Feb 19, 2019 6:56 pm

not affect.using the latest php always have such problem

my extension:https://www.opencart.com/index.php?rout ... estshop24h
email :support@bestshop24h.com
site:http://www.bestshop24h.com


Active Member

Posts

Joined
Tue Aug 02, 2016 9:01 pm

Post by IP_CAM » Wed Feb 20, 2019 12:11 am

But If it's nothing to worry about, I'll disable the error log.
Well, that would be the worst thing to do ....
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by Nordikota » Thu Feb 21, 2019 1:38 am

In the absence of any suggestions on how to fix it, how else would you suggest I fix it?

Active Member

Posts

Joined
Tue Feb 11, 2014 8:04 pm

Post by straightlight » Thu Feb 21, 2019 6:20 am


Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by IP_CAM » Thu Feb 21, 2019 12:21 pm

Well, I never got this message yet, but I fixed it anyway,
since it's the same Content in my latest v.1.5.6.x Version, by
use of Straightlight's Github Code. It can't hurt, but I only
tried PHP v.7.0x and v.7.2x, and both did not care about it ...
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by straightlight » Thu Feb 21, 2019 9:42 pm

by
use of Straightlight's Github Code. It can't hurt
Indeed.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: nonnedelectari and 255 guests