Hi,

I'm using Domain Access 5.x-1.9 on Drupal 5.14. I have enabled Domain User module and given "create personal domain" for both anonymous & authenticated users. When users register, they get the message as their personal URL (username.domain.com) is created. But, actually an invalid entry is made as ".domain.com".

How to resolve this issue?

Thanks in advance,

With regards,
R Kaja Mohideen
- Cheap & Best Domain Names

Comments

agentrickard’s picture

Category: support » bug
Priority: Normal » Critical
Status: Postponed (maintainer needs more info) » Active

Please do not put spam links in your signature. Using the name of your company is fine, but using such a generic signature may get your account banned.

agentrickard’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

I cannot replicate this issue. More information needed.

What PHP version? What database and version?

kajamohideen’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Postponed (maintainer needs more info)

My Webserver configuration

Apache 2.2.11
PHP Version: 5.2.8
MySQL Version: 5.0.67
Drupal 5.14

My settings are as follows:

Domain Module Behavior:
New Content Setting: Only show on selected sites
Content Editing forms: Take user to their assigned domain

Advanced Settings
Domain-based editing controls: Use access control for editors
Search settings: Search content for the current domain only
Search engine optimization: Do not rewrite URLs
Default source domain: Do not change domain
WWW prefix handling: Treat www.*.example.com as an alias of *.example.com

User Domain
Module behavior: Automatically create domains for new users
Root domain name: mydomain.com
User login behavior: On login, go to personal domain

With regards,
R Kaja Mohideen
vHost4All.com - Domain Name Registrations from $4.5/Year

agentrickard’s picture

Status: Postponed (maintainer needs more info) » Active

I still cannot replicate this. Using:

MySQL: 5.0.41
PHP: 5.2.5
Apache: 2.0.59

Are the usernames in a language other than English? That's one possibility, since only English letters and numbers are allowed in hostnames. But that would give you domains like '-----.myexample.com'.

All the creation happens within domain_user_user(), so look there for any problems. Perhaps the drupal_execute() on line 267 is not working correctly.

kajamohideen’s picture

I have found the issue...

I have enabled Administrator Approval for users in my sandbox site. But, when there is no approval it works fine. With approval, its creates .mydomain.com :-(

Hope, you can try to reproduce this issue.

agentrickard’s picture

Hm. I tried that and it didn't happen. Will try again.

agentrickard’s picture

No. Still cannot replicate, even with the settings above.

Do you have any other registration modules or user modules enabled that might alter how normal Drupal registration works?

kajamohideen’s picture

I have pathauto to generate aliases... Will that impact this?

agentrickard’s picture

It might, if somehow pathauto is intercepting the flow of form processing. I may be able to test that.

agentrickard’s picture

Still no success in replicating, even with PathAuto running.

kajamohideen’s picture

Have you tried that with both PathAuto Enabled and Administrator Approval for New user registration combination?

agentrickard’s picture

Yes.

agentrickard’s picture

Status: Active » Closed (fixed)

Closing. Could never replicate the reported error.