Jump to content

[SOLVED] 2 identical script. works on one server, fails on other.


jjk2

Recommended Posts

i am having trouble with DOMXPath::evaluate() on one server. the test script is not working on this server, while on the other it is working...

 

which component am i supposed to upgrade? libxml ?

 

please help, i am stuck on this for a while.

 

i checked phpinfo()

 

both servers have the following settings...

 

DOM/XML 	enabled
DOM/XML API Version 	20031129
libxml Version 	2.6.31
HTML Support 	enabled
XPath Support 	enabled
XPointer Support 	enabled
Schema Support 	enabled
RelaxNG Support 	enabled 

 

 

. 'foo, bar' expected 'descendant-or-self::foo|descendant-or-self::bar' but got 'descendant-or-self::foo,/descendant::bar' ................................
Warning: DOMXPath::evaluate() [function.DOMXPath-evaluate]: Invalid expression in /var/www/css.php on line 27
'div, p' failed, expected 2 but got 0
Warning: DOMXPath::evaluate() [function.DOMXPath-evaluate]: Invalid expression in /var/www/css.php on line 27

Warning: DOMXPath::evaluate() [function.DOMXPath-evaluate]: Invalid expression in /var/www/css.php on line 27
'div , p' failed, expected 2 but got 0
Warning: DOMXPath::evaluate() [function.DOMXPath-evaluate]: Invalid expression in /var/www/css.php on line 27

Warning: DOMXPath::evaluate() [function.DOMXPath-evaluate]: Invalid expression in /var/www/css.php on line 27
'div ,p' failed, expected 2 but got 0
Warning: DOMXPath::evaluate() [function.DOMXPath-evaluate]: Invalid expression in /var/www/css.php on line 27
'div, p, ul li a' failed, expected 3 but got 0 ............................Attributes failed 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.