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'

Comments

moshe weitzman’s picture

Status: Active » Closed (cannot reproduce)

thats not core drush

socialnicheguru’s picture

Project: Drush » Cache Warmer
Version: » 7.x-4.x-dev
Component: Miscellaneous » Code

Changing to right module

billspreston’s picture

I'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.

Chris Charlton’s picture

I'm getting this warning too, especially when running Drush commands like up and the like.

Use of undefined constant DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT - assumed 'DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT' cache_warmer.drush.inc:44                                                        [notice]

@BillSPreston was right, the constant "CACHE_WARMER_DEFAULT_TIMEOUT" is defined but "DRUSH_CACHE_WARMER_DEFAULT_TIMEOUT" isn't.

adammalone’s picture

Status: Closed (cannot reproduce) » Needs review
StatusFileSize
new866 bytes

This looked to have been closed and I've stumbled upon the same issue. Here's a simple patch that'll correct the constant name

drupalgideon’s picture

Patch is good for me

drupalgideon’s picture

Status: Needs review » Reviewed & tested by the community

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 5: 1665592-5-undefined_constant_in_inc.patch, failed testing.

The last submitted patch, 5: 1665592-5-undefined_constant_in_inc.patch, failed testing.

monstrfolk’s picture

works for me.

andrew answer’s picture

Status: Needs work » Reviewed & tested by the community

I confirm what patch #5 is works.

darrell_ulm’s picture

Agreed, patch #5 works.