PHP Warning: DOMXPath::query() in stylesheet.cls.php on line 573

So if you're using DOMPDF and getting this error.. well it's because you're using valid HTML(yay!). For more information on how to quickly fix it, read on!


PHP Warning:  DOMXPath::query() [<a href='function.DOMXPath-query'>function.DOMXPath-query</a>]: Invalid expression in /home/pdf/include/stylesheet.cls.php on line 573

Ah! Styles these days on pages are wrapped round <!-- and --> to make them safe for browsers, bots, validators, etc.

Whe using DOMPDF, make sure you remove those tags because your CSS styles will never show!


SOCIAL BOOKMARK - Posted by Steven Sullivan on 19th June, 2009 - 20:46:34 GMT

Comments

1

Posted by Shekhar on 30th October, 2009 at 00:54:30 GMT


Thanks for the info

I wasted lot of time finding the fault, and above help .... Man waow

It all work fine,

NOTE: It was working on linux, when I changed server on window, that error came , I removed and waow .. Nice working

Thanks Man
Keep up the good work

Shekhar
2

Posted by Cesar on 9th February, 2010 at 23:47:17 GMT


Awesom!!! I wasted lots of time reading the code to know if there was something i had not configured, but with no success. Keep on doing like this.

Cesar


* Name:
* E-Mail:
Not shown to public
Website:
Emotions:
* Comment:

Up

Down

characters left
* Security Code:
Type this code in the box: 961169
* Required field
© Steven Sullivan 2006 - All Rights Reserved         Video Disclaimer - Valid XHTML & CSS