• Resolved bored2tears

    (@bored2tears)


    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter bored2tears

    (@bored2tears)

    Quick note: I got the current version wrong. I updated to 3.8.3, not 3.7.1

    Plugin Author fkrauthan

    (@fkrauthan)

    Hmm that is very strange, for some reason trying to access the folder on wordpress SVN repo it errors out. Looks like some WordPress plugin repo bug. You can actually see that the last change did upload the files: https://plugins.trac.wordpress.org/changeset/3031867/ I will reach out to wordpress support and see what is going on.

    Plugin Author fkrauthan

    (@fkrauthan)

    It looks like the SVN server is behaving strange right now. Can you try re-installing the plugin in a couple of hours? From my side the missing file exists and is correctly published (as besides of you no one has reported that issue).

    Thread Starter bored2tears

    (@bored2tears)

    Interesting. Yeah, I will try a fresh installation today. Thanks for looking into this.

    Thread Starter bored2tears

    (@bored2tears)

    Looks like you were right. Just a fluke somewhere in the update process. On fresh install, those directories and files are there.

    Thanks for the help!

    Plugin Author fkrauthan

    (@fkrauthan)

    No problem. Glad it resolved itself. For a second I was really worried that I published a fully broken version and no one told me.

    Thread Starter bored2tears

    (@bored2tears)

    Hahaha no, you’re all good. Sorry for the panic attack.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Fatal Error – “\Psr\Log\LoggerAwareInterface”’ is closed to new replies.