The Community Forums

Interact with an entire community of cPanel & WHM users.
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'cPanel Developers' started by buenon, May 28, 2013.

  1. buenon

    buenon Registered

    Joined:
    Feb 22, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. buenon

    buenon Registered

    Joined:
    Feb 22, 2012
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi,

    I've checked the logs and I didn't see any error.

    Thanks
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    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.
     
  6. tsiedsma

    tsiedsma Active Member

    Joined:
    Nov 1, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ankeny, Iowa
    cPanel Access Level:
    Root Administrator
    Twitter:
    That's good to know, we're currently only deploying Release versions. When will 11.38.0.13 hit Release Tier?
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  8. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    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
     
Loading...

Share This Page