Problem/Motivation
Seeing this when saving files on Acquia.
Adding DependencySerializationTrait to the event subscriber cures.
| Comment | File | Size | Author |
|---|
Issue fork pdf_metadata-3368688
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
ethantComment #3
ethantComment #4
ethantComment #5
ethantComment #6
ethantComment #7
ethantComment #8
ethantComment #9
ethantComment #10
ethantComment #11
ethantComment #14
j-barnes commented@ethan - Great find, it looks like mpdf needed to have the temp location explicitly set to avoid having it use the vendor location which was causing permission issues on certain environments like Acquia Platform. This lead to a serialization error because the logger function was trying to print out the entire exception.
I've updated the logger to use
$e->getMessage()and now pull in the temp location via filesystem and have also cleaned up some of the types.Thanks again, going to leave this open for a bit for testing.
Comment #15
j-barnes commentedComment #16
j-barnes commentedUnfortunately it looks like mPDF uses FPDI which does not work on PDFs above v1.4 (at least the free version). Updating MR to use GhostScript instead which should have increased performance and works on 1.7+.
Comment #17
sunny-lee commentedPDF metadata patches and modules works with Drupal 10 and PHP 8.1
Comment #18
j-barnes commentedComment #20
j-barnes commentedComment #21
j-barnes commented