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.
drupal_bootstrap
and drupal_get_bootstrap_phase
are deprecated and should be removed.
Comment | File | Size | Author |
---|---|---|---|
#26 | 14-25-interdiff.txt | 804 bytes | alexpott |
#26 | 2347625-2.25.patch | 6.74 KB | alexpott |
Comments
Comment #1
alexpottComment #3
alexpottWe can remove the constants too.
Opened https://github.com/drush-ops/drush/pull/857 to fix drush - @moshe is working on a better way.
Comment #5
legolasboComment #6
rickvug CreditAttribution: rickvug commentedThe GitHub issue has sat for over a month now. I guess it is time to get the pull request merged in as-is so that this issue can move forward.
Comment #9
alexpottNext step is to get drush upgraded on the testbots
Comment #10
rpayanmHere the issue #2373319: Update drush.
Comment #11
rpayanmupss already referenced...
Comment #12
pfrenssenThis is postponed on #2404923: Upgrade Drush on qa.d.o.
Comment #13
mgifford#2404923: Upgrade Drush on qa.d.o was fixed yesterday.
Comment #14
idebr CreditAttribution: idebr commentedStraight reroll of #3
Comment #16
legolasboTest fails because drush generates the following error upon enabling the simpletest module.
Notice: Use of undefined constant DRUPAL_BOOTSTRAP_CONFIGURATION - assumed 'DRUPAL_BOOTSTRAP_CONFIGURATION' in drupal8_bootstrap() (line 824 of /usr/local/bin/drush-master/lib/Drush/Boot/bootstrap.inc).
I am able to reproduce this error locally with a clean install on a VDD (Vagrant Drupal Development) machine.
Drupal installs perfectly using
drush @drupal8 si standard
, howeverdrush @drupal8 si simpletest
fails with the error mentioned above.Comment #17
JeroenTI created an issue on github to remove the usage of this constants in drush: https://github.com/drush-ops/drush/issues/1183
Comment #18
alexpottThis should work now that testbots no longer use drush.
Comment #19
JeroenTThis is the error:
'Failed to drush en simpletest, output=<em class="placeholder">Notice</em>: Use of undefined constant DRUPAL_BOOTSTRAP_CONFIGURATION - assumed \'DRUPAL_BOOTSTRAP_CONFIGURATION\' in <em class="placeholder">drupal8_bootstrap()</em> (line <em class="placeholder">828</em> of <em class="placeholder">/opt/drush/lib/Drush/Boot/bootstrap.inc</em>).PHP Fatal error: Allowed memory size of 335544320 bytes exhausted (tried to allocate 101 bytes) in /opt/drush/includes/environment.inc on line 42
Comment #20
alexpottThe dependency on drush was removed on Monday evening.
Comment #25
legolasboTests failing because patch can't be applied.
Comment #26
alexpottRerolled and removed a weirdly pointless comment the references
drupal_bootstrap
Comment #27
daffie CreditAttribution: daffie commentedLooks good to me.
Comment #28
catchCommitted/pushed to 8.0.x, thanks!
Also RIP.
Comment #30
BerdirOuch, this killed drush in a bad way. Please help me fix it in https://github.com/drush-ops/drush/pull/1230
Comment #31
BerdirAh, didn't see that there was an issue above already, anyway, that has no PR yet.
Comment #32
geerlingguy CreditAttribution: geerlingguy commentedFYI the broken behavior in Drush is fixed now (as of 7 min ago).
Comment #34
RavindraSingh CreditAttribution: RavindraSingh as a volunteer and at Srijan | A Material+ Company commentedThis issue still exists. So reopening again.
Here is the error example on running any drush commands in D8
Comment #35
alexpott@RavindraSingh there is no usage of
DRUPAL_BOOTSTRAP_CONFIGURATION
apart from one stale code comment. Feel free to file an issue against https://github.com/drush-ops/drush and when you do include steps to the reproduce and the version of Drush and commit hash of Drupal 8 you are using.Comment #36
BerdirThis was fixed in drush a long time ago, make sure that you update to the most recent version.
Comment #37
RavindraSingh CreditAttribution: RavindraSingh as a volunteer and at Srijan | A Material+ Company commentedThank you @alexpott and @Berdir for the information.