Post by mRC » Fri Feb 08, 2019 4:58 am

Hi all

Can anyone help with this error please, OC3.0.2.0, PHP 7.1.26, Journal 3.


A non-numeric value encountered in /var/www/xxxx/xxxxxx/storage/modification/catalog/controller/product/manufacturer.php on line 180
A non-numeric value encountered in /var/www/xxxx/xxxxxx/storage/modification/catalog/controller/product/manufacturer.php on line 450
A non-numeric value encountered in /var/www/xxxx/xxxxxx/storage/modification/catalog/controller/product/manufacturer.php on line 464

also

A non-numeric value encountered in /var/www/xxxxx/xxxxxx/storage/modification/catalog/controller/product/category.php on line 199
A non-numeric value encountered in /var/www/xxxxx/xxxxxx/storage/modification/catalog/controller/product/category.php on line 481
A non-numeric value encountered in /var/www/xxxxx/xxxxxx/storage/modification/catalog/controller/product/category.php on line 495

Thanks

mRC
Active Member

Posts

Joined
Wed Nov 12, 2014 12:43 am

Post by straightlight » Fri Feb 08, 2019 5:22 am

Caused by an installed extension. Contact the extension developer to resolved this issue.

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 paulfeakins » Fri Feb 08, 2019 6:55 pm

straightlight wrote:
Fri Feb 08, 2019 5:22 am
Caused by an installed extension. Contact the extension developer to resolved this issue.
You might be able to find which extension by looking in the OC mod log (2nd tab under Extensions) and look for the file mentioned in the error you posted above. That will tell you which extension is modifying that file.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by mRC » Sat Feb 09, 2019 3:53 pm

Hi all, many thanks for the reply's.

I have changed to PHP 7.0.33 and no more errors. very strange

mRC
Active Member

Posts

Joined
Wed Nov 12, 2014 12:43 am

Post by straightlight » Mon Feb 18, 2019 11:10 pm


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 mRC » Tue Feb 19, 2019 4:23 am

Thanks for the heads up and we are still on PHP 7.0.33 and still no problems

mRC
Active Member

Posts

Joined
Wed Nov 12, 2014 12:43 am

Post by mRC » Sun Mar 10, 2019 9:32 pm

straightlight wrote:
Mon Feb 18, 2019 11:10 pm
Solution: https://github.com/opencart/opencart/issues/7218
Hi

Would this apply for manufacturer.php & category.php as i have errors for both when running PHP 7.1.26

code I have at the moment

Code: Select all

}

		if (isset($this->request->get['page'])) {
			$page = $this->request->get['page'];
		} else {
			$page = 1;
		}
I assume this corrects the problem

Code: Select all

if (isset($this->request->get['page'])) {
		$page = (int)$this->request->get['page'];
	} else {
		$page = 1;
	}
Thanks

mRC
Active Member

Posts

Joined
Wed Nov 12, 2014 12:43 am

Post by xxvirusxx » Sun Mar 10, 2019 10:24 pm

Yes, for all files from catalog/controller/product

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by straightlight » Sun Mar 10, 2019 11:00 pm

You might want to read the theory about the page 0 when using the code above: https://github.com/opencart/opencart/issues/7218

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 mRC » Mon Mar 11, 2019 1:41 am

ok thanks for the info just had a read and it makes no sense to me, but thanks any way

Just changed all the php files in catalog/controller/product with the following where required

$page = (int)$this->request->get['page'];

Also I don't have the following

catalog/controller/common/pagination.php

Much appreciated

mRC
Active Member

Posts

Joined
Wed Nov 12, 2014 12:43 am

Post by straightlight » Mon Mar 11, 2019 3:09 am

mRC wrote:
Mon Mar 11, 2019 1:41 am
ok thanks for the info just had a read and it makes no sense to me, but thanks any way

Just changed all the php files in catalog/controller/product with the following where required

$page = (int)$this->request->get['page'];

Also I don't have the following

catalog/controller/common/pagination.php

Much appreciated
Have it your way then. Keep all the zero values as you want in the page URL query in your store. No problem.

Alright so to those instead that also wants to remove the zero value from page query on the URL, follow this post: viewtopic.php?f=24&t=210459#p748892 . This should definitely resolved the issue instead of replacing each files individually.

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 mRC » Mon Mar 11, 2019 3:24 am

Sorry but I didn't understand, im just trying to fix the issue.

Im no coder! just asking for help from others of which I do really appreciate!

mRC
Active Member

Posts

Joined
Wed Nov 12, 2014 12:43 am

Post by straightlight » Mon Mar 11, 2019 3:35 am

My new solution above should work just fine. Simply follow the instructions from the addressed topic and all should be resolved definitely.

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 mRC » Mon Mar 11, 2019 3:38 am

Brilliant thanks, O0

mRC
Active Member

Posts

Joined
Wed Nov 12, 2014 12:43 am

Post by mRC » Tue Apr 16, 2019 4:19 am

Hi

After adding the following mod
viewtopic.php?f=24&t=210459#p748892

I had a few error messages today, I think its related to this thread

Code: Select all

2019-04-15 7:23:59 - PHP Notice:  A non well formed numeric value encountered in /home/xxxxxxx/storage/modification/catalog/controller/product/search.php on line 208
2019-04-15 7:23:59 - PHP Notice:  A non well formed numeric value encountered in /home/xxxxxxx/storage/modification/system/library/pagination.php on line 54
2019-04-15 7:23:59 - PHP Notice:  A non well formed numeric value encountered in /home/xxxxxxx/storage/modification/system/library/pagination.php on line 57
2019-04-15 7:23:59 - PHP Notice:  A non well formed numeric value encountered in /home/xxxxxxx/storage/modification/system/library/pagination.php on line 66
2019-04-15 7:23:59 - PHP Notice:  A non well formed numeric value encountered in /home/xxxxxxx/storage/modification/system/library/pagination.php on line 67
2019-04-15 7:23:59 - PHP Notice:  A non well formed numeric value encountered in /home/xxxxxxx/storage/modification/system/library/pagination.php on line 94
2019-04-15 7:23:59 - PHP Notice:  A non well formed numeric value encountered in /home/xxxxxxx/storage/modification/catalog/controller/product/search.php on line 510
2019-04-15 7:23:59 - PHP Notice:  A non well formed numeric value encountered in /home/xxxxxxx/storage/modification/catalog/controller/product/search.php on line 510
2019-04-15 7:23:59 - PHP Notice:  A non well formed numeric value encountered in /home/xxxxxxx/storage/modification/catalog/controller/product/search.php on line 510

Thanks

mRC
Active Member

Posts

Joined
Wed Nov 12, 2014 12:43 am

Post by thekrotek » Tue Apr 16, 2019 4:30 am

Contact extension developer on the matter.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by straightlight » Tue Apr 16, 2019 5:03 am

storage/modification/catalog/controller/product/search.php on line 208
Originating from an extension. Line 208 unprovided from that file.

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 mRC » Wed Apr 17, 2019 2:18 pm

ok thanks

mRC
Active Member

Posts

Joined
Wed Nov 12, 2014 12:43 am

Post by iq860 » Wed Jul 31, 2019 4:26 pm

hello im facing a related error in my oc install
i have OC 3.0.2.0
default theme
www.el-vet.com

Code: Select all

2019-07-30 15:49:16 - PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/elvetcom/public_html/system/framework.php:42) in /home/elvetcom/public_html/catalog/controller/startup/startup.php on line 157
2019-07-30 16:38:54 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 189
2019-07-30 16:38:54 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/system/library/pagination.php on line 54
2019-07-30 16:38:54 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:07 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/catalog/controller/extension/facebookeventparameters.php on line 348
2019-07-30 16:39:07 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 189
2019-07-30 16:39:07 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/system/library/pagination.php on line 54
2019-07-30 16:39:07 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/system/library/pagination.php on line 94
2019-07-30 16:39:07 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:07 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:07 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:07 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/catalog/controller/extension/facebookeventparameters.php on line 348
2019-07-30 16:39:07 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 189
2019-07-30 16:39:07 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/system/library/pagination.php on line 54
2019-07-30 16:39:07 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/system/library/pagination.php on line 94
2019-07-30 16:39:07 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:07 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:07 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:08 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/catalog/controller/extension/facebookeventparameters.php on line 348
2019-07-30 16:39:08 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 189
2019-07-30 16:39:08 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/system/library/pagination.php on line 54
2019-07-30 16:39:08 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/system/library/pagination.php on line 94
2019-07-30 16:39:08 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:08 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:08 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:08 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/catalog/controller/extension/facebookeventparameters.php on line 348
2019-07-30 16:39:09 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 189
2019-07-30 16:39:09 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/system/library/pagination.php on line 54
2019-07-30 16:39:09 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/system/library/pagination.php on line 94
2019-07-30 16:39:09 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:09 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:09 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:09 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/catalog/controller/extension/facebookeventparameters.php on line 348
2019-07-30 16:39:09 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 189
2019-07-30 16:39:09 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/system/library/pagination.php on line 54
2019-07-30 16:39:09 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/system/library/pagination.php on line 94
2019-07-30 16:39:09 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:09 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:09 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:10 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/catalog/controller/extension/facebookeventparameters.php on line 348
2019-07-30 16:39:10 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 189
2019-07-30 16:39:10 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/system/library/pagination.php on line 54
2019-07-30 16:39:10 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/system/library/pagination.php on line 94
2019-07-30 16:39:10 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:10 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:10 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:10 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/catalog/controller/extension/facebookeventparameters.php on line 348
2019-07-30 16:39:10 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 189
2019-07-30 16:39:10 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/system/library/pagination.php on line 54
2019-07-30 16:39:10 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/public_html/system/library/pagination.php on line 94
2019-07-30 16:39:10 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:10 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-30 16:39:10 - PHP Notice:  A non well formed numeric value encountered in /home/elvetcom/ocartdata/storage/modification/catalog/controller/product/search.php on line 412
2019-07-31 8:17:19 - PHP Warning:  A non-numeric value encountered in /home/elvetcom/public_html/admin/controller/sale/order.php on line 1799
2019-07-31 8:17:19 - PHP Warning:  A non-numeric value encountered in /home/elvetcom/public_html/admin/controller/sale/order.php on line 1799
2019-07-31 8:17:19 - PHP Warning:  A non-numeric value encountered in /home/elvetcom/public_html/admin/controller/sale/order.php on line 1799
2019-07-31 8:17:19 - PHP Warning:  A non-numeric value encountered in /home/elvetcom/public_html/admin/controller/sale/order.php on line 1799

Newbie

Posts

Joined
Fri Sep 29, 2017 11:54 am

Post by thekrotek » Wed Jul 31, 2019 4:36 pm

Most of these notices are from modified files, so most likely some of your modifications is causing it. Disable modifications one by one to see, which one is the root of the issue.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am

Who is online

Users browsing this forum: No registered users and 48 guests