• Out of a sudden, I got this fatal error message instead of my webpage:

    Fatal error: Declaration of Symfony\Component\DependencyInjection\ServiceLocator::has(string $id) must be compatible with Psr\Container\ContainerInterface::has($id) in /wp-content/plugins/wp-health/vendor/symfony/dependency-injection/ServiceLocator.php on line 46

    I re-enabled the website by goining into the files through FTP and disabling the Health Check & Troubleshooting plugin… but would you have an idea of what the problem was/is?

    I don′t want to enable the plugin again until I know it will not cause an issue again.

    Linux 4.19.0-13-amd64 x86_64
    Apache
    PHP 7.4.20
    PHP SAPI apache2handler
    PHP max input variables 5000
    PHP time limit 120
    PHP memory limit 256M
    PHP Max. Input Time 60
    PHP post max size 256M
    cURL 7.64.0 OpenSSL/1.1.1d
    server nginx

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error due to Symfony compatibility issue with PSR’ is closed to new replies.