I keep getting the error:

Username length must be less than or equal to WHM_MAX_USERNAME_LEN

This is when I am trying to connect to my whm account.

I am using a username with 8 characters as is normal for WHM and as specified in the file: api.inc

Comments

redijedi’s picture

Assigned: Unassigned » redijedi
nandt’s picture

i am experiencing the same problem.
any ideas from the developer?
or anyone that has this up and running?
thanks

redijedi’s picture

I just checked in a fix. The workaround is in includes/admin.inc. The constants there need to be prefixed with the Constants wrapper like:

Constants::WHM_{CONSTANT}

The fix is in head and dev should be updated soon.

redijedi’s picture

Status: Active » Needs review

Tested locally well. Please confirm the fix.

nandt’s picture

hi i update the module
with the one you upload yesterday.
but the problem still exists..

Username length must be less than or equal to WHM_MAX_USERNAME_LEN

this is what you mean. right? just update the module.
in the host i insert the ip of the host : and the post that asked from the provider
then check secure,
and this is a reseller account.
then the username
the username is 8 letter long.
and then the key.
...
i am doing something wrong?
regards

nandt’s picture

and something else
when you click accounts the following error occurs
warning: Invalid argument supplied for foreach() in /home/nemesis/public_html/sites/all/modules/whm/whm_ui/includes/admin.inc on line 26.

when click on plans :
warning: Invalid argument supplied for foreach() in /home/nemesis/public_html/sites/all/modules/whm/whm_ui/includes/admin.inc on line 562.
any ideas?

redijedi’s picture

Status: Needs review » Active

There are two issues here. I opened a new ticket for handling the null arrays: http://drupal.org/node/1053694. I have a fix for that issue pending. I'm currently working on the original issue reported here and will update this thread shortly.

nandt’s picture

ok ..waiting for your good news to be done..

nandt’s picture

checked again.
In the host field i need to add the ip of the host to work..
thanks..
waiting for your news upon new ubercart integration.

Homotechsual’s picture

Status: Active » Closed (fixed)