Post by england4eva » Mon Jul 18, 2011 11:26 pm

Hi All,

Opencart : Version 1.4.9.3

For the last 3 days my currency values keep resetting.

I have the Euro as the default 1.00000000 with 4 other currencies. In the store settings I have this to auto update and the update date is always the current day but randomly the currencies all change to 1.00000000, i can refresh a few minutes later and then they'll be correct again, but check again and they can randomly all go to 1.00000000

I tried turning off auto update which seems to stop them resetting but I don't want to have to manually update them every day.

I have been having a problem with my hoster where the site is going down with a mysql error of "too many max connections" but when this happens the whole site goes offline, inbetween the site is working fine but this currency resetting problem occurs.

Any thoughts? Thanks all :)

New member

Posts

Joined
Tue Mar 09, 2010 5:32 am

Post by Daniel » Mon Jul 18, 2011 11:51 pm

too many max connections means that one of the people on your shared server is gettinghammered.

your host should set the system to drop some connections after each page load.


if your site is really busy though you should get a dedicated host.


i have not idea what is happening with your currency though. sorry.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by england4eva » Tue Jul 19, 2011 12:00 am

Thanks for your reply Daniel.

One thing I did notice which I've never seen before (although not been looking tbh) is the following error in the error log.

Code: Select all

2011-07-18 12:24:49 - PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/xxxxxx/index.php:89) in /home/xxxxxx/public_html/xxxxxx/index.php on line 170
2011-07-18 12:24:51 - PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/xxxxxx/public_html/xxxxxx/index.php:89) in /home/xxxxxx/public_html/xxxxxx/system/library/currency.php on line 45
Obviously "xxxxxx" is to replace my site ;)

New member

Posts

Joined
Tue Mar 09, 2010 5:32 am

Post by Daniel » Tue Jul 19, 2011 12:45 am

looks like a ports being blocked.

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm

Post by JNeuhoff » Wed Jul 20, 2011 9:03 pm

We had the same problem with the automatic currency updates.

Finance.yahoo.com does indeed occasionally return all 1.0000 as the foreign currency values, instead of the expected correct exchange rate values.This problem only started to occur during the past few days, I checked the Opencart orders on our live site.

I was also able to reproduce the same error on my own test server (which is not a heavy traffic site). It's most likely an issue with the fincance.yahoo.com server, maybe we should switch to another web source for the esxchange rates. For the time being, I added some code in Opencart on our live site to reject suspicious 1.0000 exchange rate values for foreign currencies.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by voyageu » Sat Jul 23, 2011 12:43 am

Hello,
I have a problem with recetting the default currency from USD to EUR. It does not want to reset to EUR default currency. I even deleted USD but it still remains with USD default currency. I have set EUR to 1.00000 but after some time it recalculates and set the value according to USD/EUR ratio based on USD as default.
I have installed a test open cart site and it worked to set EUR as default. But I want to make working correctly the official site not the test one.
Any ideas where the problem is and how to solve it?
Can I disable the automatic currency ratio updates?
Thanks

Newbie

Posts

Joined
Sat Jul 23, 2011 12:30 am

Post by Qphoria » Sat Jul 23, 2011 1:29 am

I started seeing this on my demo server too recently
Maybe yahoo's going flaky
USD shows as 122.50
EUR shows as 252,242,692,622.67

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by england4eva » Sat Jul 23, 2011 4:08 am

Hi,

Not sure if its just an issue because my host is being a bit sh*tty of late.

Either way, as a temporary solution to stop the values resetting I've taken it to manually switching on auto update in the morning (or at least once a day) then as soon as the values have updated (after going to a few admin pages then back to currency) I think turn off the auto update so those values hold for the rest of the day.

Not ideal but it'll do until either my host picks up or some one here figures out what is going wrong :D

New member

Posts

Joined
Tue Mar 09, 2010 5:32 am

Post by voyageu » Sat Jul 23, 2011 6:48 pm

Hello,
How to turn off the currency update?
Thanks,

Newbie

Posts

Joined
Sat Jul 23, 2011 12:30 am

Post by england4eva » Sun Jul 24, 2011 1:33 am

voyageu wrote:Hello,
How to turn off the currency update?
Thanks,
Admin Menu:

System-> Settings-> Local

Auto Update Currency: Yes/No

New member

Posts

Joined
Tue Mar 09, 2010 5:32 am
Who is online

Users browsing this forum: No registered users and 17 guests