- Issue created by @elgandoz
On some hosting environment (like Platform.sh) the file system is read-only, which make mpdf file generation fail.
According to the documentation (https://github.com/mpdf/mpdf?tab=readme-ov-file#setup--configuration):
It is recommended to set one's own temporary directory via tempDir configuration variable. The directory must have write permissions (mode 775 is recommended) for users using mPDF (typically cli, webserver, fpm).
Warning: mPDF will clean up old temporary files in the temporary directory. Choose a path dedicated to mPDF only.
$mpdf = new \Mpdf\Mpdf(['tempDir' => __DIR__ . '/tmp']);
By default, the temporary directory will be inside vendor directory and will have write permissions from post_install composer script.
- Enable media_thumbnails_word on a read-only file system hosting
- Upload a word file (it will fail upon saving)
Mpdf allows (and reccomends) to set a temporary folder. We should use the temporary folder setup for Drupal, since we know it's already set-up correctly
- [ ] check compatibility with other renderers
None
None
None
Active
1.0
Code