Hello @yovovy,
I have planed to make it easier to debug such issues via UI in the future, but for now you have to still add $mpdf->showImageErrors = true; line manually, in latest version 2.2.0 you can add the line inside the configureMpdfSettings function in modules/PDF/DocumentBuilder.php, you can temporarily add the line at the top of the function like so:
private function configureMpdfSettings( Mpdf $mpdf ): void {
$mpdf->showImageErrors = true;
...
Try it and let me know what the error is about, also ensure that your server has at least the mbstring and gd php extensions loaded.
thank for the quick reply!
when i put $mpdf->showImageErrors = true; it’s return me an error “Unable to generate PDF. Please try again later.” ,(
GD and mbstring are loaded, same as localhost except Configure Command : enable-mbstring=shared instead of all in localhost … And i don’t know what it means ,)
@yovovy Try adding the following to see if the error message provides the concrete error:
$mpdf->debug = true;
Also try adding the following to see if error is related to cURL:
$mpdf->curlAllowUnsafeSslRequests = true;
If none of the above works, feel free to contact me at hi@dinamiko.dev so I could take a deeper look.
I already try
$mpdf->debug = true;
cause i see the ConfigVariables.php but still the same error
i will check if the error is still here when i go to production (not the same server … i know it’s bad ,) i’ll came back to
thank for all