Posted: 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 |
|
I also get these errors when I try to download a PDF Invoice. |
|
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. |
|
Neither WP_Debug or error_reporting are enabled on the site. |
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 — |
|
|
I already have it as the following in my wp_config file
|
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. — |
|
|
Checked for extra spacing and tried the macro but still getting the same errors. |
Hi, Could you re-test on defaults with a default WP theme and only Event Espresso running? Does the issue continue? — |
|
|
we are having the same problem and these suggestions do not work for us either. |
|
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. |
|
Our developer just found this: on line 1 add this code: so it looks like this cheers. |
|
That did the trick for me. Thanks Christian and Maria! |
You can avoid hacking core files in Event Espresso by adding the following to your wp-config.php file:
|
|
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.