3cellhosting Posted January 26, 2019 Share Posted January 26, 2019 Hi all, I am running 7.6.1 and the update fails. Following the various links etc. I used phpmyadmin to check last record (with today's date) and found the following... Whoops\Exception\ErrorException: The file /home/********/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/Installer/Composer/Hooks/ComposerInstallerHook.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:0 Stack trace: #0 /home/********/public_html/whmcs/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\Utility\Error\Run->handleError(16, 'The file /home/...', 'Unknown', 0) #1 [internal function]: WHMCS\Utility\Error\Run->handleShutdown() #2 {main} I downloaded the full pack and unzipped and there is no such directory as "Hooks". On my server the directory "Hooks" does exist. Is it simply a case of removing that directory? Regards David 0 Quote Link to comment Share on other sites More sharing options...
3cellhosting Posted January 26, 2019 Author Share Posted January 26, 2019 Hi all, OK - I renamed the existing folder and the upgrade has now worked. I now have to do some checking to make sure I haven't broken anything now. Thanks David 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 26, 2019 Share Posted January 26, 2019 Hi David, 1 hour ago, 3cellhosting said: I now have to do some checking to make sure I haven't broken anything now. I wouldn't be overly concerned - that error indicates to me that WHMCS was seeing an old file whose encoding was incompatible with your current PHP version. 1 hour ago, 3cellhosting said: I downloaded the full pack and unzipped and there is no such directory as "Hooks". On my server the directory "Hooks" does exist. Is it simply a case of removing that directory? it doesn't exist now, but there used to be a folder there - it got removed in one of the v7.4 releases if I remember correctly... what it might be worth doing is running the PHP Version Compatibility Utility feature just to ensure that there aren't any more old encoded files that could cause problems in the future. https://docs.whmcs.com/PHP_Version_Compatibility_Assessment Quote The PHP Version Compatibility Utility can be accessed by navigating to Utilities > System > PHP Version Compatibility. This utility provides a report of ionCube encoded files present within your WHMCS installation directory that may not properly decode under certain versions of PHP. It is designed to give you transparency for files that you may have deployed over the lifespan of your installation, namely files belonging to custom or 3rd party code. WHMCS does not control these files however if their encoding is incompatible with your environment they may negatively affect WHMCS. This utility only inspects decoding compatibility and does not assert PHP syntax compatibility. as the docs states, 'vendor' is excluded from the search so it wouldn't have picked this up, but should pickup issues with old addons etc. 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.