Project:Apache Solr Search Integration
Version:6.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (cannot reproduce)
Issue tags:drupal_http_request

Issue Summary

I have a single site apache solr setup. though the search seems to work, I see a lot of errors as below -

# warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 471: parser error : expected '>' in C:\htdocs\drupal-6.14\sites\all\modules\thirdparty\apachesolr\Drupal_Apache_Solr_Service.php on line 98.
# warning: simplexml_load_string() [function.simplexml-load-string]:

Comments

#1

Priority:normal» critical

#2

Can you share your environment data with us?

(PHP version, Windows... etc.)

#3

Hi Robert,

I am on PHP 5.2.11, Windows XP professional, Apache 2.2.13,

Apache Solr Version 1.4-dev
Apache Solr integration 6.x-1.0-RC2

By the way, I like your module and it searches very well.

Thanks

#4

Version:6.x-1.0-rc2» 6.x-1.0-rc3

Hi

Coming up with the same errors here (after installing with Solr 1.4 etc)

Trying to install as multi-site, per http://wiki.apache.org/solr/SolrTomcat

    * warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 474: parser error : Premature end of data in tag name line 473 in D:\websites\drupal6\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
    * warning: simplexml_load_string() [function.simplexml-load-string]: in D:\websites\drupal6\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
    * warning: simplexml_load_string() [function.simplexml-load-string]: ^ in D:\websites\drupal6\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
    * warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 474: parser error : Premature end of data in tag entry line 472 in D:\websites\drupal6\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
    * warning: simplexml_load_string() [function.simplexml-load-string]: in D:\websites\drupal6\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
    * warning: simplexml_load_string() [function.simplexml-load-string]: ^ in D:\websites\drupal6\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
    * warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 474: parser error : Premature end of data in tag QUERYHANDLER line 188 in D:\websites\drupal6\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
    * warning: simplexml_load_string() [function.simplexml-load-string]: in D:\websites\drupal6\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
    * warning: simplexml_load_string() [function.simplexml-load-string]: ^ in D:\websites\drupal6\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
    * warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 474: parser error : Premature end of data in tag solr-info line 29 in D:\websites\drupal6\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
    * warning: simplexml_load_string() [function.simplexml-load-string]: in D:\websites\drupal6\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
    * warning: simplexml_load_string() [function.simplexml-load-string]: ^ in D:\websites\drupal6\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
    * warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 474: parser error : Premature end of data in tag solr line 21 in D:\websites\drupal6\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
    * warning: simplexml_load_string() [function.simplexml-load-string]: in D:\websites\drupal6\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
    * warning: simplexml_load_string() [function.simplexml-load-string]: ^ in D:\websites\drupal6\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 97.

Apache Tomcat 5.5
Solr integration 6.x-rc3
Server 2003, IIS
PHP 5.2.11

edit:
The same errors exist when I install per the README.TXT directions, including running the example Solr server shipped with Apache Solr.

#5

Just a bit more information for this..

I have installed Tomcat 6 and Apache Solr 1.4 (nightly build from Nov 11 I believe) on a Linux host and am still encountering the same issue.

I'm still using PHP under IIS.

Any suggestions? The module version 6.x-2-dev has the same issues.

Thanks

#6

Can someone do some dsm() or print_r() debugging and see what data is making it barf? Premature end of data in tag name line 473 in D:\websites\drupal6\sites\all\modules\apachesolr\Drupal_Apache_Solr_Service.php on line 97.

#7

Version:6.x-1.0-rc3» 6.x-1.0-rc4

Same issue here. Using last Solr 1.4 dowloaded today..

warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 470: parser error : Premature end of data in tag QUERYHANDLER line 188 in C:\wamp\www\sites\all\modules\contrib\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
warning: simplexml_load_string() [function.simplexml-load-string]: in C:\wamp\www\sites\all\modules\contrib\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
warning: simplexml_load_string() [function.simplexml-load-string]: ^ in C:\wamp\www\sites\all\modules\contrib\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 470: parser error : Premature end of data in tag solr-info line 29 in C:\wamp\www\sites\all\modules\contrib\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
warning: simplexml_load_string() [function.simplexml-load-string]: in C:\wamp\www\sites\all\modules\contrib\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
warning: simplexml_load_string() [function.simplexml-load-string]: ^ in C:\wamp\www\sites\all\modules\contrib\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
warning: simplexml_load_string() [function.simplexml-load-string]: Entity: line 470: parser error : Premature end of data in tag solr line 21 in C:\wamp\www\sites\all\modules\contrib\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
warning: simplexml_load_string() [function.simplexml-load-string]: in C:\wamp\www\sites\all\modules\contrib\apachesolr\Drupal_Apache_Solr_Service.php on line 97.
warning: simplexml_load_string() [function.simplexml-load-string]: ^ in C:\wamp\www\sites\all\modules\contrib\apachesolr\Drupal_Apache_Solr_Service.php on line 97.

#8

There is an open core issue for possible truncation of data from the server

#9

see: http://drupal.org/node/617126

and try the patches there to see if they help. See also: http://drupal.org/node/609836 where it seems essentially the same error message was reported.

#10

The patch listed at http://drupal.org/node/617126#comment-2205248 seems to addressed the issue.

Thanks!

#11

subscribe

#12

#13

Version:6.x-1.0-rc4» 6.x-1.x-dev
Priority:critical» normal

Anyone still experiencing this error?

#14

I do when I forget that I've made changes to common.inc, and overwrite it when I upgrade drupal.

But, only on a Server 2003 IIS 5 environment. My personal workstation (running Windows 7 and WAMPServ) doesn't experience this error, neither do any of my linux hosts.

Since I hate making any changes to core (then trying to remember them), I've been working on getting Tomcat and Solr on a linux VM instead of on Windows.

#15

What is the change to common.inc?

#16

In Comment 10, there is a link to an issue with drupal_http_request

#17

Hello guys.

I tried the fix that worked as per comment 10. It didn't work for me.

I am running Drupal 6.19 (updated today) and I tried installing apache solr module.. But the search index page gives the same set of warnings.
However, I have another site, running on Drupal 6.16 and there are so issues.

All I did was, go to common.inc and make the changes. That's it. Am I supposed to do something else (I guess not). This is how my code looks now.

  // Fetch response.

/*
  $response = '';
  while (!feof($fp) && $chunk = fread($fp, 1024)) {
    $response .= $chunk;
  }
  fclose($fp);
*/

$info = stream_get_meta_data($fp);
$alive = !$info['eof'] && !$info['timed_out'];
$response = '';

while ($alive) {
$chunk = fread($fp, 1024);
$response .= $chunk;
$info = stream_get_meta_data($fp);
$alive = !$info['eof'] && !$info['timed_out'] && $chunk;
}
fclose($fp);

  // Parse response.

Can someone help me out with this? This issue is killing me.

#18

Also seeing this with latest 6.x-2.x-dev.

Have tried patch #19 in this thread http://drupal.org/node/617126, but to no luck.

#19

Category:bug report» support request

Not an apachesolr bug, per say. Switching to support request.

#20

Status:active» closed (cannot reproduce)
nobody click here