• Resolved Efs

    (@stevendigital)


    Hello,

    Today after checking the logs I saw this error

    2024-04-18T16:11:05+00:00 Critical Uncaught Mpdf\MpdfException: Unable to create output file /var/www/vhosts/[…]/wp-content/uploads/complianz/snapshots/[…]-eu-proof-of-consent-18-Απριλ?ου-2024.pdf in /var/www/vhosts/[…]/wp-content/plugins/complianz-gdpr/assets/vendor/mpdf/mpdf/src/Mpdf.php:9644 CONTEXT: {"error":{"type":1,"file":"[…]","line":9644},"backtrace":["","#0 : Mpdf\Mpdf->Output(' : cmplz_document->generate_pdf('cookie-statemen…', 'eu', false, true, '
    \xCE\x91\xCF\x80\xCF\x8C\xCE\xB4\xCE\xB5\xCE…', '\xCE\xA1\xCF\x85\xCE\xB8…')","#2 : cmplz_proof_of_consent->generate_cookie_policy_snapshot()","#3 : WP_Hook->apply_filters(NULL, Array)","#4 : WP_Hook->do_action(Array)","#5 : do_action_ref_array('cmplz_every_day…', Array)","#6 {main}","thrown"]}

    I do not know if the Greek characters on the file create this issue.

    Let me know if this can be feed.

    Best Regards

    • This topic was modified 7 months, 2 weeks ago by Efs. Reason: Added the code inside a code block element
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support leonardoiub

    (@leonardotamion)

    Dear user,

    thanks for your message.

    The dev team was able to generate a Proof of Consent export just fine with Greek as the Site Language, so that should not be related. It seems more likely that the plugin/MPDF was unable to write a file to this location “/wp-content/uploads/complianz/snapshots/” on their server, e.g. due to insufficient folder permissions or some other restriction. You can follow this guide to solve the issue: https://complianz.io/folder-permissions/

    Thread Starter Efs

    (@stevendigital)

    Hello @leonardotamion

    After checking the permissions on the server, I can see that the folder of uploads is set to 755. Also, the folder of /complianz is set to 755. Although I could not locate the snapshots folder. Might the folder was never created.

    What do you suggest about that? Should I create manually the snapshots folder?

    Best Regards,

    Plugin Support leonardoiub

    (@leonardotamion)

    Hello there,

    that’s something you can try yes, so that the plugin can then try to write a file to that location.

    But it does seem to be something on your server which prevents files from being written there, so there’s not so much you can do from your end to change that unfortunately.

    Thread Starter Efs

    (@stevendigital)

    @leonardotamion

    Just to inform any user who came across this error. In my case, after I created the folder /snapshots and checked if the permissions were set properly on the folder, the error did not appear again.

    Might be something else in your case. I would also contact the hosting provided, if it’s a shared hosting, as there might be security implementation that you are not aware of, and block the folder creation, or change the folder permissions back to some more strict ones.

    Best Regar

    • This reply was modified 7 months ago by Efs. Reason: Fixed some typos
    Plugin Support leonardoiub

    (@leonardotamion)

    Hello,

    thanks a lot for your feedback, it will be helpful for sure.

    Have a nice day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error while creating the mpdf’ is closed to new replies.