When using the API to create a new campaign, first an attempt is made to gather all lists. I don't know if this is unique to our data but this code is failing. The value for $call is:
$return = $this->doServerCall($call);
$parsedReturn = simplexml_load_string($return);
$call2 = '';
In our case $parsedReturn is string of 46 spaces causing issues further down stream. I beleive that the Php function simplexml_load_string is failing because the input - $return is incorrectly formatted. It is missing a few elements. I have attached a text file with the resultant XML.
Is there anything I can do?
I am not seeing 46 spaces as the XML you attached. The only issue I am experiencing using the simplexml_load_string function on the XML you attached is that there is no closing </feed> tag. Once I add that the XML is taken without an issue.
Does this code below produce an error for you?