Support

Home Forums Event Espresso Premium Warning messages when previewing & downloading invoice PDF

Warning messages when previewing & downloading invoice PDF

Posted: March 6, 2015 at 12:32 am


moho setiya putra

March 6, 2015 at 12:32 am

Hi all,

I got warnings when previewing invoice in browser
I captured the warnings here: https://www.dropbox.com/s/vm78m0t7la8me96/a.png?dl=0

And when I tried to download the pdf, I also got warnings.
I captured the warnings here : https://www.dropbox.com/s/czlhy2tovw5qll3/b.png?dl=0

Any help would be appreciated 🙂

Thanks,

Joanne Tjia


Tony

  • Support Staff

March 6, 2015 at 2:51 am

Hi Joanne Tjia,

Those warnings usually mean your server has fopen disabled, specifically allow_url_fopen() which is used by the DOMPDF library that Event Espresso uses.

I would recommend issuing a ticket with your host provide to have them enable it.


moho setiya putra

March 9, 2015 at 6:31 am

Hi Tony,
Ok I’ll tell my hosting provider then..hopefully they could enable it and make the warning disappears. I’ll reply to this post when it’s done.
Thanks,
Joanne


Tony

  • Support Staff

March 9, 2015 at 7:37 am

Hi Joanne,

Just to note, disabling WP_DEBUG on your site will also remove those errors from view, however that won’t fix the issue they are reporting which basically means your invoices/receipts will not have a logo displayed within (or any images for that matter)


moho setiya putra

March 10, 2015 at 3:27 am

Hi Tony,

My web host has enabled fopen but the same warnings still appear. Then I disabled the WP_DEBUG at wp_config.php with this code: define(‘WP_DEBUG’, false);
But the warnings still appear.
However, the conference logo image is displayed in the invoice.

Any other solutions for this?

Thanks so much,

Joanne


Tony

  • Support Staff

March 10, 2015 at 8:24 am

I did a little more investigating into those errors and it appears to be a DNS problem.

I found this:

http://stackoverflow.com/questions/6275535/php-error-php-network-getaddresses-getaddrinfo-failed-while-getting-informat

and this:

http://stackoverflow.com/questions/2880563/file-function-file-php-network-getaddresses-getaddrinfo-failed-temporary

I would once again recommend contacting your host to investigate this (you can send them the above links and screentshots you provided). Apache may just need to be restarted but they should know more on that than I.

One other thing to note is that if you have:

define(‘WP_DEBUG’, false);

and the errors are still showing on your site it means that display_errors is enabled on the server, this is great for debugging (like now as you can see those errors) but not so great for live.

Under that line I would add this:

@ini_set( 'display_errors', 0 );

To stop your site displaying the errors.

If you want to view the errors on a live site, we recommend swapping the above two lines out for something like this:

define( 'WP_DEBUG', true ); // Or false
if ( WP_DEBUG ) {
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );
}

When WP_Debug is enabled it will store the errors in a debug.log file in /wp-content/


moho setiya putra

March 10, 2015 at 8:33 pm

Hi Tony, great suggestions, I have put the @ini_set( ‘display_errors’, 0 );
and the warnings disappeared. I have contacted my web host to investigate this with your recommendations. But at least for now I can continue working with the conference web.

Thanks,

Joanne


moho setiya putra

March 10, 2015 at 8:34 pm

Hi Tony, great suggestions, I have put the @ini_set( ‘display_errors’, 0 );
and the warnings disappeared. I have contacted my web host to investigate this and forwarded your recommendations. But at least for now I can continue working with the conference web.

Thanks,

Joanne


Tony

  • Support Staff

March 11, 2015 at 4:30 am

You are most welcome, Joanne 🙂

If you have any further problems just let us know.

The support post ‘Warning messages when previewing & downloading invoice PDF’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso