Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error with empty textarea #454

Open
arnoschaefer opened this Issue Feb 28, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@arnoschaefer
Copy link

arnoschaefer commented Feb 28, 2019

I am using html2pdf v5.2.1. I encounter the following error with an empty textarea:

$oHtmlToPdf = new Html2Pdf();
$oHtmlToPdf->writeHTML('<h1>Foo</h1><p><textarea></textarea></p>');
Notice: Undefined offset: 0 in /sources/vagrant/vendor/spipu/html2pdf/src/Html2Pdf.php on line 6007
Fatal error: Call to a member function getParam() on null in /sources/vagrant/vendor/spipu/html2pdf/src/Html2Pdf.php on line 6007

This appears to be caused by the empty textarea. When I put a space inside the textarea:
<textarea> </textarea>, the error does not occur.

Is this a known problem?

Best Regards,

Arno

@spipu

This comment has been minimized.

Copy link
Owner

spipu commented Feb 28, 2019

Thanks for this report it is a new issue

@spipu spipu added the bug label Feb 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.