• Resolved bearstar

    (@bearstar)


    Error Details
    =============
    An error of type E_COMPILE_ERROR was caused in line 244 of the file /home/xxx/public_html/wp-content/plugins/wp-simple-firewall/src/lib/vendor/nesbot/carbon/src/Carbon/Carbon.php. Error message: Declaration of Carbon\Carbon::diffInDaysFiltered(Closure $callback, $date = NULL, $absolute = true) must be compatible with Cake\Chronos\ChronosInterface::diffInDaysFiltered(callable $callback, ?Cake\Chronos\ChronosInterface $dt = NULL, $abs = true)

    Disabling Simply Schedule Appointments plugin solved the problem, but thought you’d like to know.

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

    (@paultgoodchild)

    Hi,

    Thanks for reaching out to us and for letting us know about this.

    The error is caused by 2 different, incompatible versions of the same PHP library (in this case PHP Carbon) by 2 plugins. In this case, the other plugin is using a drop-in replace for Carbon, https://github.com/cakephp/chronos which doesn’t appear to support Carbon v2 (which we’re using)

    Our latest release moved our minimum supported PHP version to 7.2. This was driven, in large part, by similar errors generated by our plugin because we were using older versions of certain PHP libraries, also in-use by other plugins.

    We wanted to support PHP 7.0, and in order to do this, we had to use somewhat data PHP libraries. But other plugins wanted to push ahead, and this meant our plugin was generating errors.

    So we decided to move forward on to PHP 7.2+ and this meant upgrading certain PHP libraries. This improves our compatibility with other plugins doing the same, but it will inevitably lead to incompatibilities with other plugins that aren’t.

    In this case: Simply Schedule Appointments is using an older version of the PHP carbon library and we’re getting errors because the libraries aren’t compatible.

    If we didn’t upgrade our library version, then you could never run Shield on PHP 8.2, for example. At some point we have to draw a line somewhere, and for now, this is where we’re drawing it. To read more about this move to PHP 7.2, please see our blog post here:
    https://getshieldsecurity.com/blog/php-7-2/

    Thanks.

    Thread Starter bearstar

    (@bearstar)

    Thanks, Paul, for the great support.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Possible conflict with Simply Schedule Appointments plugin’ is closed to new replies.