Posted: July 8, 2015 at 2:38 pm
|
hello – We are currently running EE 4.7.7 and most current version of WP. I found some other posts about this issue – but the line referenced in the error was different than mine…any ideas on what I might do to fix this? Thanks! http://www.fusionstormgolfpartners.com Fatal error: Call to undefined method DOMText::getAttribute() in /home/content/p3pnexwpnas06_data03/19/2669819/html/wp-content/plugins/event-espresso-core-reg/core/third_party_libs/dompdf/include/cellmap.cls.php on line 399 |
Hi Brenden, Can you link me an to an invoice/receipt please? |
|
|
Sure thing! Here it is: |
Can you tell me what stack this is running on? Are you using HHVM on the server? |
|
In fact, scratch that. Have you edited the Invoice/Receipt templates at all? |
|
|
Yes – I have edited it. I was trying to have some of the questions populate on the invoice template – and one was not working so I tried some workarounds. Here is the code for the template below: I could not get this custom question to appear in the [EVENT_LIST] section even though I could get every other question to populate there. The question I wanted was: [ANSWER_* Please indicate preferred payment method for your invoice] and I kept using the code for the primary registrant ([PRIMARY_REGISTRANT_ANSWER_*]) but nothing worked. So I placed instead this question in the [ATTENDEE_LIST] and then put that into the [TICKET_LIST] <div class=”print_button_div noPrint”> [INVOICE_RECEIPT_SWITCHER_BUTTON] [DISPLAY_PDF_BUTTON] <h2 class=”vcard”>Purchases:</h2> [INVOICE_RECEIPT_SWITCHER_BUTTON] [DISPLAY_PDF_BUTTON] |
Hi Brendan, If you go in and create a custom invoice, and save the default, does it throw the same error? If not, there might be something in your custom HTML that’s triggering the error. We can help troubleshoot if you can post the entire contents of all the invoice template sections in a gist or pastebin and post the link here. |
|
|
Thank you for your guidance – I realized that the receipt template was downloading just fine – so I copied my code over to the invoice and modified it slightly and now it seems to be working. Sorry for the troubles! |
You’re welcome and no worries. |
|
The support post ‘Invoice PDF Download Error’ 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.