• Resolved Music365

    (@clairporium)


    Hi Paul,

    I’m having a sudden issue related to Shield. All was well on Friday, but today I get a fatal error message when trying to access my website.

    I disabled Shield with forceoff so I could get in there. I also checked my error log. Below is the basic gist of the error. I removed the site directory info as noted in brackets [ ], but the rest will give you an idea of what is happening.


    PHP Fatal error: Declaration of FernleafSystems\Wordpress\Plugin\Shield\Modules\AuditTrail\Lib\LogHandlers\LocalDbWriter::write(array $record) must be compatible with Monolog\Handler\AbstractProcessingHandler::write(array $record): void in /[removed site directory info]/wp-content/plugins/wp-simple-firewall/src/lib/src/Modules/AuditTrail/Lib/LogHandlers/LocalDbWriter.php on line 26

    I also saw an another error as follows:

    [ERROR] : WPO_ADVANCED_CACHE constant is not present in advanced-cache.php

    Based on those two errors, I found that disabling WP-Optimize, and then renabling Shield works. So, for now, I have WP-Optmize disabled. (Note: I was not using this plugin for caching purposes, just so you know.)

    Any idea what might be going on between the two plugins? My PHP version is 7.4, WordPress is version 6.0, and all themes and plugins are up-to-date.

    Appreciate your time and assistance.

    -M

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Paul

    (@paultgoodchild)

    You’re not the first to report this.

    Basically WPO plugin has recently released an update that contains a more recent version (v2) of the Monolog PHP library. You could suggest to them to go for an earlier version to provide greater compatibility with other plugins that use the older library.

    It’s strange, because their plugin says they support PHP 5.6+ but the Monolog library they’ve included only supports PHP 7.2+.

    Not great. Unfortunately we’re in no position to accommodate their choice in this as we must use a Monolog library that supports PHP 7.0+ (the minimum supported PHP version of our plugin) and this is Monolog version 1

    Have you raised this error with them?

    My suggestion would be to raise it with them and hope they’ll accommodate you. I know you’re not the only 1 affected by this, and I’m sure we’re not the only plugin that’s clashing…

    Thread Starter Music365

    (@clairporium)

    Paul,

    Thank you very much for the response and explanation. I will take it up with WPO developers. Let’s see if we can get them to sort this out. 🙂

    – M

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal error: Declaration of FernleafSystems….’ is closed to new replies.