notice with failed request
まだ誰も着手していません。
評価
調査の方向性
Start at src/Api/Client.php line 163 and reproduce the request against the Plesk 17.0 API using the XML shown in the report. Compare the response without a result attribute with the Plesk XML API documentation; the issue is resolved when this response is handled without an undefined-offset notice and the expected behavior is verified.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- PHP
- スター
- 157
- フォーク
- 79
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
plesk/api-php-lib のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
plesk/api-php-lib#163 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
plesk/api-php-lib#152 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
plesk/api-php-lib#78 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
plesk/api-php-lib#75 · コメント 2 件 · リアクション 4 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
plesk/api-php-lib#73 · コメント 4 件 ·
plesk/api-php-lib の issue をすべて見る
似ている issue
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
Перевод устарел
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
status/awaiting_triage
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
Issue: ready for confirmation Reported on 2.4.x
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100