hacioguz / solr-php-client

Automatically exported from code.google.com/p/solr-php-client
Other
0 stars 0 forks source link

ParserException class not found in Response.php because of missing require_once ? #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

Response.php can throw an Apache_Solr_ParserException at some point but will 
fail because the class has not been included.
Fatal error: Class 'Apache_Solr_ParserException' not found in 
.../solr-php-client/Response.php on line 272

Call Stack:
    0.0008      85492   1. {main}() .../consolidate2.php:0
   96.2110    3901432   2. Apache_Solr_Response->__get() .../solr-php-client/Response.php:0
   96.2110    3901496   3. Apache_Solr_Response->_parseData() .../solr-php-client/Response.php:230

Fix proposal:
- add a require_once(dirname(__FILE__).'ParserException.php'); statement in 
Service.php along the other require_onces that import *Exception.php files.

Take care !

Original issue reported on code.google.com by jonathan.schroder@gmail.com on 9 Jun 2010 at 10:06

GoogleCodeExporter commented 8 years ago
Missing require_once has been added in r35. Thanks for the report.

Original comment by donovan....@gmail.com on 8 Jul 2010 at 10:22