I want to execute a simple query using the PHP CMIS client I got from the Apache Chemistry page. As a proof of concept I figured that the following code should have worked as expected:
<?php
require_once 'cmis_repository_wrapper.php';
$repo_url = 'http://localhost:8080/alfresco/s/cmis';
$repo_username= 'admin';
$repo_password= 'admin';
$query = 'SELECT * FROM cm:document';
$client = new CMISService($repo_url, $repo_username, $repo_password);
$objs = $client->query($query);
foreach($objs->objectList as $obj)
{
print_r($obj);
}
?>
However when I try to run this I get the following error:
Warning: DOMDocument::loadXML(): Entity 'nbsp' not defined in Entity, line: 22 in cmis_repository_wrapper.php on line 392
Am I missing something in my implementation? Or is something wrong with the wrapper provided by the Chemistry project page?