Closed (fixed)
Project:
Currency
Version:
5.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2007 at 01:00 UTC
Updated:
31 Dec 2007 at 01:07 UTC
Hi there,
I try to use the currency module, I have set up the default currencies but when trying to exchange a value the page goes white and nothing happens after that. Also the description of the page doesn't appear anywhere, don't really need it but it might helps you figure out whats the problem.
Thanks in advance
Comments
Comment #1
kbahey commentedYour host may have restricted fsockopen from PHP.
Check the Apache error log for any clues, or contact them for more details.
Comment #2
rvarkonyi commentedThanks for the reply, unfortunately I know that my host is using php safe mode, can that be the problem? Thanks!
Comment #3
kbahey commentedI am not sure if safe mode restricts file_get_contents(). It depends on what allow_url_fopen has been set to in the .ini file.
Try saving the following to a file called test.php and then point your browser to it, and see what you get.
Comment #4
rvarkonyi commentedHi and thank for your help!
Here's what I get:
Warning: realpath() [function.realpath]: Unable to access /nfs/extra/c/cr/crooke/wwwroot/http://download.finance.yahoo.com/d in /nfs/extra/prepend/prepend.php(159) : system created function on line 17
Warning: realpath() [function.realpath]: Unable to access /nfs/extra/c/cr/crooke/wwwroot/http://download.finance.yahoo.com/d in /nfs/extra/prepend/prepend.php(159) : system created function on line 18
Warning:
file_get_contents(): You are not allowed to open this file (http://download.finance.yahoo.com/d/quotes.csv?s=RHT&f=sl1d1t1c1ohgv&e=.csv)! in : on line
in /nfs/extra/prepend/prepend.php(159) : system created function on line 26
We got data ...
data=
I noticed that with some other modules I have the same problem somewhere in prepend.php, so it must be the host. Not a lot I could do about that.
Thanks anyway
Comment #5
kbahey commentedThe "not allowed" means that your host restricts those functions.
So you are out of luck, unless you change to another host.