Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
I didn't want to file a bug just yet, in case I'm doing something wrong. But a recent subsites module commit on 3/13/2010 seems to block logging into the admin area for me.
Line 254 in SiteTreeSubsites.php.
if(!$this->owner->SubsiteID) return false;
If I comment this out, then everything is fine otherwise I can only get to the public subsites and not the admin area. sharvey you out there? Just curious what I might be doing different from you.
Are you using 2.4? That was designed to not cause an error if the decorated class didn't have a SubsiteID. There's a
code change in the core that goes along with this. If you're using subsites/trunk for developing a site, you might want to wait until 2.4 is released, as it's probably not entirely stable right now.
Note that without this change, the CMS would sometimes crash because a SQL error (no SubsiteID).
Thanks for getting back. Yes, I'm using 2.4 beta tag and am using subsites/trunk, primary because it fixed an earlier issue with 'SS_' missing from some SQL stuff. All as SVN externals.
I'm pretty much locked into 2.4 (and love it). Would you recommend that I checkout a different subsites tag?
I appreciate your help.
Ah, just saw the core change was from 12 March, so likely didn't make it into the beta. I see what you mean. Thanks.
the bug described in the original post here is the same problem i am now facing but in SS 2.4.7 where the offending code in sapphire\core\model\SiteTree.php has already been replaced.
Can anyone please help? I can find no other reason why my CMS admin falls over when the subsites module is installed.