Error leading to malformed json on checkout
-
I get the following error in version 1.6.5:
Fatal error: Uncaught Error: Call to undefined method DOMText::getAttribute() in \wp-content\plugins\woocommerce-pdf-invoices-packing-slips\lib\dompdf\include\cellmap.cls.php:437
Stack trace:
#0 \wp-content\plugins\woocommerce-pdf-invoices-packing-slips\lib\dompdf\include\cellmap.cls.php(399): Cellmap->add_frame(Object(Text_Frame_Decorator))
#1 \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 \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 \wp-content\plugins\woocommerce-pdf-invoices-packing-slips\lib\dompdf\include\frame_decorator.cls.php(715): Table_Frame_Reflower->get_min_max_width()
#4 \wp-content\plugins\woocommerce-pdf-invoices-packing-slips\lib\dompdf\include\cellmap.cls.php</b> on line <b>437</b>Error displayed on checkout site:
SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON dataThe order is being registered in the backend. The error does not occur in the previous version of the plugin (1.6.4). The standard template is being used. I checked the html output in version 1.6.4 and 1.6.5, they are the same.
woocommerce version: 3.0.3
- The topic ‘Error leading to malformed json on checkout’ is closed to new replies.