Execute the file manually (i.e. by navigating to it in a browser) and see if that updates the currencies. That will show whether it is the setup of the script itself, or the CRON job that is at fault.
Printable View
Execute the file manually (i.e. by navigating to it in a browser) and see if that updates the currencies. That will show whether it is the setup of the script itself, or the CRON job that is at fault.
:blush::blush::blush:
Quote:
Warning: require_once(PATH_TO_STORE_ROOTincludes/configure.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/b/i/g/bigstar/html/bigstarca/store/currency_update.php on line 20
Fatal error: require_once() [function.require]: Failed opening required 'PATH_TO_STORE_ROOTincludes/configure.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/b/i/g/bigstar/html/bigstarca/store/currency_update.php on line 20
That indicates that either the file you're using is corrupt, or you have removed the definition of PATH_TO_STORE_ROOT.
Can you give me an example of what my "path to store root" should be?
The currency_update.php file is located in http://www.mydomain.com/store/
Thank you for pointing me in the right direction. I figured out where I forgot to put the store root in the PHP file. It should work now.
What do I CHMOD currency_update.php file to??
Can someone teach me how do i configure my cron and my file " currency_update" plz?
did you read my previous posts on how I did it in my server control panel?
yes, i'm receveiving thw following errors in my email:
<br />
<b>Warning</b>: file() [<a href='function.file'>function.file</a>]: URL file-access is disabled in the server configuration in <b>/home/(my username)/public_html/egt/zencart/currency_update.php</b> on line <b>37</b><br />
<br />
<b>Warning</b>: file(http://www.ecb.europa.eu/stats/eurof...xref-daily.xml) [<a href='function.file'>function.file</a>]: failed to open stream: no suitable wrapper could be found in <b>/home/(my username)/public_html/egt/zencart/currency_update.php</b> on line <b>37</b><br />
<br />
<b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/(my username)/public_html/egt/zencart/currency_update.php</b> on line <b>40</b><br />
Your errors suggest that your web host is blocking the php file() function, which this mod uses to read in the currency data.
You would need to either get your web host to unblock that function, or try the curled version of thsi mod instead (see post #85 above).