Close

March 7, 2011

CPANEL Cron Ajax Error – Fix

A very quick tip. If you are trying to use the Crontab section of a CPanel (reseller account, etc), you may have some issues trying to setup a simple wget when trying to just get a simple webpage. You’ll get some “AJAX ERROR” please refresh. Very annoying with no error message. In anycase, you can solve it by removing the HTTP:// part of the URL.

Before:

wget -q -O cron_exec.html http://domain.com/entry-form/cron.php >/dev/null 2>&1

After:

wget -q -O cron_exec.html www.domain.com/entry-form/cron.php >/dev/null 2>&1