When this module is installed, my admin theme is no longer used immediately following a cache clear. The admin theme is reinstated on the next page refresh.

Steps to reproduce:

  1. Install Entity Translation and Backup and Migrate on fresh install of Drupal (minimal profile)
  2. Set admin theme to "Seven"
  3. Load page that makes use of admin theme
  4. Clear cache
  5. Refresh page, theme is now default theme instead of admin theme

Comments

plach’s picture

Status: Active » Postponed (maintainer needs more info)

I absolutely cannot reproduce this. Please provide more info.

dboulet’s picture

Status: Postponed (maintainer needs more info) » Active

I’ve updated the steps to reproduce above. It turns out that I also had the Backup and Migrate module enabled, and this bug only happens with both modules enabled. I was able to reproduce this from scratch using the minimal install profile.

I’m guessing that there is some sort of conflict between these modules, or a bug in one of them—just have to figure out which one.

reubenavery’s picture

I also confirm that it is the presence of Backup Migrate (enabled) that makes this happen. I cannot for the life of me figure out why, though. Neither of them has anything to do with hook_theme_registry_alter or a similar suspect.

I created an issue #1379152: Breaks admin theme in the backup_migrate queue for this as well.

dboulet’s picture

A very similar issue exists here: #1100166: Admin theme disappears after cache clear. I’m wondering if that issue can give us a clue...

reubenavery’s picture

Re #4 -- FWIW, I am not using Term Fields on my particular site..

dboulet’s picture

Re #4 -- FWIW, I am not using Term Fields on my particular site..

Me neither, I just thought that maybe the comments in that issue could maybe offer some hints...

plach’s picture

danny englander’s picture

Hi all, I am having a similar issue as some of the ones described here, however mine is just slightly different so I don't know if I should open a new issue or add on to this one. Here are my specific symptoms.

When I save the modules page or perhaps a display settings page for a content type, the admin theme goes away and changes to a front end theme. Sometimes, I have noticed that even the overlay gets hosed and admin pages revert not only to the front end theme but to one without an overlay.

I have narrowed down this behavior happening with only this module enabled in combination with Backup and Migrate. If I disable Backup and Migrate, then the behavior goes away and likewise if I diable Entity translation, the behavior of losing my admin theme goes away as well. However, it does not happen with just Backup and Migrate enabled without Entity translation enabled so Entity translation seems to be the catalyst to set this off? ** Note if I reload a page where the admin theme has gone away, it comes back after reload. It does not bother me as a site builder but for my editors, I know they will get confused by this.

dboulet’s picture

highrockmedia, that sounds like the same issue.

KubriK’s picture

I can confirm #8 symptoms. Having the same issue on two of my sites.
Also i couldn't override this misbehavior with hook_custom_theme().

brightbold’s picture

I too have experienced this problem, but hadn't been able to figure out what was causing it. If someone comes up with a solution I'm happy to test.

peximo’s picture

The problem seems to be in call to menu_get_router() (function entity_translation_entity_info_alter).
Some contrib modules (in my case views) initialize the theme in an incorrect phase.
Possibily related issue: #1341314: Nested call of entity_get_info() due to menu_get_router() in entity_translation_entity_info_alter() .

danny englander’s picture

Component: Code » Base system

I have been able to completely reproduce this issue on an entirely new site I am developing. The admin theme was fine with Backup and Migrate enabled. Once I added in Entity Translation into the mix, immediately my admin theme started reverting to the front end theme on node edit saves, module page saves, field saves etc...

plach’s picture

plach’s picture

Status: Postponed » Postponed (maintainer needs more info)

Please try the latest dev (a new snapshot will be out in 4 hours) and check whether the issue is now fixed.

plach’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Cleaning up the queue.
Reopen if needed.

johnennew’s picture

@plach - do you know what caused and fixed this issue - I'm seeing it on a site without Entity Translation and so another module likely has the same bug. Thanks!

johnennew’s picture

Issue summary: View changes

Updated steps to reproduce.

gagsy’s picture

Issue summary: View changes
Marko B’s picture

This tends to happen if you have admin theme selected under admin theme section, but this theme is not enabled and is under disabled section.

stefanos.petrakis’s picture

Please don't add more information to a closed ticket, open a new ticket if needed.
Thanks! :)

P.S.: Following the "Steps to reproduce" in the issue's description shows that the problem doesn't occur with the current versions of ET and B&M.