Dear all,

I'm using domain access for a long time and it was working great. But now I realize, all content is visible on all domains. Although I published it to only one domain. My installation is a 3-site-multisite.

I already disabled memcached and some other modules. I don't have changed my configuration. I only did updates on Drupal and modules.

I don't know how to find the error.

Please give advice how to debug and log inside of domain access.

Kind regards
Jan

Comments

croryx’s picture

Are you logged in as User 1? See the relevant FAQ page for common reasons why this might happen.

jan.s’s picture

No, I'm not logged in at User 1.

I found the bug because all duplicate pages are available in Google now.

jan.s’s picture

Category: support » bug
Priority: Normal » Major
Status: Closed (works as designed) » Active

Thank you for the debugging hint.

Unfortunately debugging is not working. I gave the permission to all authenticated users and enabled debugging, but I can't see any debug information. Tested also with theme Seven and Garland.

Seems Domain Access have some problems in my installation.

jan.s’s picture

Issue summary: View changes

typo

agentrickard’s picture

Category: bug » support
Priority: Major » Normal

Use Devel Node Access and the Domain "Server info" block.

It could be that the wrong domain is loading -- or failing to load -- and the site is loading the default domain.

This is not a bug, since it is unique to your site.

agentrickard’s picture

Which version of Drupal? I haven't tried 7.14 yet.

jan.s’s picture

I must reject my answer #3.

I uninstalled content access. But I still have problems.

Now content is only visible when "Send to all affiliates" is checked. But then it is shown on all sites. If I select only one or more domains and not "Send to all affiliates", the content is not shown on any website.

I think there are really some things broken. Unfortunately the Node Access block from Devel is not working. I'm using Drupal 7.12.

The domain Server Info block is not visible (and this cannot be changed, right?) to anonymous users.

jan.s’s picture

I have 3 domains with the ids 2, 3 and 4.

If I select "Send to all affiliates" and domain 3 then the database tables looks like these:

drupal_domain_access

nid|gid|realm
959|0|domain_site
959|3|domain_id

drupal_node_access

nid|gid|realm|grant_view|grant_update|grant_delete
959|0|domain_site|1|0|0
959|3|domain_id|1|1|1

The node is visible on all domains for anonymous and authenticated users.

If I do not select "Send to all affiliates" but domain 3 then the database tables looks like these:

drupal_domain_access

nid|gid|realm
959|3|domain_id

drupal_node_access

nid|gid|realm|grant_view|grant_update|grant_delete
959|3|domain_id|1|1|1

The content is not visible at any domain to anonymous users. But the content is visible to authenticated users at all domains.

Strange... any idea?

jan.s’s picture

Hi agentrickard,

I now have a full dev environment for testing.

And interesting: I could reproduce the same problem on another drupal website. I think it is a bug/incompatibility.

Best regards
Jan

agentrickard’s picture

The behavior in comment 7 suggests that you have enabled Domain Strict by accident.

When you disabled Content Access and rebuilt the node access table, do you have any records in there whose realm is not domain_*?

jan.s’s picture

Hi agentrickard,

thank you so much for your help. "Domain Strict" was enabled in all cases.

My suggestion would be, not to enforce the Domain Strict behaviour when the module is enabled. It would be nice to be able to select this on a settings page that comes with that module. I would recommend this because the modules functions have a large impact to the site's access rights behaviour.

Thank you! Great module :-)

Jan

jan.s’s picture

Status: Active » Closed (works as designed)

Status: Active » Closed (works as designed)