Support

Home Forums Event Espresso Premium PDF Invoice Generation Failing

PDF Invoice Generation Failing

Posted: December 21, 2014 at 8:31 pm

Viewing 13 reply threads


cmccreery

December 21, 2014 at 8:31 pm

Attempting to download a pdf invoice I get the following error:

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

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

Warning: DOMNode::cloneNode(): ID invoice already defined in /wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/frame_decorator.cls.php on line 453
Unable to stream pdf: headers already sent


Lauren Hitchon

December 21, 2014 at 9:41 pm

I also get these errors when I try to download a PDF Invoice.


Dean

December 22, 2014 at 4:30 am

Hi,

Do you have WP_Debug or error_reporting enabled on the site? If so can you disable it an retry please?

Please see this thread: https://eventespresso.com/topic/invoice-pdf-button-generating-an-error-when-clicked/

If you have any further questions or disabling error reporting doesn’t work, please let us know.


cmccreery

December 22, 2014 at 12:26 pm

Neither WP_Debug or error_reporting are enabled on the site.


Lorenzo Orlando Caum

  • Support Staff

December 22, 2014 at 12:56 pm

Hi, could you try setting debugging to off via your wp-config.php file?

I found another member with the same warnings here and it was resolved by setting them to off:

https://eventespresso.com/topic/invoice-pdf-button-generating-an-error-when-clicked/#post-119905

https://eventespresso.com/topic/downloading-pdf-gives-me-error/#post-121419


Lorenzo


cmccreery

December 22, 2014 at 1:01 pm

I already have it as the following in my wp_config file

define('WP_DEBUG', false);


Lorenzo Orlando Caum

  • Support Staff

December 22, 2014 at 1:12 pm

Try this macro:

https://eventespresso.com/topic/downloading-pdf-gives-me-error/#post-121419

Also be careful of extra spacing in your wp-config.php file as that can cause the headers already sent issue.


Lorenzo


cmccreery

December 22, 2014 at 2:14 pm

Checked for extra spacing and tried the macro but still getting the same errors.


Lorenzo Orlando Caum

  • Support Staff

December 22, 2014 at 2:55 pm

Hi,

Could you re-test on defaults with a default WP theme and only Event Espresso running? Does the issue continue?


Lorenzo


maria staszkiewicz

December 23, 2014 at 2:21 pm

we are having the same problem and these suggestions do not work for us either.


cmccreery

December 23, 2014 at 2:29 pm

Unfortunately I can’t test on the live environment. So I’ll need to set up a staging environment to see if changing to default theme and only EE plugin running resolve the issue. It was working fine previously until the last EE core plugin update.


maria staszkiewicz

December 23, 2014 at 2:40 pm

Our developer just found this:
open this file:
wp-content\plugins\event-espresso-core-reg\core\third_party_libs\dompdf\include
frame_decorator.cls.php

on line 1 add this code:
error_reporting(0);

so it looks like this
<?php
error_reporting(0);
/**
* DOMPDF – PHP5 HTML to PDF renderer

cheers.
-Christian Zagarskas


cmccreery

December 23, 2014 at 2:57 pm

That did the trick for me. Thanks Christian and Maria!


Josh

  • Support Staff

December 23, 2014 at 4:41 pm

You can avoid hacking core files in Event Espresso by adding the following to your wp-config.php file:

@ini_set( 'display_errors', 0 );

Viewing 13 reply threads

The support post ‘PDF Invoice Generation Failing’ 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