drush updatedb --debug
There are number of these warnings
Use of undefined constant DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT - [notice]
assumed 'DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT'
cache_warmer.drush.inc:44 [1.35 sec, 17.49 MB]
Use of undefined constant DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT - [notice]
assumed 'DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT'
cache_warmer.drush.inc:44 [1.38 sec, 17.49 MB]
Load alias @server_master [1.42 sec, 17.37 MB] [notice]
Use of undefined constant DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT - [notice]
assumed 'DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT'
cache_warmer.drush.inc:44 [1.43 sec, 17.51 MB]
Use of undefined constant DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT - [notice]
assumed 'DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT'
cache_warmer.drush.inc:44 [1.46 sec, 17.51 MB]
Use of undefined constant DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT - [notice]
assumed 'DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT'
cache_warmer.drush.inc:44 [1.5 sec, 17.51 MB]
Use of undefined constant DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT - [notice]
assumed 'DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT'
cache_warmer.drush.inc:44 [1.54 sec, 17.51 MB]
Use of undefined constant DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT - [notice]
assumed 'DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT'
cache_warmer.drush.inc:44 [1.58 sec, 17.51 MB]
Use of undefined constant DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT - [notice]
assumed 'DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT'
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1665592-5-undefined_constant_in_inc.patch | 866 bytes | adammalone |
Comments
Comment #1
moshe weitzman commentedthats not core drush
Comment #2
socialnicheguru commentedChanging to right module
Comment #3
billspreston commentedI'm getting this too. Changing the constant in line 44 from DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT to CACHE_WARMER_DEFAULT_TIMEOUT fixed it for me. I think that's the only place the constant crops up.
Comment #4
Chris CharltonI'm getting this warning too, especially when running Drush commands like
upand the like.@BillSPreston was right, the constant "CACHE_WARMER_DEFAULT_TIMEOUT" is defined but "DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT" isn't.
Comment #5
adammaloneThis looked to have been closed and I've stumbled upon the same issue. Here's a simple patch that'll correct the constant name
Comment #6
drupalgideonPatch is good for me
Comment #7
drupalgideonComment #10
monstrfolk commentedworks for me.
Comment #11
andrew answer commentedI confirm what patch #5 is works.
Comment #12
darrell_ulm commentedAgreed, patch #5 works.