Blesta Addons Posted June 15, 2017 Report Share Posted June 15, 2017 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 . Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted June 15, 2017 Author Report Share Posted June 15, 2017 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)*/) { Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.