• Hi we are getting the following error, when an update was available it worked and then again, what could this be?

    DOMPDF Exception: No block-level parent found. Not good.
    #0 /home/dotica/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(874): Dompdf\Positioner\Inline->position(Object(Dompdf\FrameDecorator\Inline))
    #1 /home/dotica/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/Inline.php(51): Dompdf\FrameDecorator\AbstractFrameDecorator->position()
    #2 /home/dotica/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\Inline->reflow(NULL)
    #3 /home/dotica/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameReflower/Page.php(141): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()
    #4 /home/dotica/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/FrameDecorator/AbstractFrameDecorator.php(895): Dompdf\FrameReflower\Page->reflow(NULL)
    #5 /home/dotica/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/vendor/dompdf/dompdf/src/Dompdf.php(847): Dompdf\FrameDecorator\AbstractFrameDecorator->reflow()
    #6 /home/dotica/public_html/wp-content/plugins/woocommerce-pdf-invoices-packing-slips/includes/class-wcpdf-pdf-maker.php(53): Dompdf\Dompdf->render()
    #7 /home/dotica/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()
    #8 /home/dotica/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()
    #9 /home/dotica/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(‘download’)
    #10 /home/dotica/public_html/wp-includes/class-wp-hook.php(287): WPO\WC\PDF_Invoices\Main->generate_pdf_ajax(”)
    #11 /home/dotica/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
    #12 /home/dotica/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #13 /home/dotica/public_html/wp-admin/admin-ajax.php(176): do_action(‘wp_ajax_generat…’)
    #14 {main}

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Contributor alexmigf

    (@alexmigf)

    Hello @anpsthemes

    That’s strange! Can you please share your plugin settings “Status > System requirements” please?

    Are you using any custom template?

    Can you please reinstall the plugin and let me know if it fixes?

    Thread Starter anpsthemes

    (@anpsthemes)

    Required Present
    DOMDocument extension Yes 20031129
    MBString extension Yes 7.3.24
    GD Yes 7.3.24
    Zlib To compress PDF documents 7.3.24
    opcache For better performances
    No. Recommended for better performances
    GMagick or IMagick Better with transparent PNG images
    No. Recommended for better performances
    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 the WordPress Memory Limit WordPress: 256M, PHP: 256M
    allow_url_fopen Allow remote stylesheets and images Yes

    Write Permissions
    Description Value Status
    Central temporary plugin folder /home/dotica/public_html/wp-content/uploads/wpo_wcpdf/ Writable
    Temporary attachments folder /home/dotica/public_html/wp-content/uploads/wpo_wcpdf/attachments/ Writable
    Temporary DOMPDF folder /home/dotica/public_html/wp-content/uploads/wpo_wcpdf/dompdf/ Writable
    DOMPDF fonts folder (needs to be writable for custom/remote fonts) /home/dotica/public_html/wp-content/uploads/wpo_wcpdf/fonts/ Writable

    Thread Starter anpsthemes

    (@anpsthemes)

    Hi, we are still having the same issue, any help?

    Plugin Contributor Ewout

    (@pomegranate)

    This error usually happens when faulty HTML is created in the PDF. It’s probably one of the following:

    • You’re using a custom template and there’s code in there that doesn’t generate proper HTML in all cases – try the official “Simple” template to see if that resolves the issue
    • You’re using action hooks to output extra data in the document – try disabling the action hooks temporarily
    • A 3rd party plugin is writing extra data to the document output

    If you can’t find anything with the above 3 options, could you add &output=html to the URL of the PDF that shows you this error, then copy paste the source of that output (right click > view source) to pastebin.com and share the link to that paste? This will let us inspect the source to see where the malformatted part is. You can remove any names and addresses, but please leave the HTML structure in tact.

    Let us know what you find!

    Thread Starter anpsthemes

    (@anpsthemes)

    Hi, in the end we actually activated twenty twenty and still the same error. We also disabled all plugins and still.

    https://pastebin.com/666ivUB3

    our initial diagnosis somehow indicates that it is indeed something in the plugin.
    But we could be wrong 🙂

    Plugin Contributor Ewout

    (@pomegranate)

    Twenty twenty is your site theme, the PDF invoice template is something separate.

    I don’t see anything strange in the source. Is it possible that you have the option “Use alternative HTML5 parser to parse HTML” activated on the Status tab of the PDF invoice settings?

    ps. assuming you are using the latest version of WooCommerce PDF Invoices & Packing Slips, of course (version 2.7.3)

    Thread Starter anpsthemes

    (@anpsthemes)

    we tried it off and on.

    The issue is that some time ago, it also did not work, then we updated your plugin and it started to work again, in a while the error returned. We are kind of confused and really do not want to direct the entire plugin as this would take us quite some time.

    Plugin Contributor Ewout

    (@pomegranate)

    The alternative HTML5 parser should most likely be deactivated. I would actually expect the error to be different based on whether that option is turned on or off.

    Does it happen to all orders?

    Thread Starter anpsthemes

    (@anpsthemes)

    and yes we use the latest version 2.7.3

    Thread Starter anpsthemes

    (@anpsthemes)

    yes

    Plugin Contributor Ewout

    (@pomegranate)

    Ok, I think it’s going to be difficult to track this down… There are a lot of variables (mostly in your specific PHP + extensions setup).
    One last simple thing you could try: can you temporarily remove the header image and enable test mode to see if that lets you generate the pdf?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Eror – not showing invoices’ is closed to new replies.