Free Web Hosting Forum
Go Back   Free Web Hosting Forum > Website Building > Content Managament Systems
Reload this Page Setting a simple cron task via cPanel in Joomla 1.5 for J!MailAlerts component
Reply
 
Thread Tools Display Modes
(#1 (permalink))
Old
Azmandius's Avatar
Member
Azmandius is on a distinguished road
 
Posts: 37
Join Date: Sep 2011
Location: Moldova, Kishinau
Send a message via ICQ to Azmandius Send a message via AIM to Azmandius Send a message via MSN to Azmandius Send a message via Yahoo to Azmandius Send a message via Skype™ to Azmandius
Question Setting a simple cron task via cPanel in Joomla 1.5 for J!MailAlerts component - 07-19-2012, 01:39 PM

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.

Last edited by Azmandius; 07-20-2012 at 12:21 PM.
Reply With Quote
Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com