Support

Home Forums Event Espresso Premium Invoice PDF Download Error

Invoice PDF Download Error

Posted: July 8, 2015 at 2:38 pm


Brenden Corr

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


Tony

  • Support Staff

July 8, 2015 at 3:07 pm

Hi Brenden,

Can you link me an to an invoice/receipt please?


Brenden Corr

July 8, 2015 at 3:16 pm

Sure thing! Here it is:

http://fusionstormgolfpartners.com/?ee=msg_url_trigger&snd_msgr=pdf&gen_msgr=html&message_type=invoice&context=purchaser&token=1-df95ce191a6cf3c839073876d1a32d2b&GRP_ID=2&id=0


Tony

  • Support Staff

July 8, 2015 at 3:43 pm

Can you tell me what stack this is running on?

Are you using HHVM on the server?


Tony

  • Support Staff

July 8, 2015 at 3:45 pm

In fact, scratch that.

Have you edited the Invoice/Receipt templates at all?


Brenden Corr

July 9, 2015 at 6:44 am

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]
<div class=”clear”></div>
</div>
<div id=”invoice”>
<table id=”invoice-header” class=”not-really-a-table”>
<tbody>
<tr>
<td id=”logo-dv”>[INVOICE_LOGO]
<div id=”company-address” class=”vcard”>
<div class=”fn org”>[INVOICE_PAYEE_NAME]</div>
<div class=”adr”>[INVOICE_PAYEE_ADDRESS]</div>
<div class=”email”>[INVOICE_PAYEE_EMAIL]</div>
<div class=”vat”>[INVOICE_PAYEE_TAX_NUMBER_*]</div>
</div></td>
<td>
<div id=”invoice-info”>
<h2 id=”invoice-hdr”>SPONSOR Invoice</h2>
<h3>Date: [PRIMARY_REGISTRANT_REGISTRATION_DATE]</h3>
<h3>Registration Code: [PRIMARY_REGISTRANT_REGISTRATION_CODE]</h3>
<h3>Transaction ID: [TXN_ID]</h3>
</div></td>
</tr>
<tr>
<td id=”instructions” colspan=”2″>[INVOICE_PAYMENT_INSTRUCTIONS]</td>
</tr>
</tbody>
</table>
<h2>Bill To:</h2>
<p id=”client-details” class=”vcard”>[EVENT_LIST]</p>

<h2 class=”vcard”>Purchases:</h2>
<table class=”invoice-amount” style=”height: 192px;” width=”741″>
<thead>
<tr class=”header_row”>
<th class=”left ticket_th”>Item</th>
<th class=”left event_th”>Description</th>
<th class=”quantity_th”>Qty</th>
<th class=”left event_th”>Price</th>
<th class=”subtotal_th item_r”>Total</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan=”5″>[TICKET_LIST]</td>
</tr>
<tr class=”total_tr odd”>
<td colspan=”2″></td>
<td id=”total_currency” class=”total” colspan=”2″>Sub-Total</td>
<td class=”total”>[TXN_SUBTOTAL]</td>
</tr>
<tr>
<td colspan=”5″>[ADDITIONAL_LINE_ITEM_LIST][TAX_LINE_ITEM_LIST]</td>
</tr>
<tr class=”total_tr odd”>
<td colspan=”2″></td>
<td id=”total_currency” class=”total” colspan=”2″>Total</td>
<td class=”total”>[TOTAL_COST]</td>
</tr>
</tbody>
</table>
* taxable items
<h2>Payments</h2>
<table class=”invoice-amount”>
<thead>
<tr class=”header_row”>
<th><span class=””>Payment Method</span></th>
<th class=”left datetime_th”>Date</th>
<th><span class=””>Transaction Id / Cheque #</span></th>
<th><span class=””>P.O. / S.O.#</span></th>
<th><span class=””>Status</span></th>
<th>Amount</th>
</tr>
</thead>
<tbody>
<tr>
<td colspan=”6″>[PAYMENT_LIST_*]</td>
</tr>
</tbody>
<tfoot>
<tr class=”total_tr”>
<td colspan=”4″></td>
<td class=”item_r”>Total Paid</td>
<td class=”item_r”>[TOTAL_AMOUNT_PAID]</td>
</tr>
<tr class=”total_tr”>
<td colspan=”4″></td>
<td id=”total_currency” class=”total”>Amount Owed</td>
<td class=”total”>[TOTAL_OWING]</td>
</tr>
</tfoot>
</table>
</div>
<div class=”print_button_div noPrint”>

[INVOICE_RECEIPT_SWITCHER_BUTTON] [DISPLAY_PDF_BUTTON]
<div class=”clear”></div>
</div>


Josh

  • Support Staff

July 9, 2015 at 7:55 am

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.


Brenden Corr

July 9, 2015 at 9:24 am

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!


Josh

  • Support Staff

July 9, 2015 at 10:05 am

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.

Event Espresso