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 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.