Trying to create a website with following code
Also tried:
Both give me a "too many values to unpack" error:
... Is there something I'm missing? Thanks! EDIT: Here is a dump of the object I create (obfuscated):
asked 19 Dec '14, 17:14 soca_kin |
The error seems to suggest that one of the object types you are using is wrong. Have you tried the code without using variables such as $app_site_name or $clientdomain but using the raw data instead? answered 20 Dec '14, 00:37 johns Hi John I just tried it without any variables - all 3 variables i am using are not only appropriate types (string) but also I'm using them in other API calls (to create a subdomain, for example) and they work fine there... So I'm stumped! Any more help? EDIT: please see above edit for the dump of the object I send...
(22 Dec '14, 15:46)
soca_kin
Nearly everyone who interacts with our API does so through Python, and not PHP. Since this isn't very well-tested from PHP, the problem really could be anywhere, including within the PHP XML-RPC library you're using itself. Which PHP version and XML-RPC versions are you using? In order to debug further, it would really help to see a full script which we can run to reproduce the problem for further investigation. Can you upload such a script to your account which we can run, and tell us where you've placed it? Also, how do you call it (from the command line? From a web application?)
(23 Dec '14, 10:27)
ryans ♦♦
|