array_key_exists() warning when sendRequest() on PHP Automation Client


When I execute a query using PHP Automation Client, I receive a warning from a parameter expected in NuxeoAutomationAPI.php.

The code:

$uid = '9dbfxxxx-xxxx-xxxx-xxxx-xxxxxxxx2b64';
$client = new PhpAutomationClient('http://localhost:8080/nuxeo/site/automation');
$session = $client->getSession('Administrator','Administrator');
$answer = $session->newRequest("Document.Query")->set('params', 'query', "SELECT * FROM Document WHERE ecm:uuid = '" . $uid . "'" )->sendRequest();

The warning:

Warning: array_key_exists() expects parameter 2 to be array, boolean given in C:\wamp\www\utils\nuxeo\NuxeoAutomationAPI.php on line 106

I don't understand what happens but I need to avoid this warning, can someone help me about it?,

Thanks in advance!

0 votes

1 answers



The problem is the same like in but you have only one document.

1 votes