WPIntell

Source evidence

Fatal Error – “\Psr\Log\LoggerAwareInterface”

wp-mpdf · support · 2024-04-10T18:12:00+00:00

mixedsentiment
highseverity
0.95relevance
7replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 32 rows with source links

12.5% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
bored2tears resolved
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. This topic was modified 2 years, 1 month ago by bored2tears . Quick note: I got the current version wrong. I updated to 3.8.3, not 3.7.1 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. 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). Interesting. Yeah, I will try a fresh installation today. Thanks for looking into this. 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! 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. Hahaha no, you’re all good. Sorry for the panic attack.

Comments

7 shown
bored2tears 2024-04-10T19:34:00+00:00

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

fkrauthan 2024-04-10T22:38:00+00:00

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.

fkrauthan 2024-04-10T22:41:00+00:00

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).

bored2tears 2024-04-11T15:32:00+00:00

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

bored2tears 2024-04-11T17:20:00+00:00

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!

fkrauthan 2024-04-11T17:20:00+00:00

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.

bored2tears 2024-04-11T17:24:00+00:00

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