Notice: Undefined property: DOMText::$data

375 views
Skip to first unread message

José Antonio Gómez

unread,
May 8, 2017, 1:06:43 PM5/8/17
to dompdf
Hi Everyone,

I've been using Dompdf for a long time without problems but recently we had some problems with the server (Ubuntu 16.04), and after fix them and reboot, Dompdf stop working.
At first, it seems that php module 'Domdocument' wasn't installed. We installed it. Then, only shows this error message with only "hello world" string text:

1) If I comment $dompdf->stream():
        $dompdf = new Dompdf();  
        $dompdf
->loadHtml("hello world");
        $dompdf
->render();
       
// $dompdf->stream("document");


It shows:

Notice: Undefined property: DOMText::$data in /var/www/project/vendor/dompdf/src/FrameDecorator/Text.php on line 71


2) If I uncomment $dom
        $dompdf = new Dompdf();  
        $dompdf
->loadHtml("hello world");
        $dompdf
->render();
        $dompdf
->stream("document");

It renders a blank PDF.

I am so lost on this for days and any kind of help would be great.

Many thank at advance.

Regards.

BrianS

unread,
May 8, 2017, 1:24:14 PM5/8/17
to dompdf
What version of PHP, libxml, and the PHP extension for libxml and DOMDocument do you have?
Message has been deleted

BrianS

unread,
May 8, 2017, 5:18:32 PM5/8/17
to dompdf

José Antonio Gómez

unread,
May 9, 2017, 4:11:43 AM5/9/17
to dompdf
Hi Brian,

(I'm answering you at stackoverflow too ;). Double thanks btw)
  • PHP 7.0.18-1+deb.sury.org~xenial+1
  • Libxml 2.9.4
  • DOM/XML API Version: 20031129
You mean that info? 

Thanks again.

BrianS

unread,
May 26, 2017, 9:42:54 AM5/26/17
to dompdf
That is the info I was looking for. I'm at a bit of a loss since that property should be present on the DOMText class. Have you done any more investigative work on the issue? What happens if you pass in a a bit more HTML, e.g. "<p>hello world</p>"?

José A. Gómez Caballero

unread,
May 26, 2017, 11:00:32 AM5/26/17
to dom...@googlegroups.com
Hi there,
No, I couldn't get that after days of search. 

When I pass "<p>hello world</p>" it shows the same message. I'm use another PDF library. We are almost sure that this issue is because of our recent server problems and we're moving to AWS.
Then we'll try again with Dompdf.

Thanks again! 

--
You received this message because you are subscribed to the Google Groups "dompdf" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dompdf+unsubscribe@googlegroups.com.
To post to this group, send email to dom...@googlegroups.com.
Visit this group at https://groups.google.com/group/dompdf.
For more options, visit https://groups.google.com/d/optout.

BrianS

unread,
Jul 7, 2017, 9:42:15 AM7/7/17
to dompdf
OK. I'd love to hear if the issue disappears when you switch servers.


On Friday, May 26, 2017 at 11:00:32 AM UTC-4, José Antonio Gómez wrote:
Hi there,
No, I couldn't get that after days of search. 

When I pass "<p>hello world</p>" it shows the same message. I'm use another PDF library. We are almost sure that this issue is because of our recent server problems and we're moving to AWS.
Then we'll try again with Dompdf.

Thanks again! 
Reply all
Reply to author
Forward
0 new messages