Activity log for bug #831656

Date Who What changed Old value New value Message
2011-08-22 21:43:38 Hugh Guiney bug added bug
2011-08-22 21:48:10 Hugh Guiney description This applies to both the 2.x branch and the 1.x branch. Using 2.x for the examples. My code: try{ $mbQuery = new mbQuery(); $trackFilters = new mbTrackFilter(); $trackFilters->title('…Baby One More Time'); $trackFilters->artistName('Britney Spears'); $trackFilters->limit('5'); var_dump($mbQuery->getTracks($trackFilters)); } catch(mbRequestError $e) { echo $e->getMessage(); } catch(mbResponseError $e) { echo $e->getMessage(); } catch(Exception $e) { echo $e->getMessage(); } Log: PHP Warning: require_once(mbUser.php): failed to open stream: No such file or directory PHP Fatal error: require_once(): Failed opening required 'mbUser.php' Copied mbUser.php from the 1.x branch to 2.x and it went away, but then got: PHP Notice: Undefined index: HTTP_status in /path/to/mbWebService.php on line 154 PHP Warning: xml_error_string() expects parameter 1 to be long, resource given in /path/to/xml/xmlParser.php on line 106 Second error was fixed by changing: $this->_last_error = xml_get_current_line_number($this->_parser) . ": ". xml_error_string($this->_parser); to: $this->_last_error = xml_get_current_line_number($this->_parser) . ": ". xml_error_string(xml_get_error_code($this->_parser)); But the first one still remains. Additionally, the outputted XML error is: 1: Not well-formed (invalid token) Can this please be fixed? I can't find any other MusicBrainz 2 PHP libraries. This applies to both the 2.x branch and the 1.x branch. Using 2.x for the examples. My code: try{  $mbQuery = new mbQuery();  $trackFilters = new mbTrackFilter();  $trackFilters->title('…Baby One More Time');  $trackFilters->artistName('Britney Spears');  $trackFilters->limit('5');  var_dump($mbQuery->getTracks($trackFilters)); } catch(mbRequestError $e) {  echo $e->getMessage(); } catch(mbResponseError $e) {  echo $e->getMessage(); } catch(Exception $e) {  echo $e->getMessage(); } Log: PHP Warning: require_once(mbCdStub.php): failed to open stream: No such file or directory in /path/to/mbQuery.php on line 53 PHP Fatal error: require_once(): Failed opening required 'mbCdStub.php' PHP Warning: require_once(mbUser.php): failed to open stream: No such file or directory PHP Fatal error: require_once(): Failed opening required 'mbUser.php' Renamed mbCdstub.php to mbCdStub.php; copied mbUser.php from the 1.x branch to 2.x; and these went away, but then I got: PHP Notice: Undefined index: HTTP_status in /path/to/mbWebService.php on line 154 PHP Warning: xml_error_string() expects parameter 1 to be long, resource given in /path/to/xml/xmlParser.php on line 106 Second error was fixed by changing: $this->_last_error = xml_get_current_line_number($this->_parser) . ": ". xml_error_string($this->_parser); to: $this->_last_error = xml_get_current_line_number($this->_parser) . ": ". xml_error_string(xml_get_error_code($this->_parser)); But the first one still remains. Additionally, the outputted XML error is: 1: Not well-formed (invalid token) Can this please be fixed? I can't find any other MusicBrainz 2 PHP libraries.
2011-08-22 21:48:37 Hugh Guiney description This applies to both the 2.x branch and the 1.x branch. Using 2.x for the examples. My code: try{  $mbQuery = new mbQuery();  $trackFilters = new mbTrackFilter();  $trackFilters->title('…Baby One More Time');  $trackFilters->artistName('Britney Spears');  $trackFilters->limit('5');  var_dump($mbQuery->getTracks($trackFilters)); } catch(mbRequestError $e) {  echo $e->getMessage(); } catch(mbResponseError $e) {  echo $e->getMessage(); } catch(Exception $e) {  echo $e->getMessage(); } Log: PHP Warning: require_once(mbCdStub.php): failed to open stream: No such file or directory in /path/to/mbQuery.php on line 53 PHP Fatal error: require_once(): Failed opening required 'mbCdStub.php' PHP Warning: require_once(mbUser.php): failed to open stream: No such file or directory PHP Fatal error: require_once(): Failed opening required 'mbUser.php' Renamed mbCdstub.php to mbCdStub.php; copied mbUser.php from the 1.x branch to 2.x; and these went away, but then I got: PHP Notice: Undefined index: HTTP_status in /path/to/mbWebService.php on line 154 PHP Warning: xml_error_string() expects parameter 1 to be long, resource given in /path/to/xml/xmlParser.php on line 106 Second error was fixed by changing: $this->_last_error = xml_get_current_line_number($this->_parser) . ": ". xml_error_string($this->_parser); to: $this->_last_error = xml_get_current_line_number($this->_parser) . ": ". xml_error_string(xml_get_error_code($this->_parser)); But the first one still remains. Additionally, the outputted XML error is: 1: Not well-formed (invalid token) Can this please be fixed? I can't find any other MusicBrainz 2 PHP libraries. This applies to both the 2.x branch and the 1.x branch. Using 2.x for the examples. My code: try{  $mbQuery = new mbQuery();  $trackFilters = new mbTrackFilter();  $trackFilters->title('…Baby One More Time');  $trackFilters->artistName('Britney Spears');  $trackFilters->limit('5');  var_dump($mbQuery->getTracks($trackFilters)); } catch(mbRequestError $e) {  echo $e->getMessage(); } catch(mbResponseError $e) {  echo $e->getMessage(); } catch(Exception $e) {  echo $e->getMessage(); } Log: PHP Warning: require_once(mbCdStub.php): failed to open stream: No such file or directory in /path/to/mbQuery.php on line 53 PHP Fatal error: require_once(): Failed opening required 'mbCdStub.php' PHP Warning: require_once(mbUser.php): failed to open stream: No such file or directory PHP Fatal error: require_once(): Failed opening required 'mbUser.php' Renamed mbCdstub.php to mbCdStub.php; copied mbUser.php from the 1.x branch to 2.x; and these went away, but then I got: PHP Notice: Undefined index: HTTP_status in /path/to/mbWebService.php on line 154 PHP Warning: xml_error_string() expects parameter 1 to be long, resource given in /path/to/xml/xmlParser.php on line 106 Second error was fixed by changing: $this->_last_error = xml_get_current_line_number($this->_parser) . ": ". xml_error_string($this->_parser); to: $this->_last_error = xml_get_current_line_number($this->_parser) . ": ". xml_error_string(xml_get_error_code($this->_parser)); But the first one still remains. Additionally, the outputted XML error is: 1: Not well-formed (invalid token) Can this please be fixed? I can't find any other MusicBrainz 2 PHP libraries.