Hello,
So I seem to be having some troubles with the AddonDomain::addaddondomain function.
This is how I call it:
And the error that I get is:
A folder is being created in the public_html direcotry, but nothing else.
I am able to call other functions like delete and list just fine, but this one seems to be causing problems.
I have searched all over the place and could not find a valid solution.
Thanks!
So I seem to be having some troubles with the AddonDomain::addaddondomain function.
This is how I call it:
PHP:
api2_query($this->cpanelUser, "AddonDomain", "addaddondomain", array('dir' => $this->dir, 'subdomain' => $this->subdomain, 'domain' => $this->domain);
Code:
<cpanelresult>
<apiversion>2</apiversion>
<data>
<reason>Deleted domain: sub.domain.com
Bind reloading on marge using rndc zone: [domain.com]
The subdomain, sub.domain.com has been removed.</reason>
<result>1</result>
</data>
<event>
<result>1</result>
</event>
<func>addaddondomain</func>
<module>AddonDomain</module>
</cpanelresult>
I am able to call other functions like delete and list just fine, but this one seems to be causing problems.
I have searched all over the place and could not find a valid solution.
Thanks!