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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


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.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, 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


The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


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

My Extensions | OC 3.0.3.1, 3.0.2.0, 2.3.0.2 with bugs fixed.


Active Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm

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

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


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
Online

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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


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
Who is online

Users browsing this forum: No registered users and 7 guests