Get The Most Affordable Hosting in the World!
Starting at just $1.87/month, Vercaa offers unbeatable pricing for world-class web hosting services.
Fast, reliable, and secure hosting to power your website without breaking the bank. Plus, enjoy a free CDN for faster loading times worldwide!
Get Started Now!Symptom
After switching to PHP 8.1, you may see an ionCube Loader® error when accessing certain parts of WHMCS:
The file /home/username/public_html/whmcs/modules/gateways/paypalexpress.php encoded as type [1/72] cannot be decoded by this version of the ionCube Loader. in Unknown on line 0
Cause
In this error, the file's PHP source code is encoded and requires the correct version of ionCube Loader to successfully decode it. Usually, the file uses a version of the ionCube Loader for PHP 7 or earlier and cannot use ionCube Loader for PHP 8.1.
Solution
If the file in the error message is part of an after-market module or customization that you need to continue using, contact the original vendor of the file for an update that is compatible with PHP 8.1.
If you do not need the file in the error message, remove it.
The PHP Version Compatibility tool can scan for incompatible files:
1. Go to Utilities > System > PHP Version Compatibility.
2. Click Scan.
3. Click Incompatible Encoding to view a list of files that the selected PHP version cannot decode.
4. In your preferred FTP client, go to the location that appears in the error message. In the above example, this is /public_html/whmcs/modules/gateways/
.
![paypalexpress.php](https://media.screensteps.com/image_assets/assets/006/567/016/original/ad9f9498-fc65-4406-b6f8-530484688ff7.png)
5. Delete the file that appears in the error message. In this example, this is paypalexpress.php
.
6. In WHMCS, reload the affected page again.
7. If you see another error for a different file, repeat the process for each file until the page loads correctly.
For more information, see PHP Migration Guide and How to use WHMCS with PHP 8.1.
The End! should you have any inquiries, we encourage you to reach out to the Vercaa Support Center without hesitation.