Page 1 of 1

How to fix this warning: A non-numeric value encountered

Posted: Thu Nov 01, 2018 8:27 pm
by NaturallyHandmade
Warning: A non-numeric value encountered in public_html/system/library/cart/currency.php on line 69Warning: A non-numeric value encountered in public_html/system/library/cart/currency.php on line 69

The codes are attached below.

I just can't see whats wrong, it happened when I started adding currencies and even after removing all added currencies it still comes up with the same warning.

Hope someone can please help!

Already super grateful for any assistance.

Cheers
Lilly

Re: How to fix this warning: A non-numeric value encountered

Posted: Sat Nov 03, 2018 9:06 pm
by straightlight
Issue addressed in the Bug Reports. Not a bug, user defined error.

Re: How to fix this warning: A non-numeric value encountered

Posted: Wed Aug 21, 2019 5:35 pm
by supak111
was this ever resolved? I get the exact same error on 3.0.3.2 on php 7.1

Re: How to fix this warning: A non-numeric value encountered

Posted: Fri Aug 23, 2019 5:20 am
by straightlight
Replace all instances from the controllers:

Code: Select all

$this->request->get['page'];
to:

Code: Select all

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

Re: How to fix this warning: A non-numeric value encountered

Posted: Thu Sep 19, 2019 1:43 pm
by supak111
Which controller files? entire opencart?

Re: How to fix this warning: A non-numeric value encountered

Posted: Thu Sep 19, 2019 1:52 pm
by xxvirusxx