XML API request "std_fwd" cannot set hosting type to forwarding for existing domain

Created:

2017-06-30 07:29:22 UTC

Modified:

2017-08-08 13:16:55 UTC

0

Was this article helpful?


Have more questions?

Submit a request

XML API request "std_fwd" cannot set hosting type to forwarding for existing domain

Symptoms

XML-RPC API request to set hosting type to "forwarding" for existing domain:

    <?xml version="1.0" encoding="UTF-8" ?>
<packet version="1.6.8.0">
<site>
<set>
<filter>
<name>example.com</name>
</filter>
<values>
<hosting>
<std_fwd>
<dest_url>https://www.exampleurl.com/<dest_url>
<http_code>301</http_code>
</std_fwd>
</hosting>
</values>
</set>
</site>
</packet>

fails with an error:

        <result>
<status>error</status> <errcode>2204</errcode>
<errtext><ip_address> node should be defined</errtext>
<filter-id>example.com</filter-id>
<id>16</id>
</result>

As a result, hosting type is not changed.

Cause

This behavior is considered as bug PPPM-6583: API request "std_fwd" cannot set hosting type to forwarding for existing domain. It will be changed in future Plesk updates.

Resolution

As a workaround, replace original AgentHosting.php with the attached one following the steps below:

1. Download the file:

# wget https://plesk.zendesk.com/hc/article_attachments/115000840913/AgentHosting.tar.gz

2. Back up the original one:

# mv /usr/local/psa/admin/plib/api-rpc/AgentHosting.php{,.orig}

3. Unzip the downloaded file to the appropriate folder:

# tar -zxvf AgentHosting.tar.gz -C /usr/local/psa/admin/plib/api-rpc/

Attachments:

Have more questions? Submit a request
Please sign in to leave a comment.