Jump to content

Recommended Posts

Posted

with the solusvm module the getPlan() always return a empty data; when we have checked we found maybe something wrong the parseResponse.

a dump for the whole fucntion $this->parseResponse($plans_api->getDetails($params), $module_row)  return

stdClass Object ( [status] => success [statusmsg] => [plans] => ) 

the correct data well fetched from the solusvm, a dump for the fucntion  $plans_api->getDetails($params)  return

SolusvmResponse Object ( [xml:SolusvmResponse:private] => SimpleXMLElement Object ( [status] => success [statusmsg] => SimpleXMLElement Object ( ) [plans] => SimpleXMLElement Object ( [plan] => SimpleXMLElement Object ( [id] => 1 [name] => Starter [ipv6subnets] => 0 [automatedbackups] => 0 [cpus] => 4 [ram] => 2147483648 [swap] => SimpleXMLElement Object ( ) [disk] => 85899345920 [bandwidth] => 1073741824000 ) ) ) [raw:SolusvmResponse:private] => success 1 Starter 0 0 4 2147483648 85899345920 1073741824000 ) 

this is in service creation .

 

Posted

the found the probleme, in formatResponse() i have removed the check for array , changed 

if (property_exists($value, 'plan') && is_array($value->plan)) {

to

if (property_exists($value, 'plan') /*&& is_array($value->plan)*/) {

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...