Fatal Error
-
>PHP Fatal error: Declaration of Psr\Log\NullLogger::log($level, $message, array $context = []) must be compatible with Psr\Log\LoggerInterface::log($level, Stringable|string $message, array $context = []): void in /var/www/z/wp-content/plugins/mpdf-addon-for-pdf-invoices/vendor/psr/log/Psr/Log/NullLogger.php on line 26
PHP 8.1
Plugin version 1.2.1
This causes a fatal error whenever an order is marked as complete (hence generating the invoice). Refreshing the page shows the order page correctly but trying to download the invoice triggers the error too.
I changed line 26 to:public function log($level, $message, array $context = []): void
That fixed the error. Is this something you can add to the next release?
- You must be logged in to reply to this topic.