Saulo Lago Posted November 6, 2019 Share Posted November 6, 2019 Good morning guys. Has anyone passed this problem in the WHMCS cron? When you run it the following error message appears: Fatal error: The file /home1/xxxxx/whmcsdata/crons/cron.php cannot be run by the ionCube Loader. Please ask the script provider to supply an encoded file that can run on your version of PHP, 5.2. in Unknown on line 0 The current version of PHP is 7.1.24. I asked my hosting to upgrade ionCube Loader to run on version 7.1, according to them it has been updated but the error still persists. Can anyone help me? 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted November 6, 2019 Share Posted November 6, 2019 For sure your PHP version is 7.1.24 but Cron is running with an older version hence the error. Make sure that Cron deamon uses a recent version of PHP. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted November 6, 2019 Share Posted November 6, 2019 Pretty sure the cron will use whatever the server default (on Cpanel servers) is set to. PHP 5.2 is pretty old now, and out of it's support period, so things may start to get "interesting" on that server if that's in use as the default. 0 Quote Link to comment Share on other sites More sharing options...
Saulo Lago Posted November 7, 2019 Author Share Posted November 7, 2019 Thank you for your help. I was able to solve the problem by running cron: /opt/php71/bin/php -q /home/xxxx/public_html/cliente/crons/cron.php I followed the following instructions (In Portuguese) https://webifacil.com.br/como-resolver-erro-no-cron-job-do-whmcs/ Thank you 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.