Fatal Error – “\Psr\Log\LoggerAwareInterface”
-
Hello!
I recently updated to the 8.3.1 version of the plugin from 3.7.1, and I started getting a fatal error when attempting to export PDFs from this plugin. The basic error is the following:
Fatal error: Uncaught Error: Interface “Psr\Log\LoggerAwareInterface” not found in “…/wp-content/plugins/wp-mpdf/vendor/mpdf/mpdf/src/Mpdf.php:29”Mpdf.php:29 is the following line:
class Mpdf implements \Psr\Log\LoggerAwareInterface {
This line is trying to call LoggerAwareInterface.php inside /vendor/psr/log/Psr/Log. This path and file are present in the 7.3.1 version, but seemed to have been removed somewhere along the line. The newest version goes to /vendor/psr/log, and then stops. While fixing this error on my end was pretty simple – replacing the missing directories and files – it’s all subject to rewriting with future updates. I’m not sure if this change was intentional or not, but I figured it was worth mentioning, since the plugin itself is calling to something that has been moved or isn’t there at all.
- The topic ‘Fatal Error – “\Psr\Log\LoggerAwareInterface”’ is closed to new replies.