Closed (fixed)
Project:
Domain
Version:
6.x-1.2
Component:
- Domain Theme
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Oct 2008 at 21:05 UTC
Updated:
15 Mar 2012 at 09:55 UTC
Jump to comment: Most recent file
Comments
Comment #1
jastern commentedi am using Drupal 6.5 and Domain Access 6.x-1.2, but have the same problem jasonalank described in #245139: Domain Theme settings - Subsites admin theme set, but won't take.
the issue is still that i set the administration theme, but i only get the administration theme on the main/default site. i do not get it on the other sites. in other words, when i am on an /admin page on a non-default site, i see that site's normal domain theme. what i WANT to see is the Administration theme.
also, i'm not sure if it's related, but i have noticed that back on the main system themes page (/admin/build/themes/select), i sometimes lose the themes that have previously been selected. by "lose", i mean that all the themes which were "Enabled" (checked) are now unchecked. i have not figured out yet when/why this happens.
i actually have two different drupal installations, each with multiple domains sharing a single database (one db per installation). one installation is for production, the other for development. they both have this problem: the /admin pages on non-default sites appear without the admin theme, instead using the domain theme for that domain.
i've been over the README.txt's for Domain Access and for Domain Theme multiple times, attempting to ensure that i've not forgotten something.
even if i go in and set the administrative theme for each site individually (i assume this is a feature of Domain Conf, which i have turned on), it still doesn't "take" -- to use jasonalank's term.
please let me know if this is something i'm still not doing correctly, and/or if this is true for others, as well.
also, if you need more info about my setup, let me know.
thanks.
Comment #2
agentrickardThis is a module weight issue that should be corrected by the changes in 6.x.2. The problem is that Domain Theme has to fire before System module but after Domain module.
You could fix this now, I believe, by setting the weight of Domain to -2 and Domain Theme to -1. The setting provided currently does not fix the admin theme issue unless Domain has a lower weight than Domain Theme.
Comment #3
jastern commentedthanks, a.r. -- okay, so (newb', here), .. are you talking about setting module weight? such as with the Utility module (http://drupal.org/project/util)?
Comment #4
agentrickardYes. The module weight. There is a setting that will adjust the weight of Domain Theme provided with the module, but unless you also set Domain's weight lower, then it won't work.
Actually marking this as fixed, since the fix is already in HEAD.
Comment #5
jastern commentedokay, i installed the utility module (http://drupal.org/project/util) and set the weight of Domain Access to -2 and Domain Theme to -1, and the problem has gone away: the (non-default) domains' themes show regularly on non-/admin/* pages, but when on /admin/* pages, the Administration theme is shown instead -- excellent!
thank you, agentrickard.
glad to know a fix is in HEAD, as well.
Comment #6
jastern commentedsorry to re-open this, because your solution did work nicely, a.r... but now i'm finding that Drupal keeps forgetting the "-1" weight setting for my Domain Theme module. i'm not sure what's causing it, and i've done some testing without being able to forcibly reproduce it. but it does get lost. which means that the Domain Access module keeps its "-2" weighting, but Domain Theme module reverts back to weight "0". and of course, when this happens, administrative pages on a non-default domain appear in that domain's content theme, not the administrative theme.
any idea what could be causing Domain Theme to keep resetting (or losing) its "-1" weighting?
by the way, as an extra piece of information which may or may not be related: i also notice that i have a similar problem with the themes themselves: i have 4 themes enabled in /admin/build/themes (on the main domain). however, sometimes i return to this page and notice that all the themes have mysteriously been disabled (i.e., their checkboxes in the "Enabled" column are all now unchecked).. i have not tested enough to notice whether this happens at same time as Domain Theme loses its "-1" weighting, though.
thanks.
Comment #7
agentrickardYou would still need to set the Domain Theme setting to -1 on admin/build/domain. That value resets the weight when the settings are saved.
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #9
agentrickardApologies. In Domain Theme, we have to ensure that $custom_theme is empty before loading out theme.
Patch committed to HEAD. Needs backport to 5.x.
Comment #10
agentrickardComment #11
Xomby commentedNot re-opening this issue, although this is still a glitch in 7.x.2, but as its an older version, just clarifying for anyone having this issue using the 7.x.2 branch (not sure if it's fixed in 7.x.3, haven't needed to upgrade yet - can anyone else verify?).
If you're on your sub-site (not main domain), and go to admin/appearance, setting the admin theme there WILL NOT TAKE!
You MUST go to admin/structure/domain, and click the "settings" link next to your sub-site, there is a section (2nd one down on 7.x.2.16) that handles this setting.
Comment #12
dimitrov.adrian commentedStill bug is here, tested with domain 7.x-3.3