I need to get EasySocial's cron job playing nicely with SH404SEF.
Here are my cron commands using WGET:
EasySocial Cron Job
/usr/bin/wget -O /dev/null "http://itchy-dog.co.uk/index.php?option=com_easysocial&cron=true&phrase=XXXXXX" >/dev/null 2>&1
(Secret Key masked out)
EasyDiscuss Cron Job
/usr/bin/wget -O /dev/null "http://itchy-dog.co.uk/index.php?option=com_easydiscuss&task=cron" >/dev/null 2>&1
EasyBlog Cron Job
/usr/bin/wget -O /dev/null "http://itchy-dog.co.uk/index.php?option=com_easyblog&task=cron" >/dev/null 2>&1
If I set EasySocial to use Joomla's Router in SH404SEF, then everything is fine, however doing this means that SH404SEF no longer uses its custom 404 page and reverts to Joomla's default 404 page. Checking on SH404SEF this is the way it behaves - if a single component is set to Joomla Router then there is no custom 404 across the site.
If I set EasySocial to Default Handler in SH404SEF, then my custom 404 works, but the cron doesn't get the correct URL. If I copy and paste the URL into a browser, e.g. http://itchy-dog.co.uk/index.php?option=com_easysocial&cron=true&phrase=XXXXXX it actually goes to http://www.itchy-dog.co.uk/?cron=true&phrase=XXXXXX (due to SEF, I guess) so the cron task doesn't actually process.
If I copy and paste the cron URLs for EasyDiscuss and EasyBlog, then they appear to process correctly and I see messages confirming "Email batch process finished" and "0 blog posts fetched from Twitter", so there is only a problem with the EasySocial cron
Is there an alternative command to use in cron for EasySocial that would allow me to run the cron while also keeping SH404SEF's handler?
I'm guessing that a call to /usr/bin/php might work, but how would I format the command to run the php file?
Thanks,
Steve
Here are my cron commands using WGET:
EasySocial Cron Job
/usr/bin/wget -O /dev/null "http://itchy-dog.co.uk/index.php?option=com_easysocial&cron=true&phrase=XXXXXX" >/dev/null 2>&1
(Secret Key masked out)
EasyDiscuss Cron Job
/usr/bin/wget -O /dev/null "http://itchy-dog.co.uk/index.php?option=com_easydiscuss&task=cron" >/dev/null 2>&1
EasyBlog Cron Job
/usr/bin/wget -O /dev/null "http://itchy-dog.co.uk/index.php?option=com_easyblog&task=cron" >/dev/null 2>&1
If I set EasySocial to use Joomla's Router in SH404SEF, then everything is fine, however doing this means that SH404SEF no longer uses its custom 404 page and reverts to Joomla's default 404 page. Checking on SH404SEF this is the way it behaves - if a single component is set to Joomla Router then there is no custom 404 across the site.
If I set EasySocial to Default Handler in SH404SEF, then my custom 404 works, but the cron doesn't get the correct URL. If I copy and paste the URL into a browser, e.g. http://itchy-dog.co.uk/index.php?option=com_easysocial&cron=true&phrase=XXXXXX it actually goes to http://www.itchy-dog.co.uk/?cron=true&phrase=XXXXXX (due to SEF, I guess) so the cron task doesn't actually process.
If I copy and paste the cron URLs for EasyDiscuss and EasyBlog, then they appear to process correctly and I see messages confirming "Email batch process finished" and "0 blog posts fetched from Twitter", so there is only a problem with the EasySocial cron
Is there an alternative command to use in cron for EasySocial that would allow me to run the cron while also keeping SH404SEF's handler?
I'm guessing that a call to /usr/bin/php might work, but how would I format the command to run the php file?
Thanks,
Steve