Exception: unable to create temporary file
-
Hi! I didn’t find any similar threads here.
It worked before correctly – but now I’m getting an error on my clients page if I click on the create/view pdf button in the WP backend called “Exception: unable to create temporary file `/mnt/tmp/magick-393363625eib7ptF-gc’: Permission denied @ error/url.c/ReadURLImage/162”
Content of the error is:
/var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php (5709) #0 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php(5709): Imagick->__construct('file:///var/www...') #1 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/lib/Cpdf.php(5845): Dompdf\Cpdf->addImagePngAlpha('file:///var/www...', 57.4429133858, 756.543543307, 192.75, 56.25, 6) #2 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Adapter/CPDF.php(669): Dompdf\Cpdf->addPngFromFile('file:///var/www...', 57.4429133858, 756.543543307, 192.75, 56.25) #3 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer/Image.php(65): Dompdf\Adapter\CPDF->image('file:///var/www...', 57.4429133858, 29.0964566929, 192.75, 56.25, 'normal') #4 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(289): Dompdf\Renderer\Image->render(Object(Dompdf\FrameDecorator\Image)) #5 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(128): Dompdf\Renderer->_render_frame('image', Object(Dompdf\FrameDecorator\Image)) #6 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(195): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\Image)) #7 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(195): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\TableCell)) #8 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(195): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\TableRow)) #9 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(195): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\TableRowGroup)) #10 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Renderer.php(195): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\Table)) #11 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/Page.php(149): Dompdf\Renderer->render(Object(Dompdf\FrameDecorator\Block)) #12 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(913): Dompdf\FrameReflower\Page->reflow(NULL) #13 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.php(765): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow() #14 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-pdf-maker.php(52): Dompdf\Dompdf->render() #15 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(779): WPO\WC\PDF_Invoices\PDF_Maker->output() #16 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(841): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf() #17 /var/www/web25366488/html/gueteverein/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(392): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf('inline') #18 /var/www/web25366488/html/gueteverein/wp-includes/class-wp-hook.php(307): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax('') #19 /var/www/web25366488/html/gueteverein/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array) #20 /var/www/web25366488/html/gueteverein/wp-includes/plugin.php(476): WP_Hook->do_action(Array) #21 /var/www/web25366488/html/gueteverein/wp-admin/admin-ajax.php(187): do_action('wp_ajax_generat...') #22 {main}
I’ve already tried:
– checking system configuration (all green except opcache (yellow))
– checking write permissions (all green)
– disabling and enabling the plugin again
– install fonts
– delete temporary files
– delete legacy options
– restart startup assitance
– asking my hosterMy hoster writes that the plugin uses a path which is not existant/writable (/mnt/tmp/magick-393363625eib7ptF-gc) and I should change this path.
Do you have a solution or a workaround for me? My client needs the old invoices urgently because he must send them to his tax accountant.
Thank you very much.
EDIT: Using html mode and pdf printer would be possible but the invoices look screwed are divided into 1,5 pages so it isn’t possible to print whole months.
- The topic ‘Exception: unable to create temporary file’ is closed to new replies.