Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I found that we have wrong code in function themekey_compat_module_implements_alter().
function themekey_compat_module_implements_alter(&$implementations, $hook) {
if ('custom_theme' == $hook) {
foreach (variable_get('themekey_compat_modules_enabled', array()) as $module) {
unset($implementations['$module']); // <== remove quotes.
}
}
}
Comment | File | Size | Author |
---|---|---|---|
#2 | themekey_compat_admin-module-list.patch | 621 bytes | pacufist |
Comments
Comment #1
mkalkbrennerYou're right. Committed to git in 7.x-2.x-dev.
Comment #2
pacufist CreditAttribution: pacufist commentedAfter this patch we should improve admin form. Because modules desapears from list in themekey_compat_settings_form().
Comment #3
mkalkbrennerComment #4
mkalkbrennersorry, I missied that one. Committed #2 to branches 7.x-2.x and 7.x-3.x. Thanks.
Comment #5
escoles CreditAttribution: escoles commentedCould this cause a module or theme to be disabled?
Comment #6
mkalkbrennerI don't think so. What's your problem exactly?
Comment #7
escoles CreditAttribution: escoles commentedI'm seeing two things happen, that are as far as I can tell unrelated but which look similar, superficially, and started at the same time:
When one happens, the other has always happened also, which leads me to think they have the same cause -- though I can't think of anything that would cause either.
I've determined that it's not one causing the other (which would in any case also be quite strange) by disabling the theme and waiting for the views formatter to go away.
I've been comparing to two very similarly-configured sites, and the last difference I could find that seemed like it might make a diff was ThemeKey: It was enabled on the site where I was seeing the problems, not on the other two (a local dev and our production site).
It was in the process of looking again at ThemeKey as a potential cause that I stumbled on this issue. I don't mean to hijack -- if my latest tests (enabling ThemeKey on my dev site to see if I can get a failure) pan out, I'll come back and post an issue.
Comment #8
escoles CreditAttribution: escoles commented(Also have updated to most current version of ThemeKey on the site showing problems. So if I see the problems go away on that site and start to manifest on my local dev site, I will infer that ThemeKey was somehow involved -- though I'll still have no clue how.)
Comment #9
mkalkbrennerEven if ThemeKey should cause the trouble, I'm convinced that it's not related to this issue. So open a new issue (support request) and add as many informations as possible. Which sub-modules of ThemeKey are enabled, your rule chain, ...
Comment #10
escoles CreditAttribution: escoles commentedif it looks connected, i will. thanks.
EDIT: ThemeKey does not appear to be contributing to this problem.