Jump to content

Problems with Cron Jobs


Recommended Posts

Since I updated the software to 8.13 my cron jobs keep failing on every task. I found a troubleshooting article on how to get the error log for this and here is what it is saying.



Fatal error: The file /xxx/xxxx/whmcsdata/crons/cron.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1 or later.
 Please ask the provider of the script to provide a version encoded with the ionCube Encoder for PHP 7.1. in Unknown on line 0

I have confirmed with my host provider that ioncube is working properly and that they think it is the cron.php that could not be up to date.  PHP is set to 7.3 so that isn't an issue as well. Any help would be great on this. 

Link to comment
Share on other sites

If you're using the multiPHP selector to have your site run as PHP7, but the system defaults to PHP5.6, that may be it. Make sure the cron is being called correctly, as in: 

/opt/cpanel/ea-php73/root/usr/bin/php -q /path/to/whmcs/cron/here

Of course, that sounds more like you have the old cron file from that error. 😉

Edited by bear
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated