• Resolved lugr66

    (@lugr66)


    Hi there
    WooCommerce PDF Invoices that are being generated are blank with no text.
    However, when attached to an email the document is fine. I can see the invoice text when adding “&output=html” to the URL.
    I deleted the plugin and reinstalled it with no effect.
    Since I need customers to be able to download the invoice from their “my account page” the invoice should be working properly.
    What do I have to do in order to solve this?

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

    (@dpeyou)

    Hello @lugr66,

    Could you please add &debug=true to the PDF URL or temporarily enable Debug output in the Status tab of the PDF invoice settings and copy/paste the error you’re getting here?

    My initial guess is that there might be some issue with the PHP version configuration. In such a case, I’d recommend contacting your host to ask if they can check for the correct DOM extensions for the PHP version that runs on your site. ??

    Thread Starter lugr66

    (@lugr66)

    Hi
    I enabled the debug output and I came across this error showing up in the preview of the invoice:
    200: parsererror

    Okay, since I host the website myself, this would be me who needs to check for the correct DOM extensions (whatever that is). Do you have a documentation or anything similar?

    Plugin Contributor Darren Peyou

    (@dpeyou)

    @lugr66,

    I’m afraid we do not have more documentation specific to host settings.
    – Are you using a custom template by any chance? If yes, what happens when you switch to the default (& un-customized) “Simple” template?
    – Please go to WooCommerce > Status > System Status, click on Get system report, then click on Copy for support, paste it on https://pastebin.com/ (set a paste expiration for one week, just in case), and finally paste the pastebin.com link in your reply here.

    Thread Starter lugr66

    (@lugr66)

    Hi
    I do not use any custom template. I am using the standard simple template.
    Here’s the link: https://pastebin.com/Hp0G0f1x

    Thread Starter lugr66

    (@lugr66)

    I have an additional comment on this.
    The PDF’s in the folder (…/wp-content/uploads/wpo_wcpdf_7177bf4e44e39de24f7c28b26944488c/attachments) are displayed correctly and look as they should.
    Just when trying to access them via “my account” or in the order overview (logged in as admin) then it’s just a blank PDF.
    Maybe this helps with resolving the issue.

    Plugin Contributor Yordan Soares

    (@yordansoares)

    Hi @lugr66,

    I see that this topic as marked as Resolved, did you manage to solve this issue?

    Thread Starter lugr66

    (@lugr66)

    Yes. Weglot interferes with the plugin in the default language. Disabling the filter with the default language resolved it.
    Thank you!

    Plugin Contributor Yordan Soares

    (@yordansoares)

    I’m glad to hear that, @lugr66!

    …and thanks for provide feedback about how you solved it: This may be useful for another user with the same issue.

    Let us know if you need anything else ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘PDF Invoice is blank’ is closed to new replies.