Posted: March 6, 2015 at 12:32 am
|
Hi all, I got warnings when previewing invoice in browser And when I tried to download the pdf, I also got warnings. Any help would be appreciated 🙂 Thanks, Joanne Tjia |
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. |
|
|
Hi Tony, |
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) |
|
|
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); Any other solutions for this? Thanks so much, Joanne |
I did a little more investigating into those errors and it appears to be a DNS problem. I found this: and this: 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/ |
|
|
Hi Tony, great suggestions, I have put the @ini_set( ‘display_errors’, 0 ); Thanks, Joanne |
|
Hi Tony, great suggestions, I have put the @ini_set( ‘display_errors’, 0 ); Thanks, Joanne |
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.