Results 1 to 7 of 7

Thread: PHP Acccounting - unlimited bandwidth limit.

  1. #1
    Member
    Join Date
    Sep 2002
    Posts
    11

    Default PHP Acccounting - unlimited bandwidth limit.

    Hi,

    I am trying to us the PHP accounting module - every now and again when createacct() executes I get:

    Sorry, you cannot create an account with an unlimited bandwidth limit.

    Yet none of my packages use unlimited bandwidth - any ideas?

  2. #2
    Member
    Join Date
    Jan 2002
    Location
    UK
    Posts
    248

    Default

    /var/cpanel/packages

    regardless of what whm says, check that your packages do have bandwidth limits. If this is correct then maybe your post is getting corrupted somewhere - using SSL may help?

  3. #3
    Member
    Join Date
    Sep 2002
    Posts
    11

    Default

    Hi,

    All of the packages have b/w limits, and using SSL just gives a blank reply anyone got any other ideas?

    The code I use is simple:

    PHP Code:
    $reply createacct ($host,$user,$accesshash,$usessl,$acctdomain,$acctuser,$acctpass,$acctplan); 
    But $reply comes back with:

    "Sorry, you cannot create an account with an unlimited bandwidth limit."

    I can't seem to find anything wrong.

  4. #4
    Member
    Join Date
    Jan 2002
    Posts
    51

    Default

    for unlimited try -1 as the value instead of "unlimited" :P

  5. #5
    Member
    Join Date
    Sep 2002
    Posts
    11

    Default

    The thing is - I don't want unlimited, none of the fields are set that way.

  6. #6
    Member
    Join Date
    Jan 2002
    Posts
    51

    Default

    do a var_dump($var); on all the variables you are trying to put into the createacct function to see if any are coming up blank; so that you are certain, it seems like a script error or a variable not being assigned properly

  7. #7
    Member
    Join Date
    Jul 2002
    Posts
    186

    Default

    Check that your package name does not have a space in it (i.e. MyPlan instead of My Plan)
    UNIX Sex
    {look;find;talk;grep;touch;finger;find;flex;unzip;mount;workbone;
    fsck;yes;gasp;fsck;yes;eject;umount;makeclean;zip;split;done;exit}

Similar Threads

  1. Show current bandwidth on limit bandwidth screen
    By oaktree in forum Feature Requests for cPanel & WHM
    Replies: 1
    Last Post: 02-21-2011, 03:16 PM
  2. Replies: 0
    Last Post: 10-02-2009, 05:50 AM
  3. a bug of unlimited bandwidth?
    By meeti in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 05-05-2008, 09:20 AM
  4. question about accessing acccounting.php.inc
    By teknowebworks in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 03-16-2004, 04:21 PM
  5. Unlimited bandwidth
    By (SH)Saeed in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 09-30-2002, 01:32 AM