api-php-lib icon indicating copy to clipboard operation
api-php-lib copied to clipboard

notice with failed request

Open metallou opened this issue 6 years ago • 0 comments

Hi,

I am getting a notice with a seeminlgy failed request:

Notice: Undefined offset: 0 in C:\DEV\sites\tools-si\vendor\plesk\api-php-lib\src\Api\Client.php on line 163

dumping the $xml variable yields the following: object(PleskX\Api\XmlResponse)[475] public '@attributes' => array (size=1) 'version' => string '1.6.9.0' (length=7) public 'site' => object(PleskX\Api\XmlResponse)[241] public 'get' => object(PleskX\Api\XmlResponse)[474]

there is no 'result' attribute under 'get'

Here's my request: PARENT_NAME <gen_info /> <disk_usage />

with PARENT_NAME being the name of a webspace as speciefied by the guide: https://docs.plesk.com/en-US/onyx/api-rpc/about-xml-api/reference/managing-sites-domains/available-filters.66544/

plesk version for this server is 17.0

running with "plesk/api-php-lib": "1.0.4" in composer.json

It would be awesome for all these info to be available with php and not though requests

metallou avatar Feb 28 '19 16:02 metallou