Error trying to generate document: Call to a member function get_cellmap() on nu
-
I am getting this error showing, help!
Error trying to generate document: Call to a member function get_cellmap() on null
- This topic was modified 1 year, 1 month ago by ruthbbb.
-
Fatal error: Call to a member function get_cellmap() on null /nas/content/live/senkaflorist/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/TableCell.php (40) #0 /nas/content/live/senkaflorist/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(913): Dompdf\FrameReflower\TableCell->reflow(Object(Dompdf\FrameDecorator\Block)) #1 /nas/content/live/senkaflorist/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/Block.php(865): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow(Object(Dompdf\FrameDecorator\Block)) #2 /nas/content/live/senkaflorist/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(913): Dompdf\FrameReflower\Block->reflow(NULL) #3 /nas/content/live/senkaflorist/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/Page.php(142): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow() #4 /nas/content/live/senkaflorist/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(913): Dompdf\FrameReflower\Page->reflow(NULL) #5 /nas/content/live/senkaflorist/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.php(765): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow() #6 /nas/content/live/senkaflorist/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-pdf-maker.php(54): Dompdf\Dompdf->render() #7 /nas/content/live/senkaflorist/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(797): WPO\WC\PDF_Invoices\PDF_Maker->output() #8 /nas/content/live/senkaflorist/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(862): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf() #9 /nas/content/live/senkaflorist/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(403): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf('inline') #10 /nas/content/live/senkaflorist/wp-includes/class-wp-hook.php(308): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax('') #11 /nas/content/live/senkaflorist/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array) #12 /nas/content/live/senkaflorist/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #13 /nas/content/live/senkaflorist/wp-admin/admin-ajax.php(188): do_action('wp_ajax_generat...') #14 {main}
Hi @ruthbbb,
We have seen some plugins that try to display those custom fields on the PDF invoice, but using malformed HTML code that produce this kind of issues.
Are you by any chance using a plugin to add custom fields to your checkout, products or the order itself? If so, which one?
We do yes, WooCommerce Checkout Fields & Fees
It has been working fine with it for a couple of years now with no issue.
Thanks for providing more details, @ruthbbb.
Could you please send me the HTML output source to see how the code is being generated? To do it, just add
&output=html
at the end of your invoice/packing slip URL, then Right-click > Save as…, and save it as HTML.You can use https://filebin.net/ to upload the file and share the bin URL here (it will be automatically deleted after 6 days)
Hi @ruthbbb,
It seems that the HTML invoice did not load. Could you please try again? You have to see the HTML version of the invoice, not this notice:
“You do not have sufficient permissions to access this page.”Hi @yordansoares I don’t see a different way, when I add that to the end I see what the PDF should look like but as HTML, but when I save it always shows the permissions error?
It is likely that you are trying to save a PDF invoice that was loaded in your browser, but you were no longer logged in as an admin.
Could you please try to refresh the HTML invoice to check if it is loading correctly, and try to save it again?
I can confirm I am logged in and can see the HTML on the page, but still get the error in the download when i choose SAVE AS > Webpage, HTML Only
Hi @ruthbbb,
Please write us at support@wpovernight.com, so we can explore further and try to fix this issue. Please mention this topic in your message.
I will be looking for your reply there!
- The topic ‘Error trying to generate document: Call to a member function get_cellmap() on nu’ is closed to new replies.