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.
A fresh download of D8 will fail on install.php.
This is happening because twig is trying to cache classes to the files folder, but the files folder might not be writable or exist yet.
To fix this, we checked if MAINTENANCE_MODE == install, twig_cache = FALSE in registerTwig
Comment | File | Size | Author |
---|---|---|---|
#11 | 2003578.patch | 829 bytes | chx |
#10 | 2003578.patch | 1.15 KB | chx |
#4 | 2003578-4-twig-install-cache-bug.patch | 905 bytes | Jon Pugh |
#3 | 2003578-2-twig-install-cache-bug.patch | 1.3 KB | Jon Pugh |
#1 | 2003578-1-twig-install-cache-bug.patch | 789 bytes | joelpittet |
Comments
Comment #1
joelpittetReal patch from gist above.
Comment #2
Jon PughSo, there were a few approaches discussed for this....
If we can get
to return FALSE in install_drupal(), this will be fixed...
however we can't figure out where we could "set" this setting ...
Comment #3
Jon PughReroll with some improved comments.
Comment #4
Jon PughAnother reroll
Comment #5
alexpottThis is good to go.... testbot can't test this so +1 for committing asap.
Comment #6
Dries CreditAttribution: Dries commentedCommitted to 8.x. Fiew! :-)
Comment #7
Jon PughWooot! first core commit credit!
THANKS!
Comment #8
ParisLiakos CreditAttribution: ParisLiakos commentedUse of undefined constant MAINTENANCE_MODE - assumed MAINTENANCE_MODE
in 'Drupal\Core\CoreBundle::registerTwig()
and kills the entire Drupal (due to our sensitive error logging)
after pulling nothing loads, but update.php and install.php
i guess HEAD will break on this patch
Comment #9
ParisLiakos CreditAttribution: ParisLiakos commentedactually it is broken already
Comment #10
chx CreditAttribution: chx commentedComment #11
chx CreditAttribution: chx commentedminus whitesapce
Comment #12
cweagansI just tested install and things are working okay. RTBC unless testbot disagrees.
Comment #13
alexpottI hang my head in shame...
Committed 94e3e87 and pushed to 8.x. Thanks!
Comment #14
ParisLiakos CreditAttribution: ParisLiakos commentedComment #15
joelpittetThanks everybody and thanks @chx. Didn't realize that the cli install was not treated the same as the UI one.
Sorry for breaking the install and again thank you for the quick fix and double quick commits and @Jon Pugh for helping me with this patch. Friendly user warnings for directory permissions are back as they were!