ManagedCloud-Hosting Posted January 23, 2020 Share Posted January 23, 2020 Hi, After updating to the latest version received an error... ************************* 1> ERROR: g******@************.com [~]# php -q /home/g******/*********er/crons/cron.php Whoops\Exception\ErrorException: The file /home/g******/public_html/i*****n/modules/addons/Easy_WHMCS/hooks.php was encoded with the Encoder for PHP 7.2 and can only run on PHP 7.2 or later. If you are the administrator of this site then please upgrade to PHP 7.2 or later and install the corresponding ionCube Loader. in Unknown:0 ************************* ************************* 2> Email Cron Error Received: Your WHMCS is configured to perform the Daily System Cron during the hour of 12 pm. However, the Daily System Cron did not execute within that hour as expected.This may be due to the scheduled time specified in your web hosting control panel's cron entry. Please ensure your web hosting control panel executes the WHMCS System Cron (cron.php) at least once during the hour of 12 pm. ************************* How to fix this ? 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted January 23, 2020 Share Posted January 23, 2020 Download an update for Easy WHMCS (if any). If there's no update, you might need to deactivate the module. 0 Quote Link to comment Share on other sites More sharing options...
ManagedCloud-Hosting Posted January 23, 2020 Author Share Posted January 23, 2020 Hi Dennis Thanks for your response, but what to do with the error of cron... ------------------- Warnings Cron PHP Version Mismatch Your environment appears to be running a different PHP version (5.6.40) for the System Cron than the currently loaded PHP version (7.2.26). This may cause issues running your System Cron. ------------------- 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted January 23, 2020 Share Posted January 23, 2020 You should change it to run PHP 7.2 instead. If you're using cPanel, you should setup your cron to use "/usr/local/bin/ea-php99" instead of just "php". 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted January 23, 2020 Share Posted January 23, 2020 (edited) 58 minutes ago, VirtualWorldGlobal said: How to fix this ? Your "Easy_WHMCS" addon has been encoded with PHP 7.2 support hence you have two options: Contact the developer of "Easy_WHMCS" and ask him to provide the "bundled" version that works with any version of PHP (don't do that, it's not his fault) Make sure that your server uses PHP 7.2 for EVERYHING. The problem here is that the local PHP that runs your WHMCS uses v7.2 but cron job is still using v5.6.40. In other words you need to fix your server Edited January 23, 2020 by Kian 1 Quote Link to comment Share on other sites More sharing options...
ManagedCloud-Hosting Posted January 23, 2020 Author Share Posted January 23, 2020 Hi Kian, Thank you for your response... We are new to WHMCS and we have changed the cron to - cron entry is changed to " /usr/local/bin/ea-php72 /home/g*******/********r/crons/cron.php" Will this work fine now ? 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted January 23, 2020 Share Posted January 23, 2020 Yes, that should work just fine, @VirtualWorldGlobal🙂 0 Quote Link to comment Share on other sites More sharing options...
ManagedCloud-Hosting Posted January 23, 2020 Author Share Posted January 23, 2020 Hi @DennisHermannsen No it's still showing error and we are not able to understand what went wrong and why 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted January 23, 2020 Share Posted January 23, 2020 (edited) It means that your cron is still running with PHP 5.6 no matter what you changed earlier. It's a server-side problem/misconfiguration. Edited January 23, 2020 by Kian 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted January 23, 2020 Share Posted January 23, 2020 Try running the cron job like this from SSH: /usr/local/bin/ea-php72 /home/g*******/********r/crons/cron.php -vvv 0 Quote Link to comment Share on other sites More sharing options...
ManagedCloud-Hosting Posted January 24, 2020 Author Share Posted January 24, 2020 (edited) The issue has now been resolved, Thank you @Kian and @DennisHermannsen for your help and support :) Edited January 24, 2020 by VirtualWorldGlobal 1 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.