PDFs without fonts / open_basedir warning
-
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
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘PDFs without fonts / open_basedir warning’ is closed to new replies.