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

kbahey’s picture

Status: Active » Postponed (maintainer needs more info)

Your host may have restricted fsockopen from PHP.

Check the Apache error log for any clues, or contact them for more details.

rvarkonyi’s picture

Thanks for the reply, unfortunately I know that my host is using php safe mode, can that be the problem? Thanks!

kbahey’s picture

I 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.

$url = "http://download.finance.yahoo.com/d/quotes.csv?s=RHT&f=sl1d1t1c1ohgv&e=.csv";
$data = file_get_contents($url);
print "We got data ...<br/>";
print "data=$data";
rvarkonyi’s picture

Hi 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

kbahey’s picture

Title: after clicking button, page goes white and nothing happens » White Screen of Death (WSOD) after clicking button
Status: Postponed (maintainer needs more info) » Closed (fixed)

The "not allowed" means that your host restricts those functions.

So you are out of luck, unless you change to another host.