• Hi,

    I updated my php-Version to 7.1 (from 5.6) and now I can not create the pdfs.
    The pdf are created and attached properly for the emails but if I try to open them from the orders in woocommerce there are shown a lot of funny symbols.

    If I enable debug mode I get this information:
    Warning: A non-numeric value encountered in /hp/ap/aa/ov/www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/table_cell_frame_reflower.cls.php on line 103

    Fatal error: Uncaught Error: Call to undefined method DOMText::getAttribute() in /hp/ap/aa/ov/www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/cellmap.cls.php:437 Stack trace: #0 /hp/ap/aa/ov/www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/cellmap.cls.php(399): Cellmap->add_frame(Object(Text_Frame_Decorator)) #1 /hp/ap/aa/ov/www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/cellmap.cls.php(399): Cellmap->add_frame(Object(Table_Row_Group_Frame_Decorator)) #2 /hp/ap/aa/ov/www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/table_frame_reflower.cls.php(520): Cellmap->add_frame(Object(Table_Frame_Decorator)) #3 /hp/ap/aa/ov/www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/frame_decorator.cls.php(715): Table_Frame_Reflower->get_min_max_width() #4 /hp/ap/aa/ov/www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/frame_reflower.cls.php(193): Frame in /hp/ap/aa/ov/www/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/lib/dompdf/include/cellmap.cls.php on line 437

    Could you help me with that?
    Marie

Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Marie,
    I don’t think this is primarily a PHP issue, although I’m not 100% sure. Especially since it works as an email attachment, it sounds like this is a plugin conflict (perhaps another plugin is not compatible with PHP7.1?)

    Can you output to HTML to see if that shows you any errors? The Fatal error: Uncaught Error: Call to undefined method DOMText::getAttribute() error points to ill formatted HTML, which is usually the result of premature output which could be PHP errors or something else.

    Let me know what you find!

Viewing 1 replies (of 1 total)

The topic ‘pdf not shown properly’ is closed to new replies.