• Frank

    (@freakenstein)


    Getting the below error on activating. Tested with 3.1.5 and 3.1.6

    Fatal error: Declaration of Kudos\Service\LoggerService::addRecord(int $level, string $message, array $context = [], ?Monolog\DateTimeImmutable $datetime = null): bool must be compatible with Monolog\Logger::addRecord($level, $message, array $context = []) in?/public_html/wp-content/plugins/kudos-donations/app/Service/LoggerService.php?on line?52

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

    (@iseardmedia)

    Hi Frank,

    Thanks for the report, I’ll take a look at it.

    Regards,

    Michael

    Thread Starter Frank

    (@freakenstein)

    It is a conflict with another plugin. Not sure which. Deactivated several

    Plugin Author iseardmedia

    (@iseardmedia)

    Hi Frank,

    As you mentioned, this looks like a conflict. This is caused by two plugins / themes having the same library installed (in this case Monolog) but having different versions of that library that are not compatible.

    In this case; Kudos Donations has a newer version of Monolog which changed how some of the functions work, some other software on your website has the older version which uses the older version, Kudos then tries to use that older version and fails.

    This is an avoidable problem but is tricky to do so. I am planning to implement a system to prevent this in the next major update for Kudos but in the meantime the only thing you can do is try to find out what plugin or theme is conflicting and disable it.

    Please let me know what you find since this can be helpful for myself and other users in the future.

    Best of luck

    Michael

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘fatal error when activating’ is closed to new replies.