Closed (fixed)
Project:
Domain
Version:
5.x-1.0
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
25 Dec 2007 at 11:16 UTC
Updated:
27 Mar 2008 at 17:14 UTC
Hi,
When I add a user and want to create a userdomain automaticly or by using the checkbox, I get the following after creating the user:
Your personal URL could not be created.
I have had this working but can't figure out what setting it was before. I was testing the system so I enabled a lot of options and finally it worked, but for the moment it doesn't and I need to find out what setting I need.
Thanks
Comments
Comment #1
agentrickardThe role must be given the 'create personal domain' permission. And the settings must be configured at 'admin/build/domain/user'.
There may also be a bug here.
Comment #2
MatBoy commentedHi,
Still the same issue with these settings.
What I know is when I had it working before that the username, so also subdomain, I addes was not listed under the userdomains so that a specific username could not be registered anymore.
When I manually add a subdomain, the userdomain is listed.
Comment #3
agentrickardI do not understand what you are trying to report.
Here is some background on the design.
-- By design, if you create one.example.com, the username 'one' can no longer be registered or used.
-- Domains created by users are stored in the {domain_user} table and shown as the list of user domains.
There may be bugs here, so a clear report (including URLs, steps taken, access settings) would be helpful.
Comment #4
agentrickardThere was a bug in the creation sequence. Should be fixed in HEAD today.
Comment #5
NeuZeitgeist commentedThe same story is for me. Yesterday it worked. Yesterday - all my troubles seemed so far away... I reinstalled Domain access and right now module doesn't create subdomains on users' registration... What to do?!
I activated "create personal domain" in Access control for anonimous users.
In "User domain settings" I activated "Automatically create domains for new users"
for "User login behavior" - "On login, go to personal domain"
Domain table prefixing -Obey the settings in Domain Prefix (I don't want to create prefix)
In my table "users" for users there is hote like this: "a:1:{s:11:"domain_user";a:1:{i:0;i:-1;}}" But in table user_domain there are nothing.
Comment #6
agentrickardThis may be related to http://drupal.org/node/228178
What is the root domain for new user domains set to?
Comment #7
agentrickardIt may also be that this is occurring for non-anonymous users, so any role that should be able to create a domain should get the 'create personal domain' permission.
The line in the code that controls this behavior is:
To debug, put in this code:
Then copy that to a text file and attach here.
Comment #8
NeuZeitgeist commentedRegistered user can create subdomain manualy if set "Ask users if they would like to create a domain". But only as registered user. Anonimous user still can't create subdomain, even if set "Ask users if they would like to create a domain" and "create personal domain" in Access control.
Comment #9
agentrickardThere's a logic error somewhere. Investigating.
[Only assign issues to yourself if you are working on the patch.]
Comment #10
agentrickardI can only replicate this error under the following conditions:
-- If anonymous users have the 'create personal domain' permission
-- And authenticated users do not have the 'create personal domain' permission
I think this is a documentation issue. You must give the permission to 'anonymous users' to allow creation during account signup. But during the signup process, those users become 'authenticated' -- so half of the permission check works, and the other half fails.
Here is the current documentation:
Suggested change is:
Comment #11
agentrickardComment #12
agentrickardThis has been committed.
Comment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.