• Resolved kankadev

    (@kankadev)


    Since we changed our server to plesk we have a problem with generated PDFs. We are missing the fonts in the PDFs and we can see related warnings in the debug.log:

    [18-Feb-2023 12:14:41 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/usr/local/www/apache24/noexec/xy.com/wp-content/uploads/wpo_wcpdf/fonts/OpenSans-Normal.ttf) is not within the allowed path(s): (/var/www/vhosts/xy.com/httpdocs/xy.com/:/tmp/) in /var/www/vhosts/xy.com/httpdocs/xy.com/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php on line 3576
    [18-Feb-2023 12:14:41 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/usr/local/www/apache24/noexec/xy.com/wp-content/uploads/wpo_wcpdf/fonts/OpenSans-Normal.TTF) is not within the allowed path(s): (/var/www/vhosts/xy.com/httpdocs/xy.com/:/tmp/) in /var/www/vhosts/xy.com/httpdocs/xy.com/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php on line 3578
    [18-Feb-2023 12:14:41 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/usr/local/www/apache24/noexec/xy.com/wp-content/uploads/wpo_wcpdf/fonts/OpenSans-Normal.pfb) is not within the allowed path(s): (/var/www/vhosts/xy.com/httpdocs/xy.com/:/tmp/) in /var/www/vhosts/xy.com/httpdocs/xy.com/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php on line 3580
    [18-Feb-2023 12:14:41 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/usr/local/www/apache24/noexec/xy.com/wp-content/uploads/wpo_wcpdf/fonts/OpenSans-Normal.PFB) is not within the allowed path(s): (/var/www/vhosts/xy.com/httpdocs/xy.com/:/tmp/) in /var/www/vhosts/xy.com/httpdocs/xy.com/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php on line 3582
    [18-Feb-2023 12:14:41 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/usr/local/www/apache24/noexec/xy.com/wp-content/uploads/wpo_wcpdf/fonts/OpenSans-Bold.ttf) is not within the allowed path(s): (/var/www/vhosts/xy.com/httpdocs/xy.com/:/tmp/) in /var/www/vhosts/xy.com/httpdocs/xy.com/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php on line 3576
    [18-Feb-2023 12:14:41 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/usr/local/www/apache24/noexec/xy.com/wp-content/uploads/wpo_wcpdf/fonts/OpenSans-Bold.TTF) is not within the allowed path(s): (/var/www/vhosts/xy.com/httpdocs/xy.com/:/tmp/) in /var/www/vhosts/xy.com/httpdocs/xy.com/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php on line 3578
    [18-Feb-2023 12:14:41 ] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/usr/local/www/apache24/noexec/xy.com/wp-content/uploads/wpo_wcpdf/fonts/OpenSans-Bold.pfb) is not within the allowed path(s): (/var/www/vhosts/xy.com/httpdocs/xy.com/:/tmp/) in /var/www/vhosts/xy.com/httpdocs/xy.com/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php on line 3580
    [18-Feb-2023 12:14:41 UTC] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/usr/local/www/apache24/noexec/xy.com/wp-content/uploads/wpo_wcpdf/fonts/OpenSans-Bold.PFB) is not within the allowed path(s): (/var/www/vhosts/xy.com/httpdocs/xy.com/:/tmp/) in /var/www/vhosts/xy.com/httpdocs/xy.com/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php on line 3582

    We also tried to fix it on our server by changing the open_basedir value in Plesk without success. But is it possible to update the plugin? Because there are also environments without open_basedir.

    The web root is in /httpdocs/xy.com

    • This topic was modified 2 years, 1 month ago by kankadev.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @kankadev,

    Please go to?WooCommerce > PDF Invoices > Status tab, and click on the Reinstall fonts?button. Then, try to open an invoice and check if it looks good.

    Let us know whether it worked or not. If the last, I’ll ask one of my more experienced colleagues to take a look at this issue.

    Thread Starter kankadev

    (@kankadev)

    Oh, so easy. It’s working again.

    We misunderstood the warning. Thank you.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I’m glad to hear that it worked, @kankadev!

    If you don’t mind and have the time, do you think you could leave us a review?

    Thanks in advance and all the best with your store!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PDFs without fonts / open_basedir warning’ is closed to new replies.