Support

Home Forums Event Espresso Premium Pdf Not opened

Pdf Not opened

Posted: April 15, 2015 at 7:23 am


Cathy Landry

April 15, 2015 at 7:23 am

Hi,

when i opened downloaded pdf file,it says
“There was an error opening this document.The file is damaged and could not be repaired”.
Please help on this.

Thanks


Tony

  • Support Staff

April 15, 2015 at 7:36 am

Hi Cathy,

I used my registration from your previous thread to pull a PDF.

At the top of the page is this warning:

Warning: DOMNode::cloneNode(): ID invoice already defined in /home/itvib/public_html/northroprice_aviation/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/frame_decorator.cls.php on line 429

We’ve seen this on a couple of sites and so far have not found the cause, however if you disable WP_DEBUG that error should no longer display and the PDF should open fine.

If you prefer to have WP_DEBUG enabled you can use 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 );
}

Which will log the errors within a debug.log file but not display them on a browser (note depending on the plugins/theme you are using this file can get large quickly)

The support post ‘Pdf Not opened’ 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