Plugin Contributor
Ewout
(@pomegranate)
Hi! What’s the error you’re seeing?
The getAttribute() error is an indication of faulty html output, which could also be a PHP error somewhere. (in a table, but outside the table cells for example). If this is a Sumo Reward Points error there’s not much I can do about it…
Let me know and I’ll see if I can help though!
I also recommend contacting he SRP developers, since it’s a plugin you paid for!
Ewout
Thank you for your reply. The error I get:
Fatal error: Call to undefined method DOMText::getAttribute() in wp-content\plugins\woocommerce-pdf-invoices-packing-slips\lib\dompdf\include\cellmap.cls.php on line 437
With ‘Output to HTML’ checkbox ticked, I can see the HTML invoice is indeed created.
Any idea what’s wrong?
Plugin Contributor
Ewout
(@pomegranate)
Hi! I was actually referring to errors in the HTML output itself, not the PF error. If you’re not seeing any PHP errors or notifications in the HTML output, you will need to check the HTML source – this is not properly formatted (browsers are usually a lot more forgiving than the PDF engine). I recommend checking the portion that outputs something related to the SRP plugin specifically. You could also try using an HTML validator and paste the HTML output there.
Let me know what you find!
Ewout
I think I found the error. Checked with HTML validator, and here’s the result:
Misplaced non-space characters inside a table.
<tbody>
Pt17900 <tr class=”2070″>
How can I fix this?
Plugin Contributor
Ewout
(@pomegranate)
Hi! Contact the Sumo Reward Points developers and tell them to fix the output of the reward points. They’re probably hooking a filter the wrong way!
Good luck and let me know if you need anything from my end!
Ewout