Whenever i try to create a wordpress website with a long domain name, cloudpanel automatically inserts user field, ok but if i try to save it say me is too long An error has occurred, error message: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1470 String 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' is too long for user name (should be no longer than 32)
ok, but if i change it manually, it gives me error too, it creates a website (not wordpress, just index php), with the correct shortname, but something block during the website installation, so it won't install wordpress.
So it takes the manual edit of the username, but doesn't take it "completely" cause it still causes an error.
How to reproduce
try to create a website with a very long domain name
Possible Solution
1 disable automatic user field suggestion, and accept only manual insert
2 instead of using as user the full domain name auto generate a short version (example xyzzzzzzzzzzz becomes xyz)
3 whenever username is changed manualy, it has priority updating the form sent.
Additional Context
as you can see i wrote a "short" username (look at the long domain name) but it still gives me error as i used the long auto suggested username
CloudPanel version(s) affected
2.4.1
Description
Whenever i try to create a wordpress website with a long domain name, cloudpanel automatically inserts user field, ok but if i try to save it say me is too long
An error has occurred, error message: An exception occurred while executing a query: SQLSTATE[HY000]: General error: 1470 String 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' is too long for user name (should be no longer than 32)
ok, but if i change it manually, it gives me error too, it creates a website (not wordpress, just index php), with the correct shortname, but something block during the website installation, so it won't install wordpress. So it takes the manual edit of the username, but doesn't take it "completely" cause it still causes an error.
How to reproduce
try to create a website with a very long domain name
Possible Solution
1 disable automatic user field suggestion, and accept only manual insert 2 instead of using as user the full domain name auto generate a short version (example xyzzzzzzzzzzz becomes xyz) 3 whenever username is changed manualy, it has priority updating the form sent.
Additional Context
as you can see i wrote a "short" username (look at the long domain name) but it still gives me error as i used the long auto suggested username