Guides & Tutorials7.4 Update TroubleshootingTroubleshooting an Ioncube error after updating

Troubleshooting an Ioncube error after updating

After applying the 7.4 update, you may encountering the following Ioncube error:

Fatal error: The file /path/to/whmcs/index.php was encoded by the ionCube Encoder for PHP 5.6 and cannot run under PHP 7.1. 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

Cause

This error message means that your server is currently running a PHP 7.1 environment with the corresponding Ioncube v10 loaders.

At the time of writing, WHMCS is compatible with PHP 5.6 and 7.0. It is not compatible with PHP 7.1

This error is occurring as a result of attempting to run WHMCS in an unsupported environment.

Resolution

To resolve this error, you must switch your hosting environment to PHP 7.0 so as to meet the system requirements.

It may be necessary to contact your server admin/hosting provider to make this change.

 

If your provider offers a cPanel MultiPHP environment, follow these steps to quickly resolve the error:

 

1. Login to cPanel

2. Click the MultiPHP Manager icon

3. Select the domain upon which your WHMCS installation resides from the list:

4. Use the PHP Version dropdown menu to select the PHP 7.0 configuration, denoted by ea-php70

5. Click Apply

 

Visit your WHMCS installation and the error should now be resolved.