Add addon domain using the API - hooksadmin had an unknown error

buenon

Registered
Feb 22, 2012
3
0
51
cPanel Access Level
Website Owner
Hi,

I encountered a strange issue when trying to add an addon domain via the API.

First I'll clarify that doing it using the web UI works as expected.
However, when i try to do it using the API, the addon domain seems to be added properly, but the API response contains both a success message and an error message "hooksadmin had an unknown error".

Code:
class SimpleXMLElement#27 (6) {
  public $apiversion =>
  string(1) "2"
  public $data =>
  class SimpleXMLElement#29 (2) {
    public $reason =>
    string(142) "Using nameservers with the following IPs: [xxx.xxx.xxx.xxx]\n[ADDON  DOMAIN] was [B][COLOR="#008000"]successfully parked[/COLOR][/B] on top of [SUB DOMAIN]"
    public $result =>
    string(1) "1"
  }
  public $error =>
  string(31) "[B][COLOR="#FF0000"]hooksadmin had an unknown error[/COLOR][/B]"
  public $event =>
  class SimpleXMLElement#28 (1) {
    public $result =>
    string(1) "1"
  }
  public $func =>
  string(14) "addaddondomain"
  public $module =>
  string(11) "AddonDomain"
}
After inspecting the web UI i see that both the addon domain and the subdomain are added properly.

Does anyone have an idea what might be the problem?

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
Hello :)

Could you check the output of the cPanel error log when this happens and let us know if you see any specific messages?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
You can open a support ticket so we can attempt to reproduce this issue with a test script:

Submit A Ticket

Please post the ticket number here so we can update this thread with the solution.

Thank you.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
77
308
cPanel Access Level
Root Administrator
What is your cPanel & WHM version number?

What you are describing matches a problem in earlier releases of cPanel & WHM version 11.38. Build 11.38.0.13 resolves the known problem.
 

tsiedsma

Active Member
Nov 1, 2006
27
0
151
US
cPanel Access Level
Root Administrator
What is your cPanel & WHM version number?

What you are describing matches a problem in earlier releases of cPanel & WHM version 11.38. Build 11.38.0.13 resolves the known problem.
That's good to know, we're currently only deploying Release versions. When will 11.38.0.13 hit Release Tier?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,203
363
That's good to know, we're currently only deploying Release versions. When will 11.38.0.13 hit Release Tier?
We don't provide specific dates on when new releases are pushed out, but 11.38 is expected to make it to the "Release" tier in the next week or two.

Thank you.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,608
77
308
cPanel Access Level
Root Administrator
cPanel & WHM version 11.38 is now in the RELEASE tier.

The build published to that tier (along with EDGE and CURRENT), 11.38.0.16, contains fixes for hookadmin issues. If you continue encountering issues with that, or newer builds of 11.38, please feel free to report those at http://go.cpanel.net/supportrequest