• Resolved jacobvdl

    (@jacobvdl)


    The plugin has stopped creating PDF invoices since a couple of weeks.When clicking the invoice symbol on the order page, I get a non formatted page of the invoice with a message underneath:

    Fatal error: Call to a member function get_cellmap() on null

    #0 /www/bamnorden_365/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\TableCell->reflow(NULL)
    #1 /www/bamnorden_365/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/TableRow.php(52): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()
    #2 /www/bamnorden_365/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\TableRow->reflow(Object(Dompdf\FrameDecorator\Block))
    #3 /www/bamnorden_365/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/Block.php(845): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow(Object(Dompdf\FrameDecorator\Block))
    #4 /www/bamnorden_365/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\Block->reflow(NULL)
    #5 /www/bamnorden_365/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/Page.php(141): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()
    #6 /www/bamnorden_365/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\Page->reflow(NULL)
    #7 /www/bamnorden_365/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.php(838): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()
    #8 /www/bamnorden_365/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-pdf-maker.php(54): Dompdf\Dompdf->render()
    #9 /www/bamnorden_365/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(712): WPO\WC\PDF_Invoices\PDF_Maker->output()
    #10 /www/bamnorden_365/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(747): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
    #11 /www/bamnorden_365/public/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(360): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘download’)
    #12 /www/bamnorden_365/public/wp-includes/class-wp-hook.php(287): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax(”)
    #13 /www/bamnorden_365/public/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #14 /www/bamnorden_365/public/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #15 /www/bamnorden_365/public/wp-admin/admin-ajax.php(184): do_action(‘wp_ajax_generat…’)
    #16 {main}

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Darren Peyou

    (@dpeyou)

    Hi @jacobvdl,

    I’m sorry that’s happening, let’s get to troubleshooting. ??

    The get_cellmap error indicates there’s tabular data which is printed outside of a table or if non tabular data is printed inside a table. Normally this doesn’t happen in the plugin itself, so I think there are two possible causes here:

    – Did you make any changes to the PDF template or did you add any action hooks to add extra information to the PDF? If so, could you share these and also confirm whether reverting/disabling these customizations fixes the issue?

    – Are you using any third party plugins that might add data to your orders? I understand the YITH composite products was one of such plugins.

    Thread Starter jacobvdl

    (@jacobvdl)

    Thanks for reaching out @dpeyou. I did not change the template, nor I’m I using a third party plugin that adds data to my orders. Hope you’re able to help!

    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @jacobvdl

    Are you able to disable all other plugins and keep only WooCommerce and our PDF plugin to see if fixes the issue?

    Let us know.

    Thread Starter jacobvdl

    (@jacobvdl)

    @alexmigf I disabled the plugin “Badge Designer Lite For Woocommerce” and now the PDF invoice works! Guess I have to get in touch with the developer of that plugin. Thanks again!

    • This reply was modified 4 years ago by jacobvdl.
    Plugin Contributor alexmigf

    (@alexmigf)

    You’re welcome ??

    Have a nice day!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Fatal error: Call to a member function get_cellmap() on null’ is closed to new replies.