• Resolved mensus

    (@mensus)


    I get this error when making a PDF. I have 2 other almost identical websites that use this plugin, without any problem. It only occurs on this website.

    I’m using the Simple template.
    I tried to deactivate the Add-ons plugin I use, doesn’t work.
    Reinstalled the plugin.
    Upgraded the PHP Memory Limit.

    Pretty helpless at the moment

    Fatal error: Call to a member function get_cellmap() on null
    #0 /home/kwbheating/domains/kwbheating.nl/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\TableCell->reflow(NULL)
    #1 /home/kwbheating/domains/kwbheating.nl/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/TableRow.php(52): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()
    #2 /home/kwbheating/domains/kwbheating.nl/public_html/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 /home/kwbheating/domains/kwbheating.nl/public_html/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 /home/kwbheating/domains/kwbheating.nl/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\Block->reflow(NULL)
    #5 /home/kwbheating/domains/kwbheating.nl/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/Page.php(141): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()
    #6 /home/kwbheating/domains/kwbheating.nl/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\Page->reflow(NULL)
    #7 /home/kwbheating/domains/kwbheating.nl/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.php(847): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()
    #8 /home/kwbheating/domains/kwbheating.nl/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-pdf-maker.php(53): Dompdf\Dompdf->render()
    #9 /home/kwbheating/domains/kwbheating.nl/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(712): WPO\WC\PDF_Invoices\PDF_Maker->output()
    #10 /home/kwbheating/domains/kwbheating.nl/public_html/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 /home/kwbheating/domains/kwbheating.nl/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(358): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf('inline')
    #12 /home/kwbheating/domains/kwbheating.nl/public_html/wp-includes/class-wp-hook.php(287): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax('')
    #13 /home/kwbheating/domains/kwbheating.nl/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array)
    #14 /home/kwbheating/domains/kwbheating.nl/public_html/wp-includes/plugin.php(484): WP_Hook->do_action(Array)
    #15 /home/kwbheating/domains/kwbheating.nl/public_html/wp-admin/admin-ajax.php(184): do_action('wp_ajax_generat...')
    #16 {main}
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hello @mensus

    Are you using a custom template, a code snippet or a third party plugin that injects code that modifies the default Simple template?

    Thread Starter mensus

    (@mensus)

    As far as I know, I am not. I use the Simple template and as mentioned, the plugin works on my other sides which are mostly duplicates of this one.

    Thread Starter mensus

    (@mensus)

    I figured it out, by deactivating all plugins.
    It was somehow conflicting thanks to the “Badge Designer Lite For Woocommerce”.
    Deleted that plugin and it now works.

    Not sure why it’s conflicting. But hey, it works.

    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @mensus

    Good to know. Perhaps it was injecting some data using a PDF template hook or from the product meta.

    Have a nice day!

    Plugin Contributor Ewout

    (@pomegranate)

    Glad to hear you found the issue. We have actually reported this very issue to the Badge Designer plugin developers in their forums 6 months ago, and sent them a heads up 2 months ago… Unfortunately they haven’t followed up on this ??
    https://www.ads-software.com/support/topic/breaks-output-buffer/

    This is not an error that we can resolve from our end, so if you really need that plugin you may want to open a new thread in their forum and link to the above one, which basically contains the whole solution ??

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.