You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is technically a cPanel bug, but something that can be addressed in the xmlapi-php code in the meantime.
Attempting the following code seems to work, doesn't return an error or invalid code, but does not work correctly:
$xmlapi->setresellerips($reseller, $ipaddress);
That is, if you verify the result in WHM by selecting the reseller and their IP allocation, it is incorrect. The API documentation mentions that the IP addresses must be separated by a comma. Even if you are only passing a single value, the API seems to want this to end in a comma. Our workaround is as follows:
Hi there,
This is technically a cPanel bug, but something that can be addressed in the xmlapi-php code in the meantime.
Attempting the following code seems to work, doesn't return an error or invalid code, but does not work correctly:
$xmlapi->setresellerips($reseller, $ipaddress);
That is, if you verify the result in WHM by selecting the reseller and their IP allocation, it is incorrect. The API documentation mentions that the IP addresses must be separated by a comma. Even if you are only passing a single value, the API seems to want this to end in a comma. Our workaround is as follows:
$xmlapi->setresellerips($reseller, $ipaddress . ",");
Cheers.
The text was updated successfully, but these errors were encountered: