Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Problem with changepackage

Discussion in 'cPanel Developers' started by techteen, Nov 12, 2009.

  1. techteen

    techteen Active Member

    Joined:
    Jul 31, 2004
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    151
    Hello all, I am having a problem with the changepackage API.

    $acct = array( username => $username, pkg => $plan );
    print $xmlapi->changepackage($acct);


    Everytime i execute that, it tells me "Warning: Missing argument 2 for xmlapi::changepackage(), called in /home/jefftest/public_html/api/planmod.php on line 33 and defined in /home/jefftest/public_html/api/xmlapi.php on line 1050"

    Any thoughts?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. techteen

    techteen Active Member

    Joined:
    Jul 31, 2004
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    151
    Fixed, i didnt need the array.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice