Frano:
A confirmation email is sent with the source code for the login page?
Is zen cart failing the cron job because it appears as though it is someone attempting to invoke the script who isnt logged in?
Possible, but not something I've ever experienced.
Wouldn't this pretty much defeat the purpose of a cronjob?
Frano:
HAs anyone got cron jobs working for the currency update function?
Yes, on many different systems.
There are about 2 important things you need to set/check.
-
The full path to the store admin directory needs to be set in the currency_update.php file itself.
-
The crontab command line needs to be entered as
x x x x x php /file/path/to/currency_updater.php
where 'php' is the progam to be run, and the path is the parameter.
This example assumes the crontab is being edited by a user with the 'crontab -e' command. (or some other 'wrapper' program).
If you are the sysadmin with root access and editing /etc/crontab directly the line will need to read like:
x x x x x x root php /file/path/to/currency_updater.php
Generally when setting this up for the first time on any given server I first test it by running "php /file/path/to/currency_updater.php" from the command line. Only when this is successful do I add it to the crontab itself. I then set it to run every minute, set one of the currencys to something it shouldn't be, wait a minute, and if the currency has corrected itself I declare all ok and set it to run once daily.
Most problems I've experienced tend to be incorrect paths defined for the admin and program itself. On rare occasions I've needed to use the full pathname for the php executable (usually /usr/sbin/php), but this shows up on the command line tests.
Cheers
Rod
NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.
Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.