• Resolved mmkurhade

    (@mmkurhade)


    Hi,

    I have created a custom invoice template as per my needs. When I see it as HTML, it shows the correct version but when I un-tick HTML output and try to download it as PDF, it shows “Fatal error: Call to a member function get_cellmap() on null”. It also shows many errors for packaging slips even if it’s disabled.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter mmkurhade

    (@mmkurhade)

    I get these errors

    
    #0 /home/mydomain/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\TableCell->reflow()
    #1 /home/mydomain/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/Block.php(845): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()
    #2 /home/mydomain/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\Block->reflow()
    #3 /home/mydomain/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/Page.php(141): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()
    #4 /home/mydomain/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\Page->reflow()
    #5 /home/mydomain/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.php(838): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()
    #6 /home/mydomain/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-pdf-maker.php(54): Dompdf\Dompdf->render()
    #7 /home/mydomain/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(742): WPO\WC\PDF_Invoices\PDF_Maker->output()
    #8 /home/mydomain/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(777): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
    #9 /home/mydomain/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(373): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf()
    #10 /home/mydomain/public_html/wp-includes/class-wp-hook.php(303): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax()
    #11 /home/mydomain/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #12 /home/mydomain/public_html/wp-includes/plugin.php(470): WP_Hook->do_action()
    #13 /home/mydomain/public_html/wp-admin/admin-ajax.php(187): do_action()
    #14 {main}
    
    • This reply was modified 3 years, 2 months ago by mmkurhade.
    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @mmkurhade

    Are you using a modified PDF template (custom template) or do you have a third party plugin that injects data to the PDF?

    Thread Starter mmkurhade

    (@mmkurhade)

    I have modified the simple (existing/default) template. I ain’t using any third party plugin.

    Plugin Contributor alexmigf

    (@alexmigf)

    Hi @mmkurhade

    The error should be in your modifications, can you share your template by email to support@wpovernight.com? I will take a look at it.

    Thread Starter mmkurhade

    (@mmkurhade)

    Thanks. I made some changes in it and errors are gone now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error While Generating PDF’ is closed to new replies.