The form to manage domain alias /admin/structure/domain/view/[domain id]/alias is not showing existing alias for that domain with message "There are no aliases for this domain.", but the domain has alias on domain_alias table (on database) and all are working fine.
With a little of debug I saw that on file domain_alias.admin.inc on line 288 the function element_children returns an empty array. But I think the problem could be on function domain_alias_form, on line 51 of the same file, when you try to get the list of all existing aliases and the domain["aliases"] is not set.
I hope it helps.

Comments

agentrickard’s picture

Status: Active » Postponed (maintainer needs more info)

Cannot replicate.

Did you upgrade from 7.x.2?

josebrito’s picture

Yes, but not directly because I had the same problem with 7.x-3.1.

agentrickard’s picture

That doesn't really help.

Do you have any items with domain_id of 0 (zero) in the {domain_alias} table? That would explain the problem and indicate an incomplete upgrade.

josebrito’s picture

No. I don't have any item with domain_id of 0 (zero) in the {domain_alias} table.

agentrickard’s picture

Well, I cannot reproduce the error.

Any idea why you are getting that empty value?

josebrito’s picture

No idea. On my debug I only get to those conclusions. But I'll try to understand why domain["aliases"] is empty.
Thanks any way.

agentrickard’s picture

Well, if you can give me steps to reproduce, I can help. Otherwise, there isn't anything I can do.

agentrickard’s picture

Is it possible that the alias is wildcarded to a domain other than the one you think it is? The new server info block can help you debug that.

gasloff’s picture

same thing happened

subscribe to topic

agentrickard’s picture

@gasloff

Please include an ordered list of steps to replicate.

Inability to replicate the report has stalled this issue.

stevendeleus’s picture

I have the same problem. As best as I can describe these are the steps to replicate:
- I created two domains that need to serve different content
- all content was added
- when the second domain needed to go online, I changed the temporary domain name domain.tmp.tld to domain.tld
- to make sure the temp domain was still accessible for checking before DNS records were correctly found, I added the temp domain domain.tmp.tld as an alias of domain.tld
- at that time the aliases don't show up any more

The changes needed to be made from the first domain. Making changes on the second domain is not allowed because of domain module settings. Even though the aliases don't show up, they are added and they work.

agentrickard’s picture

Status: Postponed (maintainer needs more info) » Active
agentrickard’s picture

Status: Active » Postponed (maintainer needs more info)

I cannot replicate this issue.

What _path_ are you trying to access that doesn't return anything? What does that page, in fact, return?

Screenshots and URLs are required.

stealthtech1’s picture

Priority: Normal » Major

I have this same issue.

Been developing a site with 5 domains for couple months now and this problem persisted from the start.

I cannot give you steps to reproduce as its been so long ago when i loaded the domains in the first place.

After added aliases to a domain the edit form just shows: "There are no aliases recorded for this domain."

Although the aliases work, they just not shown on the edit form and therefore i cannot make any changes to them.

The domain_alias sql table have all the aliases there that i loaded. It just doesnt show on the edit form. just gives the above message of no aliases recorded for this domain.

Could it be another module? perhaps if i list them here you can just tell "off the bat" if any of them could pose a risk at clashing with domain module:
ACL
Forum Access
User Permissions
Revisioning
Diff
Advanced Forum
Entity
Redirect
Support
Ubercart

agentrickard’s picture

Priority: Major » Normal

No idea. I have never been able to reproduce this issue.

agentrickard’s picture

What does this mean: The domain_alias sql table have all the aliases there that i loaded

Loaded HOW?

stealthtech1’s picture

StatusFileSize
new44.31 KB

Sorry with loaded i mean "added through the admin edit form" here: /admin/structure/domain/view/1/alias.

Example:
I enter name(s) in the "Add new aliases" form fields and tick redirect if needed. Then click "Save aliases".
These details i just entered and saved is correctly processed and inserted in the "domain_alias" table.

But just doesnt show previously added aliases on this page. See attachment. This domain has got couple aliases saved already for it.

agentrickard’s picture

What's in the {domain_alias} table?

As you can see, the history of this issue has not been very good. That screen shot doesn't really tell me anything because I cannot replicate it.

stealthtech1’s picture

StatusFileSize
new31.92 KB
new53.47 KB

See attached

agentrickard’s picture

Version: 7.x-3.2 » 7.x-3.x-dev
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I cannot replicate this issue. Perhaps some other module is interfering.

agentrickard’s picture

If you can come up with steps to reproduce, please reopen the issue.

agentrickard’s picture

Status: Closed (cannot reproduce) » Active

And magically, I just duplicated this issue, but I don't know how.

agentrickard’s picture