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]: # warning: simplexml_load_string() [function.simplexml-load-string]: ^ 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]: Entity: line 471: parser error : Opening and ending tag mismatch: name line 469 and n 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]: # warning: simplexml_load_string() [function.simplexml-load-string]: ^ 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]: Entity: line 471: parser error : Premature end of data in tag entry line 468 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]: # warning: simplexml_load_string() [function.simplexml-load-string]: ^ 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]: Entity: line 471: parser error : Premature end of data in tag QUERYHANDLER line 184 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]: # warning: simplexml_load_string() [function.simplexml-load-string]: ^ in C:\htdocs\drupal-6.14\sites\all\modules\thirdparty\apachesolr\Drupal_Apache_Solr_Service.php on line 98.

Comments

manasiv’s picture

Priority: Normal » Critical
robertdouglass’s picture

Can you share your environment data with us?

(PHP version, Windows... etc.)

manasiv’s picture

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

timatlee’s picture

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.

timatlee’s picture

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

robertdouglass’s picture

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.

mburak’s picture

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.

pwolanin’s picture

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

pwolanin’s picture

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.

timatlee’s picture

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

Thanks!

mburak’s picture

subscribe

jpmckinney’s picture

jpmckinney’s picture

Version: 6.x-1.0-rc4 » 6.x-1.x-dev
Priority: Critical » Normal

Anyone still experiencing this error?

timatlee’s picture

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.

pwolanin’s picture

What is the change to common.inc?

timatlee’s picture

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

karthikmurs’s picture

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.

hitfactory’s picture

Issue tags: +drupal_http_request

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.

jpmckinney’s picture

Category: bug » support

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

pwolanin’s picture

Status: Active » Closed (cannot reproduce)
dpalmer’s picture

Getting this issue on D7...