Problems with Mpdf when generating documents via cron
-
Hello,
since we updated the plugin to 7.1.5 we are seeing several error logs which appears to be triggered by a cron job which tries to generate a pdf using Mpdf library.
we had problems in the past in relation to the temporary folder for Mpdf ( see here ) but I am not sure if this is a regression of the same problem or if it’s a different thing.
I’ve traced back the errors and they indeed lead to the same bit of code, which I see has been modified in the latest version of the plugin.
/documents/class-document.php line 2005
$mpdf = new Mpdf\Mpdf($mpdf_args);the error is: “Warning: Trying to access array offset on value of type null” and it’s actually triggered by some code within the Mpdf class itself (line 162 of /complianz-gdpr/assets/vendor/mpdf/mpdf/src/Otl.php ), which is fired on Mpfd initialisation. That bit of code is related to fonts, similarly to what happened in the past.
there are a few other errors generating from the following logic on class-document where the $mpdf object is then handled, so I think that something goes wrong with the configuration of that object.
If this is related to our setup (see the other thread for details) Is there anything we can do via filters maybe?
thanks!
The topic ‘Problems with Mpdf when generating documents via cron’ is closed to new replies.