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.
That looks like a drupal core issue to me:
Comment | File | Size | Author |
---|---|---|---|
#16 | bugfix.cvs_.diff | 1.62 KB | patrick2000 |
#13 | bugfix.diff | 1.21 KB | patrick2000 |
#11 | bugfix.diff | 1.2 KB | patrick2000 |
#10 | bugfix.diff | 1.15 KB | patrick2000 |
#6 | bugfix.diff | 1.16 KB | patrick2000 |
Comments
Comment #1
patrick2000 CreditAttribution: patrick2000 commentedComment #2
patrick2000 CreditAttribution: patrick2000 commentedhttp://drupalcode.org/viewvc/drupal/drupal/includes/theme.inc?r1=1.399&r...
Comment #3
patrick2000 CreditAttribution: patrick2000 commentedNow I'm getting a little mixed up with the meaning and function of "maintenance mode" (php runtime define()d constant set in update.php and install.php) and "site offline" (databse variable set by the admin thru the web at "q=admin/settings/site-maintenance" - in drupal 7 renamed to "q=admin/settings/maintenance-mode" (not really making me less confused also)
Comment #4
patrick2000 CreditAttribution: patrick2000 commentedWell ... learning ... :-)
Sorry to be so noisy!
found an interresting comment in ./includes/common.inc:drupal_flush_all_caches()
So maybe drush should do the same... !!?
lets see...
Comment #5
patrick2000 CreditAttribution: patrick2000 commentedWell ... of course it should! That would solve the problem.
The only thing is that this won't be very easy to do in drush since system_theme_data is not called directly from the update_main() function but thru some other ("high-level", "drush library") function, which doesn't distinguish between MAINTENANCE_MODE and not ~.
So either drush will have to check there (in it's "library function" (drush_get_projects(),drush_get_themes())) again, or, and that's what I'd suggest - out of the blue,
the test for MAINTENANCE_MODE could go into system_theme_data() so the callers wouldn't have to bother about calling _system_theme_data() in case of drupal beeing in MAINTENANCE_MODE.
What does anybody else think ???
Comment #6
patrick2000 CreditAttribution: patrick2000 commentedSuggesting this patch (for drupal 6.16)
Would fix (tested) the drush issue but I haven't checked what consequences (performance overhead calling theme data ... ? - if at all, then probably minimal - don't think the test takes very long) it might have on other drupal core parts or modules.
Comment #7
greg.1.anderson CreditAttribution: greg.1.anderson commentedI'm suggesting we fix this in drush. See #523194: Drush update disabled all modules.
Comment #8
patrick2000 CreditAttribution: patrick2000 commentedComment #10
patrick2000 CreditAttribution: patrick2000 commentedpatch -p0 -adjusted
Comment #11
patrick2000 CreditAttribution: patrick2000 commentedOk - maybe that's the right format also ... I'm desperately sorry and am going the read the introduction/manual/documentation right NOW ...
Comment #13
patrick2000 CreditAttribution: patrick2000 commentedRead http://drupal.org/patch/create ... wonder what I might have missed ...
Comment #15
patrick2000 CreditAttribution: patrick2000 commentedqa.drupal.org only tests against HEAD, doesn't care about version - right ?
Comment #16
patrick2000 CreditAttribution: patrick2000 commentedlast try