bolli

Registered
May 11, 2011
3
0
51
Whenever i try to put this command:
php -f /home/global/public_html/beavirtual/admin/maintenance.php

into cron jobs, i get the error
AJAX Error
Please refresh the page and try again.

I don't know whats causing this, but its happening in every browser i use (chrome, FF & IE)

I don't want to go to the host just yet incase its something stupid i've done wrong :D

Any help would be greatly received :)
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Can you try moving the contents of /home/username/.cpanel/nvdata folder (so in File Manager, this would be .cpanel/nvdata contents) to another location, then see if the issue persists? Please do not remove the nvdata folder or move the folder nvdata itself, only the contents of that folder.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,215
363
Hello :)

Do you have root access to the server? If so, could you check to see what error message is reported to /usr/local/cpanel/logs/error_log when this problem occurs?

If you do not have root access to the server, please contact your web hosting provider to have them investigate this issue.

Thank you.
 

bolli

Registered
May 11, 2011
3
0
51
No, i don't have access to the root

Thank you for your help and quick responses
 

GlobalRaj

Registered
Feb 9, 2012
1
0
51
cPanel Access Level
Reseller Owner
I am having same AJAX error issues.

While creating the cron if I use the following, the cron gets scheduled but nothing happens at the scheduled time. I am supposed to get an email with back up. The php file works fine if I run it manually.

/home/myusername/public_html/myfolder/backup.php

If I add "php -q" at the begining, I end up getting AJAX error (in all browsers)

php -q /home/myusername/public_html/myfolder/backup.php

Any help will be appreciated. Thanks.

Raj
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Hello Raj,

Could you try the full PHP binary for the command?

Code:
/usr/bin/php -q /home/myusername/public_html/myfolder/backup.php
Thanks!