Author Topic: [UNDER REVIEW] Error with Currency (non USD)  (Read 8535 times)

Ronal

  • Beginner
  • *
  • Posts: 23
[UNDER REVIEW] Error with Currency (non USD)
« on: February 01, 2008, 00:19:55 am »
Install Joomla 1.5 final.
Install the latest build of VM.
Go VM Admin -> Store -> Edit Store set Currency=Russian Ruble.
Go http://mysite/index.php?option=com_virtuemart&Itemid=53
and get:
Quote
Warning: fopen(http://www.ecb.int:80/stats/eurofxref/eurofxref-daily.xml) [function.fopen]: failed to open stream: Bad file descriptor in z:\home\mera.by\www\administrator\components\com_virtuemart\classes\connectionTools.class.php on line 168

Notice: Undefined variable: errstr in z:\home\mera.by\www\administrator\components\com_virtuemart\classes\connectionTools.class.php on line 173
If Set Currency=USD - all OK.

aravot

  • Peter
  • Moderator
  • Sr. Member
  • *
  • Posts: 2874
    • VirtueMart Extensions
Re: Error with Currency (non USD)
« Reply #1 on: February 01, 2008, 00:27:05 am »
That is the only thing you changed? I changed it but don't get any error.

Ronal

  • Beginner
  • *
  • Posts: 23
Re: Error with Currency (non USD)
« Reply #2 on: February 01, 2008, 00:37:34 am »
Yes, don't any change.

I use Apache/1.3.33 (Win32) PHP/4.4.4
May be problem in this.

aravot

  • Peter
  • Moderator
  • Sr. Member
  • *
  • Posts: 2874
    • VirtueMart Extensions
Re: Error with Currency (non USD)
« Reply #3 on: February 01, 2008, 00:41:58 am »
Could someone with php4 check this, thank you.

Ronal

  • Beginner
  • *
  • Posts: 23
Re: Error with Currency (non USD)
« Reply #4 on: February 01, 2008, 00:44:40 am »
Try now on
Apache/2.2.4 (Win32) mod_ssl/2.2.4 OpenSSL/0.9.8d PHP/5.2.4
and get fatal error:
Quote
Warning: fopen(http://www.ecb.int:80/stats/eurofxref/eurofxref-daily.xml) [function.fopen]: failed to open stream: in Z:\home\mera.by\www\administrator\components\com_virtuemart\classes\connectionTools.class.php on line 168

Fatal error: Maximum execution time of 30 seconds exceeded in Z:\home\mera.by\www\administrator\components\com_virtuemart\classes\connectionTools.class.php on line 168

Fatal error: Maximum execution time of 30 seconds exceeded in Z:\home\mera.by\www\administrator\components\com_virtuemart\PEAR.php on line 686

Fatal error: Maximum execution time of 30 seconds exceeded in Z:\home\mera.by\www\libraries\joomla\session\storage\database.php on line 83

Fatal error: Maximum execution time of 30 seconds exceeded in Z:\home\mera.by\www\libraries\joomla\session\storage\database.php on line 52
But then VM Admin -> Store -> Edit Store set Set Currency=USD , click Refresh and have not any errors.

ps: I installed VM with Simple Data. And I think so in an example data all price lists in USD and when I change the currency, VM tries to lead conversion, connecting to internet, but at it nothing turns out except for a mistake.

aravot

  • Peter
  • Moderator
  • Sr. Member
  • *
  • Posts: 2874
    • VirtueMart Extensions
Re: Error with Currency (non USD)
« Reply #5 on: February 01, 2008, 00:49:08 am »
Are you on localhost? if so can you try it on remote server.

Ronal

  • Beginner
  • *
  • Posts: 23
Re: Error with Currency (non USD)
« Reply #6 on: February 01, 2008, 00:56:34 am »
Yes, on localhost
On remote server I can try only in couple of days.

Please, try you in localhost.

Ronal

  • Beginner
  • *
  • Posts: 23
Re: [UNDER REVIEW] Error with Currency (non USD)
« Reply #7 on: February 03, 2008, 16:57:21 pm »
I try on the remote server. All OK.
Errors appear only on localhost.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27388
  • Always on vacation
    • Jenkin Hill Internet
Re: [UNDER REVIEW] Error with Currency (non USD)
« Reply #8 on: February 03, 2008, 18:18:54 pm »
If you change currency when there are already products in another currency then VM checks the current exchange rate at www.ecb.int  - that can't work on localhost.
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.4.3.10057 on Joomla 3.9.6 PHP 7.0.33
Testing VM 3.4.5.10059 on Joomla 3.9.6

Ronal

  • Beginner
  • *
  • Posts: 23
Re: [UNDER REVIEW] Error with Currency (non USD)
« Reply #9 on: February 04, 2008, 08:10:05 am »
Can I off this option (VM checks the current exchange rate at www.ecb.int) from admin panel because many currencies there are not present at www.ecb.int ?

Also in the list of curreces in VM there is no BYR (Belorussian Rouble). Could you add it.