UpCloudLtd / upcloud-whmcs-module

A module for integrating UpCloud's services with WHMCS web hosting platform
MIT License
9 stars 10 forks source link

Need correction wrong storage when deploy server #19

Closed okamah closed 3 years ago

okamah commented 4 years ago

Hi,

I just download modul and activate in my backend. when i trying to create, system execute storage only 10GB even though I have choose a plan, but it force it to 10Gb storage, when i check script in file manager.php I found this parameter 10 that trigger deployment with 10Gb:

--

public function createServer() { $zone = ($this->params['configoptions']['Location'] == '') ? $this->params['configoption1'] : $this->params['configoptions']['Location']; $size = ($this->params['configoptions']['Storage'] == '') ? 10 : $this->params['configoptions']['Storage'];


because my coding skill very bad, any body can help me to correction above variable $size? I just remove only 10, but error storage parameter invalid.

thank you

wpexpertinbd commented 4 years ago

if you are using "testing credit" then upgrade your account to normal hope it will solve the issue.

SPCnet commented 3 years ago

Hi,

I have the same problem. I've created the service plans as described in the guide, where only Plan, Location and OS has to been selected. Every server created through the plugin have 10gb of storage, regardless of the selected plan.

My account is normal. I've made a one-time payment before start to use the WHMCS plugin.

created service

isarpila commented 3 years ago

This is now possible due to recent update we did into module. Feel free to open a new issue in case you have notices something not working though.