-
-
Notifications
You must be signed in to change notification settings - Fork 119
Description
Hello,
I am having trouble getting a specific list from sharepoint. I tried the example and I also tried the following:
$listTitle = 'Archive 2017'; $list = $this->web->getLists()->getByTitle($listTitle); $this->ctx->load($list); $this->ctx->executeQuery();
Troubleshooting the response I get is:
<TITLE>Bad Request</TITLE>Bad Request
HTTP Error 400. The request is badly formed.
However this is caught at a much later point in the library as a warning but then nothing works:
Severity: Warning
Message: First parameter must either be an object or the name of an existing class
Filename: OData/JsonPayloadSerializer.php
Line Number: 52
Backtrace:
File: /var/www/html/application/third_party/phpSPO/src/Runtime/OData/JsonPayloadSerializer.php
Line: 52
Function: property_existsFile: /var/www/html/application/third_party/phpSPO/src/Runtime/ClientRequest.php
Line: 150
Function: deserializeFile: /var/www/html/application/third_party/phpSPO/src/Runtime/ClientRuntimeContext.php
Line: 129
Function: executeQueryFile: /var/www/html/application/third_party/phpSPO/src/SharePoint/ClientContext.php
Line: 83
Function: executeQuery