Dompdf is not working in Local machine

127 views
Skip to first unread message

Arnab Biswas

unread,
Mar 22, 2011, 1:14:39 PM3/22/11
to dompdf-dev
Hi Everybody,

I have downloaded and done all the thing to install dompdf. Then I
tried to test it is working or not..But every time I am getting this
error in my machine.. This same code is working in another machine
when I tested there..


Warning: domdocument::domdocument() expects at least 1 parameter, 0
given in C:\xampp\htdocs\protech.dbanerjee.com\admin\dompdf\include
\dompdf.cls.php on line 177

Fatal error: Call to undefined method domdocument::loadHTML() in C:
\xampp\htdocs\protech.dbanerjee.com\admin\dompdf\include
\dompdf.cls.php on line 338

can anyone help why this is happening?? Please tell me how to resolve
this problem..

Thanks,
Arnab

BrianS

unread,
Mar 22, 2011, 2:51:36 PM3/22/11
to dompd...@googlegroups.com, Arnab Biswas
On Tuesday, March 22, 2011 1:14:39 PM UTC-4, Arnab Biswas wrote:
Warning: domdocument::domdocument() expects at least 1 parameter, 0
given in C:\xampp\htdocs\protech.dbanerjee.com\admin\dompdf\include
\dompdf.cls.php on line 177

Fatal error: Call to undefined method domdocument::loadHTML() in C:
\xampp\htdocs\protech.dbanerjee.com\admin\dompdf\include
\dompdf.cls.php on line 338

The undefined method cited is core to the PHP DOM extension so you should not be getting that error. It sounds like you may have the old PHP4 DOM extension enabled. Check your PHP configuration (e.g. through phpinfo()) to see what extensions are enabled. You should see a section header for DOM, but not DOMXML ... or something like that.

Also, this question would be more relevant in the dompdf group. The dompdf-dev group is for discussion of dompdf code and development plans.

Arnab Biswas

unread,
Mar 22, 2011, 2:59:26 PM3/22/11
to dompdf-dev
Thank you BrianS,

Thanks for your response.. I have checked my phpinfo() and found DOM
and DOMXML both are enabled in my phpinfo() ..I just want to know what
changes I have to do , so that dompdf will work in my machine.. please
inform me about this.. It will be very helpful if you kindly send me
the steps I have to take to resolve this problem..

Thanks,
Arnab
> Also, this question would be more relevant in the dompdf<https://groups.google.com/forum/#%21forum/dompdf>group. The dompdf-dev group is for discussion of dompdf code and development
> plans.
Reply all
Reply to author
Forward
0 new messages