Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Domain User doesn't create a new domain when a new account is created. No error messages in the logs either.
Comments
Comment #1
agentrickardYes, it does. Check your settings and try again.
And more information, please, if you want any support.
Comment #2
fizk CreditAttribution: fizk commentedThanks agent, here are the problems:
- I'm expecting to see new subdomains listed under /admin/build/domain, is that right?
- After setting /admin/build/domain/user, I'm expecting to be directed to myusername.example.com, but I'm redirected to www.example.com (front page), or www.example.com/user/xx
In my DNS settings (GoDaddy), *.example.com points to the main IP address for my webserver. (ie. browsing to subdomain.example.com shows the main website).
I've read the README, but this is my first time using Domain Access and Domain User.
Comment #3
agentrickardDomain User will not auto-populate domains for existing users. You have to edit the user to create a domain.
Comment #4
fizk CreditAttribution: fizk commentedSorry, I meant to say this happens when creating new users.
Comment #5
agentrickardYou'll have to be sure you have everything set up (in Drupal) correctly and that no other modules are interfering with user registration.
Domain User doesn't get a lot of attention (in D7 it's split to a new project), and I can't possibly begin to debug this without any information.
One quick thing: Make sure anonymous users have the permission to create their own domains. This is a documented quirk.
See section 3 of the Domain User README.
Comment #6
fizk CreditAttribution: fizk commentedAhh! That did the trick :)
OK, so that's very odd that the permissions had to be set separately without any notice. Here's my recommendation:
1. When User Domain settings 'module behaviour' is "Automatically create domains for new users", the module should output a warning message if the permissions "create personal domain", and "create user domains" aren't set.
2. Mention this in the field's description.
Comment #7
fizk CreditAttribution: fizk commentedComment #8
agentrickardNo. This is DOCUMENTED. Other modules don't warn you about setting permissions through the UI.
Comment #9
Al.D CreditAttribution: Al.D commentedhi agentrickard.
Thank you for pointing this out. Yes, this "did the trick".
One thing about this is still awkward though:
- logging in as superuser (1)
- adding users who want sub-domains
- NOT setting, that anonymous users are allowed to "create personal domain", but authenticated users are.
- wondering, why sub-domains aren't created
- printing out dozens of pages from all the readme's instructions, browsing and checking a day's work log and carefully deciding, that the following section was not to be set for my case:
/**
* @file
* README file for Domain User.
*/
section 3, paragraph 5:
If you want users to be able to create subdomains when they register, you must
give this permission to the 'anonymous users' role and to the 'authenticated
users' role.
This does not make sense to me, personally, because I do not want them to be able to edit the configurations that I have set. This is my job.
Thanks a lot for your work though. Very nice to see these efforts contributed.
I would clarify this section though, so that not another one gets caught here.
cheers.
Alec
Comment #10
agentrickardThis sounds like a documentation task. Improvements welcome, but I'm not taking the time to make the changes.
If you have suggestions, I'll take a look, but Domain User is largely unsupported at this point. (It needs a new maintainer for Drupal 7.)