Hello,
I have a simple cron task to run once a day in Joomla 1.5 for J!MailAlerts component.
The exact task is:
Code:
http://azmand.tk/index.php?option=com_jmailalerts&view=emails&tmpl=component&task=processMailAlerts&pkey=...my_secret_key...456
Since i am on a free account, trying to setup that task in cPanel using command:
Code:
public_html/index.php?option=com_jmailalerts&view=emails&tmpl=component&task=processMailAlerts&pkey=...my_secret_key...456
gives the error:
Quote:
|
Path to the script cannot contain any special symbols or whitespaces
|
which means only paid accounts can use special symbols for cron tasks, whilst free accounts may only include simple direct path to cron.php like this:
Code:
public_html/cron.php
as mentioned
here by zSteve.
The problem is there is no a cron.php in Joomla, not sure if there is something like that at all.
I have read here on forum there is a cron.php in Drupal.
How do i solve that in Joomla, can i create a cron.php with the up mentioned task inside it, and point the cron task to run that cron.php file? Will it work in Joomla? What kind of else code must a cron.php file include?
Thanks.
[Update]
Just tried to create manually a cron.php file inside public_html directory to run my cron command like this:
Code:
<?php
include "http://azmand.tk/index.php?option=com_jmailalerts&view=emails&tmpl=component&task=processMailAlerts&pkey=...my_secret_key...456";
?>
and runing it manually
http://azmand.tk/cron.php via browser got these error messages:
Quote:
Warning: include() [function.include]: URL file-access is disabled in the server configuration in /home/a5264254/public_html/cron.php on line 2
Warning: include(http://azmand.tk/index.php?option=co...cret_key...456) [function.include]: failed to open stream: no suitable wrapper could be found in /home/a5264254/public_html/cron.php on line 2
Warning: include() [function.include]: Failed opening 'http://azmand.tk/index.php?option=com_jmailalerts&view=emails&tmpl= component&task=processMailAlerts&pkey=...my_secret _key...456' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a5264254/public_html/cron.php on line 2
|
Hope that helps anyone to help me.
Thanks.
[Update]
Never mind anyone. I understood that cPanel cron task features are as limited as possible to free accounts, better avoid using it in first place, and look for an alternative solution to your issue. I did, and found.
Or better yet simply run manually your cron tasks on regular basis, worked for me.