• Hi,

    My host migrated my site this morning to PHP7 and directly after that the invoices are showing up complete empty. I’m running plugin 1.6.6. I’m a newbie on WP and I don’t want to make a full site backup before upgrading to 2.0 if the problem can be fixed without doing so. What can I do to repair the problems with the empty invoices?

    Many thanks in advance.

    Peter

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

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

    (@pomegranate)

    Hello Peter,
    We can only provide very limited support for older versions, but I’ll do my best to help you find why it’s not working. Although not optimized for it, 1.6.6 was tested and confirmed compatible with PHP7, so in theory that should not be the issue.

    Can you enable “debug output” in PDF Invoices > Status and then try to generate an invoice again? This should provide you with an error that will may us resolve this (don’t forget to turn it off afterwards!).

    Let me know what you find!

    Thread Starter Admin P.

    (@peterwekker)

    Hi Ewout,

    Great! Thank you very much for the support with my older version.
    I did enable de debug outpot mode and when trying to generate an invoice I did not see any error. But on the upper of my WP Dashboard and my website I see this: Notice: Constant FORCE_SSL_ADMIN already defined in /domains/wekkerautomatisering.nl/public_html/wp-config.php on line 91.

    When I open this in notepad line 91 says: define (‘FORCE_SSL_ADMIN’, true);

    Hope that helps in any way. Thank’s a lot again.

    Peter

    Plugin Contributor Ewout

    (@pomegranate)

    Hi Peter,
    Although it’s probably a good idea to fix this error, it’s probably not related. You can fix that particular error by changing the line to:

    
    if ( ! defined( 'FORCE_SSL_ADMIN' ) ) define (‘FORCE_SSL_ADMIN’, true);
    

    I don’t think this will fix the PDF invoice error.
    When you say you’re getting an empty invoice, do you mean you’re getting an empty page, or are you actually getting a PDF, just without any content (any content at all?)?

    Let me know
    Ewout

    Thread Starter Admin P.

    (@peterwekker)

    Hi Ewout,

    I changed the line and indeed I do not see that error anymore but as you expected it did not fix the invoice error. Then about the invoice problem: invoices are indeed generated in pdf format but they show up empty. The only thing you can see is my company logo in the header of the pdf.

    Peter

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Peter,
    That sounds like this may actually be an issue with fonts. Can you try removing the wpo_wcpdf folder and its contents from wp-content/uploads/ on your server? This will trigger the plugin to reinstall the fonts.

    Let me know if that helps!
    Ewout

    Thread Starter Admin P.

    (@peterwekker)

    Hi Ewout,

    I just deleted the specific folder but it did not help. The folder came back on it’s own after a few minutes but the pdf invoices are still empty or should I want for a new order from a customer?

    Many thanks for your quick replies by the way.

    Peter

    Plugin Contributor Ewout

    (@pomegranate)

    Hello Peter,
    The folder should come back after a few minutes, so that’s good. I have no explanation for the invoices being empty. Is this with the default Simple template? If not, can you try that too to rule out customization issues?

    Do you get any errors when using the “HTML output” option in the Status tab?

    Ewout

    Thread Starter Admin P.

    (@peterwekker)

    Hi Ewout,

    I don’t know about which template is used. Can I see that anywhere?
    If I enable the HTML output the invoices are showing good in the browser.
    That’s ok but the pdf is still showing up empty.

    Peter

    Plugin Contributor Ewout

    (@pomegranate)

    You can see the template under PDF Invoices > General.

    Thread Starter Admin P.

    (@peterwekker)

    It is “simple” as template

    Plugin Contributor Ewout

    (@pomegranate)

    Hm, very strange… The only thing left I can think of is that there’s a code snippet (action hook or filter) somewhere, for example with custom styles…

    If that’s not it either, I’m afraid I can only suggest to update to 2.0… Here’s more information about making Backups: https://woocommerce.com/2017/05/create-use-backups-woocommerce/

    Hope that helps!

    Thread Starter Admin P.

    (@peterwekker)

    Hi Ewout,

    I asked my host to migrate back to PHP 5.6 and know everythings works fine again.

    Thanks again for your magnificent support and your quick response.

    Peter

    Plugin Contributor Ewout

    (@pomegranate)

    @peterwekker, I’m sorry I couldn’t help you resolve this issue, but glad to hear going back to 5.6 fixes the issue for now. Just for my information, can you check the screenshot & description from this thread to see if that’s the same output you were getting? Were you also using PNG for the header image? Would it be possible for you to send me a PDF of the ’empty’ output at [email protected]? Thanks!

    Ewout

    Thread Starter Admin P.

    (@peterwekker)

    Hi Ewout!

    No sorry at all. I just send you an example of an empty pdf invoice before going back from php 7 to php 5.6. It sure looks the same like the invoice from the topic “PDF Glitches”. The logo I used is indeed a PNG image. Hope it helps in any way.

    Peter

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