• Hi guys,
    suddently few days ago the plugin stopped generating invoices for new completed orders.

    I’v tryed all options you suggest in the pinned “Read this first!” post in the forum to solve this:

    ——————

    · Go to the Status panel of the plugin settings. Do you see any orange or red flags? If so, try to solve them or post a new thread in the forum (do not reply to this post).

    EVERYTHING IS GREEN HERE.

    Do you get this problem with the default PDF template or a custom template? Try reverting to the default Simple template if this is an error with a custom template. If there’s an error in your template code, this could cause the pdf engine to crash.

    I USE DEFAULT PDF TEMPLATE

    A common issue is related to memory available, make sure you have at least 64M, preferably 128M or more (this will also show in the status panel)

    I HAVE ENOUGH MEMORY (WordPress: 768M, PHP: 768M)

    If you’re getting a blank screen when trying to create a PDF, try enabling the ‘Enable debug output‘ setting on the status panel (not recommended on a live site!). This will give you a more descriptive error. Open a new thread in this forum if you don’t know what to do with this error.

    IN THE WOOCOMMERCE ORDERS PAGE, WHEN I SELECT ANY LATEST ORDER AND GO TO ACTIONS > PDF INVOICE I GET A BLANK SCREEN WITH THE ERROR:
    “The ‘invoice’ document type could not be generated for the selected order(s).”

    IN THE LOG FOLDER I SEE THREE FOLDERS BUT I DON’T UNDERSTAND HOW TO SEE THE DEBUG LOG.HTML (DOMPDF FOLDER) SHOWS THIS TEXT ONLY:

    “216 79872.00 KB 161.00 ms OFF“

    ———————-

    Also i have tried to deactivate ALL plugins from my site except the invoice pdf plugin and problem persists. I also tried to deactivate and uninstall/install the plugin but problem persists.

    Also note WordPress, themes and plugins are 100% updated and I’m using php version 8.3.

    Hope you can help me to solve this.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Mo

    (@mohamadntr)

    Hi @merock,

    Could you check the WooCommerce logs to see if there are errors with the wpo-wcpdf or fatal-errors prefix? If so, please share the logs with us. You’ll find the logs under WooCommerce > Status > Logs.

    Thread Starter merock

    (@merock)

    Hi Mohamad,

    In wpo-wcpdf I can see this errors:

    2025-10-03T07:46:25+00:00 Crítico Couldn’t get the document object for email attachment. document type: invoice, output format: pdf, email order ID: #6763
    2025-10-03T07:54:50+00:00 Crítico Couldn’t get the document object for email attachment. document type: invoice, output format: pdf, email order ID: #6764
    2025-10-03T08:12:45+00:00 Crítico Couldn’t get the document object for email attachment. document type: invoice, output format: pdf, email order ID: #6765
    2025-10-03T08:17:51+00:00 Crítico Couldn’t get the document object for email attachment. document type: invoice, output format: pdf, email order ID: #6766
    2025-10-03T08:30:15+00:00 Crítico Couldn’t get the document object for email attachment. document type: invoice, output format: pdf, email order ID: #6767

    In fatal-errors the last error i can see is and old error from 2024.. so nothing here.

    😔

    Plugin Contributor Mo

    (@mohamadntr)

    Seems strange!

    Could you share a screenshot of your System Configuration and Write Permissions set up under WooCommerce > PDF Invoices > Advanced > Status tab.

    Also, one screenshot from the Invoice settings under the Documents tab?

    Thread Starter merock

    (@merock)

    Plugin Contributor Mo

    (@mohamadntr)

    Hi @merock,

    Can you change the PHP version on your server to see if it makes any difference?

    Thread Starter merock

    (@merock)

    Hello Mohamad,
    Upgraded from 8.3 to 8.4 and problem persists…

    I’v got another website working with php8.3 and everything is fine with the invoice generation.

    Plugin Contributor Mo

    (@mohamadntr)

    Hi @merock,

    Could you please email us at support@wponvernight.com so we can investigate this further?

    Thread Starter merock

    (@merock)

    Seems suddenly everything works fine again!
    If the problems appears again i let you know.

    thank you for your help.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘The ‘invoice’ document type could not be generated for the selected order(s).’ is closed to new replies.