• Resolved lordzebu

    (@lordzebu)


    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 data

    The 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

    • This topic was modified 7 years, 10 months ago by lordzebu.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hi! Question: are you getting this error only in the checkout or also in the backend?
    Please post the full HTML output you’re getting from both 1.6.4 and 1.6.5 and double check that the output from 1.6.5 is actually producing this fatal error (it’s possible that this error is only produced during checkout and not in the backend).

    Don’t post the output here but use pastebin: https://pastebin.com/

    Thread Starter lordzebu

    (@lordzebu)

    Nevermind. It seems that a WP_DEBUG error notice of another plugin messed up the checkout process and therefore couldn’t parse the json in the end.

    Plugin Contributor Ewout

    (@pomegranate)

    Thanks for reporting back! Does fixing the error from that plugin also fix the error in the PDF?

    Thread Starter lordzebu

    (@lordzebu)

    That one is not fixed yet. I’ll post here when I know more.

    Thread Starter lordzebu

    (@lordzebu)

    The error in the other plugin is fixed and resolves the json/pdf error as well.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error leading to malformed json on checkout’ is closed to new replies.