The permissions application to view invalid domains seems broken. Also triggers index notices:

# Notice: Undefined variable: item in domain_invalid_domain_requested()  (line 2196 of /Applications/MAMP/htdocs/drupal-cvs/sites/all/modules/domain/domain.module).
# Notice: Undefined variable: item in domain_invalid_domain_requested() (line 2197 of /Applications/MAMP/htdocs/drupal-cvs/sites/all/modules/domain/domain.module).
# Notice: Undefined property: stdClass::$name in domain_invalid_domain_requested() (line 2202 of /Applications/MAMP/htdocs/drupal-cvs/sites/all/modules/domain/domain.module).

Comments

agentrickard’s picture

Status: Active » Closed (cannot reproduce)

Seems to be working now. Perhaps an issue with Drupal CVS.

karnal69’s picture

Version: 7.x-2.0-beta1 » 7.x-2.15
Status: Closed (cannot reproduce) » Active

Hi,

I'm coming across the Undefined property error:

Notice: Undefined property: stdClass::$name in domain_invalid_domain_requested() (line 2495 of C:\wamp\www\optimal-power-solutions.com\sites\all\modules\domain\domain.module).

But only on one of my 4 domains. Also, it only occurs when I'm viewing the site as an anonymous user.

My domain structure is:

mydomain.com
staging.mydomain.com
subdomain.mydomain.com
staging.subdomain.mydomain.com

mydomain.com and subdomain.mydomain.com are active, while the two staging domains are inactive. Everything is fine logged in as user1 (I have Enforce Rules on Administrators set to on), and I can traverse all 4 domains. When logging out and viewing the sites anonymously, the two staging domains are not available (as expected), and mydomain.com is working fine. But when viewing subdomain.mydomain.com, I get the above error on every page except . However, if I click a 'Home' link in my menu that takes me to the front page, I get the error.

So essentially subdomain.mydomain.com does not produce the error, but subdomain.mydomain.com/node/* does.

As far as I can see there's nothing special about this domain configuration.

K.

agentrickard’s picture

StatusFileSize
new824 bytes

I still can't replicate this, possibly because I have caching turned on. But we did miss an isset() check in one case, so this patch should fix the issue.

agentrickard’s picture

Status: Active » Needs review
karnal69’s picture

Brilliant - worked perfectly! Thanks heaps for that.

On a side note, I mentioned it was only happening when not on the 'front' page. It also turns out that (before the patch), the error was also not occurring when using domain-specific paths that were set. So if I got the error on subdomain.mydomain.com/node/10 and node 10 has a domain specific path of 'products', the error would occur at /node/10 but not with /products, even though they are the same page (For some strange reason, my menus are not translating the node path into a clean URL, but that's another issue). Not sure if that's useful to you...

Anyway, thanks again for the patch (and the module - great stuff!)

Cheers,
K.

agentrickard’s picture

Status: Needs review » Reviewed & tested by the community
agentrickard’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 7.x.2 and 7.x.3.

Status: Fixed » Closed (fixed)

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

mikeytown2’s picture

Version: 7.x-2.15 » 6.x-2.x-dev
Status: Closed (fixed) » Needs review
StatusFileSize
new1.55 KB

Backport for 6.x branch.

agentrickard’s picture

Status: Needs review » Fixed

Committed.

 fbf7a9c..281b24f  6.x-2.x -> 6.x-2.x

Status: Fixed » Closed (fixed)

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