UPDATES EasyBlog 6.0.11 Released! Update to the latest version now!

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is offline
Our team is away during the weekend. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!
  Support is offline

Cron Jobs and SH404SEF

Steve · ·
5:49 PM Tuesday, 25 February 2014
None
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
The replies under this section are restricted to logged in users or users with an active subscription with us