• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: PDF Plugin not creating pdf after udate of rsform

PDF Plugin not creating pdf after udate of rsform 9 years 1 month ago #34545

Hello,

I imported a old form that I have in other site, everything is working until I did the update to the latest version of rsform and plugins.

Now I have this error:
Fatal error: Call to undefined method DOMText::getAttribute() in /home/.../public_html/administrator/components/com_rsform/helpers/pdf/dompdf6/include/cellmap.cls.php on line 437



How can I solve it?


Thanks a lot in advance,
Davide
The administrator has disabled public write access.

PDF Plugin not creating pdf after udate of rsform 9 years 3 weeks ago #34698

  • jami
  • jami's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 35
  • Thank you received: 4
I had the same issue and discovered that the PDF pre-processing script did not copy over. Check your other site to see if you had some PHP PDF pre-processing scripts in there and copy them over.

For me, the problem was this script that I needed for using placeholders in my html.
If you're using placeholders in your HTML and PDF form, try adding this into the pre-processing script section for both the admin and the user emails:
require_once(JPATH_ADMINISTRATOR.'/components/com_rsform/helpers/scripting.php');
RSFormProScripting::compile($info->useremail_layout, $args['placeholders'], $args['values']);
The administrator has disabled public write access.

PDF Plugin not creating pdf after udate of rsform 7 years 5 months ago #37531

I have the same problem at the moment. Everything worked fine, but now it doesn't work anymore.
When you sent a form, you get a page with the error: Call to undefined method DOMText::getAttribute()
I didn't change anything anywhere, but it isn't working anymore...
It doesn't sent the form.
The administrator has disabled public write access.

PDF Plugin not creating pdf after udate of rsform 7 years 4 months ago #37620

Any news about this problem?


Thanks a lot!
The administrator has disabled public write access.

PDF Plugin not creating pdf after udate of rsform 7 years 3 weeks ago #38086

  • rakeshy
  • rakeshy's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 97
  • Thank you received: 3
Been struggeling with this problem for a while now, sometimes it pops up again.

Previously it was caused by my Editor(s).

Now the problem is solved by removing all <tbody> and </tbody> tags from the ticket pdf code.

Try it and let me know.
The administrator has disabled public write access.

PDF Plugin not creating pdf after udate of rsform 7 years 3 weeks ago #38087

  • rakeshy
  • rakeshy's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 97
  • Thank you received: 3
Only problem now is that those tags get automatically added by JCE after the save. So the error stays after the second save.
Last Edit: 6 years 19 hours ago by rakeshy.
The administrator has disabled public write access.

PDF Plugin not creating pdf after udate of rsform 7 years 3 weeks ago #38095

  • rakeshy
  • rakeshy's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 97
  • Thank you received: 3
This gives the error
<table>
<thead><tr><th>Col1</th></tr></thead>
<tbody><tr><td>col1</td></tr></tbody>
</table>

This works (no <tbody>'s)
<table>
<thead><tr><th>Col1</th></tr></thead>
<tr><td>col1</td></tr>
</table>

Hope it helps
Last Edit: 6 years 2 weeks ago by rakeshy.
The administrator has disabled public write access.

PDF Plugin not creating pdf after udate of rsform 7 years 2 weeks ago #38102

  • rakeshy
  • rakeshy's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 97
  • Thank you received: 3
Here you can find more info about the solution: github.com/dompdf/dompdf/issues/1494

An issue with dompdf (the 3rd party PDF library used to generate PDFs from HTML content) and libxml 2.9.5 (you can check this by going to System > System Information > PHP Information > search for "libxml Version") - this GitHub issue suggests using 2.9.4 fixes the problem:
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!