Hi,

When attempting to post new content from a non-primary domain, the "Publish to:" options under the Domain Access settings are incorrect. I have two sites both running on the same codebase, and from the primary domain, both sites appear correctly, both giving the correct names.

However, when adding/editing content on the secondary domain, both options have the name of the secondary domain.

The function domain_domains() seems to have the same problem.

Comments

agentrickard’s picture

Status: Active » Postponed (maintainer needs more info)

I don't understand. Screen shot, please.

Anonymous’s picture

I think I have found the problem. Found it while attempting to anonymize the site in order to take a screenshot.

There is a set of duplicate domain variables for each site, including variables called domain_root and domain_sitename which have values both for the primary domain (Organization 1) and for the secondary domain (Organization 2), so, for example, Organization 1 and organization1.com is showing as the primary domain on the actual primary domain at organization1.com/admin/build/domain/settings, and for the secondary domain, Organization 2 and organization2.com is showing as the primary domain at organization2.com/admin/build/domain/settings.

The domains seem to be otherwise correctly configured; at admin/build/domain on both domains, Organization 1 is showing as the primary domain and Organization 2 is showing as the secondary domain, though none of the menu links for Organization 2's on this page work from the secondary domain. They do however work from the primary domain.

I appreciate that's a whole lot of words. Both sites have different variable tables, which may be a symptom of the problem. Is it alright to just delete these values in the second domain's variable table? I have inherited this setup from someone else, so I'm not totally sure how they got in there. Trying to change them to match the primary domain from the secondary domain's admin page gives the error "The domain value must be unique."

agentrickard’s picture

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

The prefixed variables table is the cause of your problem (not a symptom). I recommend you remove that.

Domain Conf and Domain Settings are designed to handle variable switching for you. So use those instead.

Anonymous’s picture

Thanks, will do so.

Anonymous’s picture

Status: Active » Fixed

This works perfectly, thank you very much for your speedy response! I've made a note of that problem for future reference.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.