Page 1 of 1

non-numeric value encountered in currency.php

Posted: Sat May 22, 2021 3:58 am
by ceebeeit
On the checkout page I get the following (depending somewhat on browser):
Warning: A non-numeric value encountered in /var/www/vhosts/spinnerij.nl/httpdocs/system/library/cart/currency.php on line 69Warning: A non-numeric value encountered in /var/www/vhosts/spinnerij.nl/httpdocs/system/library/cart/currency.php on line 69Warning: A non-numeric value encountered in /var/www/vhosts/spinnerij.nl/httpdocs/system/library/cart/currency.php on line 69Warning: A non-numeric value encountered in /var/www/vhosts/spinnerij.nl/httpdocs/system/library/cart/currency.php on line 69

People cannot order!
System settings Auto-update currency is already off.
I need help (www.spinnerij.nl)

Re: non-numeric value encountered in currency.php

Posted: Sat May 22, 2021 5:50 am
by halfhope
Hi!
You should trace which class call Currency->convert() function with wrong data. You also need to find out what exactly is contained in this data. This is too long to explain.

Re: non-numeric value encountered in currency.php

Posted: Sat May 22, 2021 6:20 am
by by mona

Re: non-numeric value encountered in currency.php

Posted: Sat May 22, 2021 7:51 am
by straightlight
by mona wrote:
Sat May 22, 2021 6:20 am
Try here
viewtopic.php?t=215547
With your own solution Mona: viewtopic.php?t=219450#p795870 .
This one could work as well: viewtopic.php?t=215547#p773736 .

Re: non-numeric value encountered in currency.php

Posted: Sat May 22, 2021 8:46 am
by halfhope
I think answers above don't help you. it's mollie payment module error.

Re: non-numeric value encountered in currency.php

Posted: Sat May 22, 2021 10:20 am
by by mona
To check if it is a Mollie payment error is easy enough - disable it and see if you still have the error.
If yes - contact support - you can use the support button on the Opencart Marketplace Download page.

In that vein it could also be your Quick Checkout - this is something reported on the forum regarding that error.

Neither of these errors would not just happen .. so only you know if you have used these two extensions without an issue before.
What might have happened is your service provider has upgraded your php version - this is also known to cause this error.

However, another error you do have is that your site is not re-directing https:// correctly. This is causing a number of errors including being unable to add to cart.
So you need to ensure your config files both in admin and root are set correctly and that your htaccess
This is another well documented subject on the forum
https://www.google.com/search?client=sa ... 8&oe=UTF-8

Another issue you have is that you have caching on your cart - this might make your site lightening fast - but not much good if your site doesn’t work.
You can read about that here:
viewtopic.php?t=212972
or search for "cache control headers”

Also your server vice provider - I adore varnish servers - but I know this issue.
viewtopic.php?t=208215

This might be why you have concluded that it is somewhat dependant on browser

These are not difficult things to resolve and if you need it fixing quickly it is an idea to post in the commercial section. viewforum.php?f=88

Re: non-numeric value encountered in currency.php

Posted: Sat May 22, 2021 7:32 pm
by ceebeeit
I made Mollie inactive and changed to SiSow provider and this works fine.

Now I have another issue:
when I press the Home button https://www.spinnerij.nl/index.php?route=common/home changes to https://www./index.php?route=common/home
But only in Firefox. Works well in Edge and on iPad. Very strange.

Re: non-numeric value encountered in currency.php

Posted: Sat May 22, 2021 10:47 pm
by by mona
ceebeeit wrote:
Sat May 22, 2021 7:32 pm
Now I have another issue:
when I press the Home button https://www.spinnerij.nl/index.php?route=common/home changes to https://www./index.php?route=common/home
But only in Firefox. Works well in Edge and on iPad. Very strange.
The redirecting is most likely related to the issue above
by mona wrote:
Sat May 22, 2021 10:20 am
However, another error you do have is that your site is not re-directing https:// correctly. This is causing a number of errors including being unable to add to cart.
So you need to ensure your config files both in admin and root are set correctly and that your htaccess
This is another well documented subject on the forum
https://www.google.com/search?client=sa ... 8&oe=UTF-8
This issue you also need resolving
by mona wrote:
Sat May 22, 2021 10:20 am
Another issue you have is that you have caching on your cart - this might make your site lightening fast - but not much good if your site doesn’t work.
You can read about that here:
viewtopic.php?t=212972
or search for "cache control headers”
Personally I believe if you are unable or unsure how to follow the above instructions, you should post in the commercial section and ask for quote to fix these issues
viewforum.php?f=88

You can also contact your theme developer to fix the issue you are describing. They are not responsible for redirects, so I suggest you get that fixed first and make sure that is not the issue.

Please mark the title with the word [SOLVED] at the beginning. This assists any forum users in the future.
In general please open a new post for new issues.

Re: non-numeric value encountered in currency.php

Posted: Fri Jun 18, 2021 7:12 pm
by MrBasic
It's a Mollie setting.
Go to Extensions > Payment > Mollie > TAB 2 > EDIT all active > fill Minimum with 0.00
ceebeeit wrote:
Sat May 22, 2021 3:58 am
On the checkout page I get the following (depending somewhat on browser):
Warning: A non-numeric value encountered in /var/www/vhosts/spinnerij.nl/httpdocs/system/library/cart/currency.php on line 69Warning: A non-numeric value encountered in /var/www/vhosts/spinnerij.nl/httpdocs/system/library/cart/currency.php on line 69Warning: A non-numeric value encountered in /var/www/vhosts/spinnerij.nl/httpdocs/system/library/cart/currency.php on line 69Warning: A non-numeric value encountered in /var/www/vhosts/spinnerij.nl/httpdocs/system/library/cart/currency.php on line 69

People cannot order!
System settings Auto-update currency is already off.
I need help (www.spinnerij.nl)