Skip to main content

WHM 62 (Build 19 / 20) / Listpkg API Bug

Comments

10 comments

  • cPanelMichael
    Hello @Fr3DBr, I'm currently unable to reproduce the issue you have reported. Could you verify which specific steps you are taking to reproduce the issue, and the privileges you have assigned to the reseller account? Thank you.
    0
  • Fr3DBr
    Hi, Michael. 1) Make a new order in WHMCS w/ a Web Hosting Service. 2) Go to Product Details change the product with package A (the one which was ordered) to package B (the one you will upgrade to). 3) Press "Change Package" and wait. 4) You'll get the following error message:
    Module Command Error Product attribute Package Name "PACK_2" not found on server
    When checking module logs, we can get the following informations (screenshot attached). Basically, listpkgs API returns access denied. But what is curious is, it only happens with "Change Package", if you go to the "product setup" and check the "package list" you can see all them, because everything is returned properly. As you can see in Image 2, also attached. It's the same server, with same reseller account and same privileges as you can see.
    0
  • cPanelMichael
    Hello, I recommend reporting this issue to the WHMCS support team. You can find their support forums at: WHMCS Community Forums Thank you.
    0
  • Fr3DBr
    Hello, I recommend reporting this issue to the WHMCS support team. You can find their support forums at: WHMCS Community Forums Thank you.

    I've did, and they've told me to speak with you. :D (Look the screenshot).
    0
  • cPanelMichael
    Hello, Could you access WHM as the reseller, and append the browser URL to the "listpkgs" WHM API 1 function to see the output? EX:
    https://hostname.example.com:2087/cpsess##########/json-api/listpkgs?api.version=1
    Does this produce a list of the available packages, or do you see the error message? Thank you.
    0
  • Fr3DBr
    Hello, Could you access WHM as the reseller, and append the browser URL to the "listpkgs" WHM API 1 function to see the output? EX:
    https://hostname.example.com:2087/cpsess##########/json-api/listpkgs?api.version=1
    Does this produce a list of the available packages, or do you see the error message? Thank you.

    Hi, Michael. I've logged as the reseller and tried your link, this is what is returned: {"data":{"pkg":[]},"metadata":{"command":"listpkgs","version":1,"reason":"OK","result":1}} (No package list) But the reseller account has the option to "allow usage of global packages" enabled.
    0
  • cPanelMichael
    I've logged as the reseller and tried your link, this is what is returned: {"data":{"pkg":[]},"metadata":{"command":"listpkgs","version":1,"reason":"OK","result":1}} (No package list) But the reseller account has the option to "allow usage of global packages" enabled.

    Could you open a support ticket using the link in my signature so we can take a closer look and determine why the available packages aren't listed on the affected system? You can post the ticket number here and we will update this thread with the outcome. Thank you.
    0
  • Fr3DBr
    Could you open a support ticket using the link in my signature so we can take a closer look and determine why the available packages aren't listed on the affected system? You can post the ticket number here and we will update this thread with the outcome. Thank you.

    Sure, btw seems this link has some issue with CSS right now, as things are showing a bit messed up. It's done, ticket ID: 8363987 Thanks.
    0
  • cPanelMichael
    Hello, To update, it looks like a new WHMCS support ticket was opened to report this issue. Feel free to update this thread with the outcome once you hear back. Thanks!
    0
  • Fr3DBr
    Hello, To update, it looks like a new WHMCS support ticket was opened to report this issue. Feel free to update this thread with the outcome once you hear back. Thanks!

    Hi, Michael. Yes, by discussing with the support department, this is related to a change WHMCS might do in order to work in this scenario.
    0

Please sign in to leave a comment.