11-18-2013 10:37 AM
Hi,
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!
11-18-2013 02:34 PM
The problem is the same like in http://answers.nuxeo.com/questions/7353/getdocumentlist-error-on-php-automation-client but you have only one document.
11-18-2013 02:34 PM
The problem is the same like in http://answers.nuxeo.com/questions/7353/getdocumentlist-error-on-php-automation-client but you have only one document.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.