Laminas Class Errors

Problem

You see the following error after upgrading to PHP 8.1:

Fatal error: Uncaught Error: Class "Laminas\ZendFrameworkBridge\Autoloader" not found in /path/to/whmcs/vendor/laminas/laminas-zendframework-bridge/src/autoload.php:9

Cause

The OPcache PHP extension is enabled on your server and contains stale cache data.

Solution

Deactivate the OPcache extension from your PHP configuration.

For assistance, see your control panel’s documentation, or contact your hosting provider or system administrator:

Last modified: October 30, 2024