Symptoms- Plesk update fails or Plesk panel cannot be accessed with the following message:
PHP Fatal error: Class Laminas\ServiceManager\ServiceLocatorInterface cannot implement
previously implemented interface Psr\Container\ContainerInterface in
/opt/psa/admin/plib/modules/monitoring/vendor/laminas/laminas
servicemanager/src/ServiceLocatorInterface.php on line 18
CauseThe outdated version of the Monitoring extension is installed on the server.
Resolution- Connect to the server via SSH/RDP.
- Update the Monitoring extension to the latest version with the command below in the SSH console
or CMD/Windows Powershell:
#plesk bin extension --upgrade monitoring