HomeBreadcrumb ArrowModulesBreadcrumb ArrowOpenCartBreadcrumb ArrowCurrencyRatesBreadcrumb ArrowCurrencyRates Module Warning
New Discussion

CurrencyRates Module Warning

User Image
Amit member
#1 posted on 14/9/15 (edited on 14/9/15)

Hello!

I have following warnings in the system log and they are so frequent that they cause log file to become very large. Can anyone help me understand this warning and fix it?

--------------------------------------------------------

2015-09-11 8:02:05 - PHP Warning:  simplexml_load_file(http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(%22INREUR%22%2C%20%22INRINR%22%2C%20%22INRGBP%22%2C%20%22INRUSD%22)&env=store://datatables.org/alltableswithkeys): failed to open stream: Network is unreachable in /var/www/vhosts/meritok.com/httpdocs/store/catalog/controller/module/currencyrates.php on line 39

2015-09-11 8:02:05 - PHP Warning:  simplexml_load_file(): I/O warning : failed to load external entity "http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(%22INREUR%22%2C%20%22INRINR%22%2C%20%22INRGBP%22%2C%20%22INRUSD%22)&env=store://datatables.org/alltableswithkeys" in /var/www/vhosts/meritok.com/httpdocs/store/catalog/controller/module/currencyrates.php on line 39

2015-09-11 8:02:05 - PHP Notice:  Trying to get property of non-object in /var/www/vhosts/meritok.com/httpdocs/store/catalog/controller/module/currencyrates.php on line 41

2015-09-11 8:02:05 - PHP Notice:  Trying to get property of non-object in /var/www/vhosts/meritok.com/httpdocs/store/catalog/controller/module/currencyrates.php on line 41

2015-09-11 8:02:05 - PHP Warning:  Invalid argument supplied for foreach() in /var/www/vhosts/meritok.com/httpdocs/store/catalog/controller/module/currencyrates.php on line 41

--------------------------------------------------------

Thanks in advance.

0
User Image
Evgeni Kolev member
#2 posted on 18/3/16

Hello, Amit,

It looks like the allow_url_fopen PHP setting is not enabled. Please try enabling it and let us know if that work. You can find more info on how to do that here -  http://www.php.net/manual/en/filesystem.configuration.php

Hope that helps.

1