• Resolved diogorcamargo

    (@diogorcamargo)


    Hi!
    I’m having a issue trying to create an invoice.
    Most of orders are ok when I try to create invoice, but other shows that error:

    Fatal error: Call to a member function get_cellmap() on null
    #0 /var/app/current/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\TableCell->reflow(NULL)
    #1 /var/app/current/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/TableRow.php(52): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()
    #2 /var/app/current/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 /var/app/current/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 /var/app/current/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\Block->reflow(NULL)
    #5 /var/app/current/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/Page.php(141): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()
    #6 /var/app/current/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\Page->reflow(NULL)
    #7 /var/app/current/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.php(847): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()
    #8 /var/app/current/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-pdf-maker.php(53): Dompdf\Dompdf->render()
    #9 /var/app/current/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(615): WPO\WC\PDF_Invoices\PDF_Maker->output()
    #10 /var/app/current/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(650): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
    #11 /var/app/current/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(333): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘download’)
    #12 /var/app/current/wp-includes/class-wp-hook.php(286): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax(”)
    #13 /var/app/current/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #14 /var/app/current/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #15 /var/app/current/wp-admin/admin-ajax.php(173): do_action(‘wp_ajax_generat…’)
    #16 {main}

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    I’m sorry to hear that. This can happen if tabular data 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:

    1) 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?

    2) Are you using any third party plugins that might add data to these specific orders? Do these orders have something in common? (delivery, payment method, ordered products, etc.).

    Let us know and we’ll do our best to help!

    Thread Starter diogorcamargo

    (@diogorcamargo)

    Hello!
    I’m using default template PDF, didn’t make any change.
    We are using that YITH Composite Products, might be the problem?

    That specific order has an composite product so…

    Thanks in advance!!

    Plugin Contributor Ewout

    (@pomegranate)

    Yes, it’s possible that causes it. If you can create a test order with a composite product and another product, then try to create a PDF for this order (1) , remove the composite product and try to create the PDF again (2), you should be able to determine if this is indeed the cause.

    Hello,

    Thank you for this nice plugin.

    I got a problem since last update of plugin and WordPress, the site health check new feature gives me error and it causes bugs in generating PDF invoices on some orders and not some other ones…

    I found that the plugin Woocommerce Extra Product Option by Themecomplete is also involved in a way i don’t fully understand…

    When i disable your plugin i get less error, if i disable only Woo extra product options plugin i get less error too, if i disable both i don’t have any errors…

    My shop really need this options plugin so hope to find a way to make both plugins work together.

    I’ll post errors below.

    Thank you for your help ! ??

    Fatal error: Call to a member function is_taxable() on boolean
    #0 /var/www/clients/client0/web2/web/wp-includes/class-wp-hook.php(288): THEMECOMPLETE_EPO_Order->woocommerce_order_get_items(Array, Object(WC_Order))
    #1 /var/www/clients/client0/web2/web/wp-includes/plugin.php(208): WP_Hook->apply_filters(Array, Array)
    #2 /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(769): apply_filters(‘woocommerce_ord…’, Array, Object(WC_Order), Array)
    #3 /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document-methods.php(497): WC_Abstract_Order->get_items()
    #4 /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/templates/Simple/invoice.php(94): WPO\WC\PDF_Invoices\Documents\Order_Document_Methods->get_order_items()
    #5 /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(728): include(‘/var/www/client…’)
    #6 /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(632): WPO\WC\PDF_Invoices\Documents\Order_Document->render_template(‘/var/www/client…’, Array)
    #7 /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(614): WPO\WC\PDF_Invoices\Documents\Order_Document->get_html()
    #8 /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/documents/abstract-wcpdf-order-document.php(650): WPO\WC\PDF_Invoices\Documents\Order_Document->get_pdf()
    #9 /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-main.php(332): WPO\WC\PDF_Invoices\Documents\Order_Document->output_pdf(‘inline’)
    #10 /var/www/clients/client0/web2/web/wp-includes/class-wp-hook.php(286): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax(”)
    #11 /var/www/clients/client0/web2/web/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #12 /var/www/clients/client0/web2/web/wp-includes/plugin.php(465): WP_Hook->do_action(Array)
    #13 /var/www/clients/client0/web2/web/wp-admin/admin-ajax.php(173): do_action(‘wp_ajax_generat…’)
    #14 {main}

    Fatal error: Uncaught Error: Call to a member function is_taxable() on boolean in /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce-tm-extra-product-options/include/classes/class-tm-epo-order.php:426 Stack trace: #0 /var/www/clients/client0/web2/web/wp-includes/class-wp-hook.php(288): THEMECOMPLETE_EPO_Order->woocommerce_order_get_items(Array, Object(WC_Order)) #1 /var/www/clients/client0/web2/web/wp-includes/plugin.php(208): WP_Hook->apply_filters(Array, Array) #2 /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(769): apply_filters(‘woocommerce_ord…’, Array, Object(WC_Order), Array) #3 /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php(13): WC_Abstract_Order->get_items(Array) #4 /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php(41): include(‘/var/www/client…’) #5 /var/www/clients/client0/web2/web/wp-admin/i in /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce-tm-extra-product-options/include/classes/class-tm-epo-order.php on line 426
    Le site rencontre des difficultés techniques. Veuillez relever la bo?te de messagerie du compte administrateur du site pour obtenir des instructions.

    System Configuration
    Required Present
    DOMDocument extension Yes 20031129
    MBString extension Yes 7.2.9
    GD Yes 7.2.9
    Zlib To compress PDF documents 7.2.9
    opcache For better performances Zend OPCache 7.2.9
    GMagick or IMagick Better with transparent PNG images IMagick 3.4.3
    glob() Required to detect custom templates and to clear the temp folder periodically Yes
    WP Memory Limit Recommended: 128MB (more for plugin-heavy setups)
    See: Increasing memory allocated to PHP WordPress: 4096M, PHP: 4096M
    allow_url_fopen Allow remote stylesheets and images Yes

    Write Permissions
    Description Value Status
    Central temporary plugin folder /var/www/clients/client0/web2/web/wp-content/uploads/wpo_wcpdf/ Writable
    Temporary attachments folder /var/www/clients/client0/web2/web/wp-content/uploads/wpo_wcpdf/attachments/ Writable
    Temporary DOMPDF folder /var/www/clients/client0/web2/web/wp-content/uploads/wpo_wcpdf/dompdf/ Writable
    DOMPDF fonts folder (needs to be writable for custom/remote fonts) /var/www/clients/client0/web2/web/wp-content/uploads/wpo_wcpdf/fonts/ Writable

    Détails de l’erreur
    ======================
    Une erreur de type E_ERROR a été causée dans la ligne 426 du fichier /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce-tm-extra-product-options/include/classes/class-tm-epo-order.php. Message d’erreur : Uncaught Error: Call to a member function is_taxable() on boolean in /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce-tm-extra-product-options/include/classes/class-tm-epo-order.php:426
    Stack trace:
    #0 /var/www/clients/client0/web2/web/wp-includes/class-wp-hook.php(288): THEMECOMPLETE_EPO_Order->woocommerce_order_get_items(Array, Object(WC_Order))
    #1 /var/www/clients/client0/web2/web/wp-includes/plugin.php(208): WP_Hook->apply_filters(Array, Array)
    #2 /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(769): apply_filters(‘woocommerce_ord…’, Array, Object(WC_Order), Array)
    #3 /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce/includes/admin/meta-boxes/views/html-order-items.php(13): WC_Abstract_Order->get_items(Array)
    #4 /var/www/clients/client0/web2/web/wp-content/plugins/woocommerce/includes/admin/meta-boxes/class-wc-meta-box-order-items.php(41): include(‘/var/www/client…’)
    #5 /var/www/clients/client0/web2/web/wp-admin/i

    Plugin Contributor Ewout

    (@pomegranate)

    Hi! This is a different error than the one from this thread. Your is caused by Woocommerce Extra Product Options, not the PDF invoice plugin. You’re seeing this error with the PDF invoice plugin enabled because when you generate a PDF, it calls those functions. It’s also possible that the error is invisible when you turn off PDF invoices if you have enabled the “enable debug output” in the PDF invoice settings.

    Please contact Themecomplete support with this information and they should be able to help resolve this issue.

    Hello,

    Thank you for these informations, i’ll contact them.

    Have a nice day.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Fatal Error trying to create an invoice’ is closed to new replies.