• Resolved alexstandiford

    (@alexstandiford)


    Hey there! We’re seeing a fatal error on the plugins screen, and I’m not sure the cause. We were upgrading from 2.50 to the latest version, and that’s when the problem happened. We have had to revert back to 2.50 in-order to resolve the problem.

    It appears that some kind of dependency is causing a conflict here.

    Here’s the error code:

    PHP Fatal error: Declaration of Symfony\\Component\\Cache\\CacheItem::expiresAt(?DateTimeInterface $expiration): static must be compatible with Psr\\Cache\\CacheItemInterface::expiresAt($expiration) in /nas/content/live/solmetex25/wp-content/plugins/integration-cds/vendor/symfony/cache/CacheItem.php on line 65, referer: https://solmetex25.wpenginepowered.com/wp-admin/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author georgedude

    (@georgedude)

    Hi @alexstandiford

    our declarations are compatible with psr/cache for PHP > 8.0 (see interface declaration). The error you’re seeing is most likely related to one of your other plugins using an older version of psr/cache (v1.x), which does not define method signatures strictly.

    Thank you
    George

    Thread Starter alexstandiford

    (@alexstandiford)

    Hey @georgedude, thanks for that context, although wouldn’t it be best to set up your plugin so that it uses something like Mozart so that this dependency conflict doesn’t happen?

    Plugin Author georgedude

    (@georgedude)

    Hi @alexstandiford

    great suggestion! We did look at Mozart and php scoper in the past, neither of them worked for us at the time but perhaps it’s time to look again. Having said that, using 10 years old declarations is on the other plugin, to be honest 🙂

    Stay tuned!

    George

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal Error on plugins screen’ is closed to new replies.