While I don't know if this is actually a theme problem I thought I'd post here to begin with.
I am using a custom theme for my site and Adminimal for the admin theme. The site used the custom theme as the admin theme for some time before we switched to Adminimal. After we changed the setting most admin pages started using the admin theme, but some don't/won't - regardless how how many times I clear cache either via phpmyadmin, drush or on the site. I suspect that the theme is "stuck" somewhere in the database. I'm not sure where to clear it.
If anyone has any suggestions, I'd sure appreciate it.
I've also tried using other themes for admin and I have the same problem.
Comments
Comment #1
hkirsman commentedAny specific urls that that have the wrong theme?
Comment #2
ANDiTKO commentedIn your Database try table "variable" -> row "admin_theme".
This is the place where current admin theme is saved.
Also make sure you check the "Use the administration theme when editing or creating content" in "admin/appearance"
Other modules like the "context" module can also be interfering with this setting.
Comment #3
ANDiTKO commentedAny updates on this? If not lets close this issue.
Comment #4
ANDiTKO commentedComment #5
Anonymous (not verified) commentedI'm having the same problem. Cases where I've noticed a consistent switch:
1) In Views when saving a view it will switch to my default theme *sometimes* (I haven't nailed down the exact trigger here, but it always involves the page reload after saving),
2) When updating modules after the step to apply database changes. Works normally up until this point.
3) When clean URLs isn't used it uses the default theme instead of the admin theme. So /admin is fine, but /?q=admin produces default theme.
Edit: This seems to be a problem with the Material skin specifically (at least with the clean URLs issue, I haven't checked the other cases yet)
Comment #6
onmints commentedI'm having same problem and exactly as discribed by #5.
I'm using Adminimal default skin
Comment #7
eescribanoc commentedI am having the same problem. This happens in a few projects. All using adminimal as admin theme.
Funny enough, I just tested with other theme and Seven is also behaving the same way. So I don't think is theme related.
Comment #8
rudeboypeter commentedFound this issue via search, same thing happening here. Especially after saving views, but page refresh brings back the correct admin theme. Although I don't think it's an Adminimal issue - happens to me even when using good old Seven for admin theme. Not critical but very annoying!
Comment #9
blueblot commentedSame problem as #5.
this only happens in views. After refreshing the page, everything is back to normal.
Comment #10
jucedogi commentedSame as #5... first time I've had this issue. Happening in conjuction with bootstrap theme... only thing I can think of is different from previous installs is PHP 7 instead of 5.6
Comment #11
laurelstreng commentedAlso, same as #5
Comment #12
tory-w commentedHello All,
I have a workaround. I've been having the same issue as #5. Like someone else said, not a big issue, but annoying. I have a lot of modules and I'm not sure which is causing this issue. So, I'm using this as temporary. I have a custom module. I'll explain it for those who may have never created their own module.
1. Create a .module file and name it "YOUR_MODULE_NAME.module". Obviously, put your own made up module name where it says, "YOUR_MODULE_NAME". Throw the code below into that file (change YOUR_MODULE_NAME to same name as file).
2. Create a file called "MY_MODULE_NAME.info". Put the following in it and update as needed:
core = "7.x"
description = "Fixes an issue with admin/structure pages going to main theme."
name = "YOUR MODULE NAME"
package = Custom modules - You can change the package name
3. Create a folder called "MY_MODULE_NAME" and put these 2 files in it.
4. Add as you would other modules.
Comment #13
aitala commentedSame as #5 and #10 - Issue within Views and within Linkchecker/Broken Links page. Using a Bootstrap subtheme...
I attempted the code in #12. It did not work... after saving a View, I get the site theme not Adminimal.
Eric
Comment #14
blueblot commentedalso tried #12, but it didn't work for me.
Kris
Comment #15
soubiSame issue in version 7.x-1.26 with Boostrap as default theme.
Comment #16
soubiMore information :
It's happening not only with view but with admin pages.
If you clear the drupal cache from one of them, the result page will not be seen with admin theme but with the front theme.
Comment #17
superrn commentedThis is happening for us now, after changes to our bootstrap child theme.
Happens consistently when saving e.g. Features page, as well as when working on node edit forms, having to refresh the page to get the adminimal theme to show.