jjk2 Posted August 29, 2009 Share Posted August 29, 2009 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 Link to comment https://forums.phpfreaks.com/topic/172426-solved-2-identical-script-works-on-one-server-fails-on-other/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.