[wp-trac] [WordPress Trac] #46882: 5.2 beta 2: `wp cron even run --due-now` triggers "Use of undefined constant {RECOVERY_MODE_COOKIE, COOKIEPATH, SITECOOKIEPATH}"

WordPress Trac noreply at wordpress.org
Thu Apr 11 16:11:38 UTC 2019


#46882: 5.2 beta 2: `wp cron even run --due-now` triggers "Use of undefined
constant {RECOVERY_MODE_COOKIE,COOKIEPATH,SITECOOKIEPATH}"
----------------------------+------------------------------
 Reporter:  lkraav          |       Owner:  (none)
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Bootstrap/Load  |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  servehappy      |     Focuses:
----------------------------+------------------------------

Comment (by lkraav):

 I was out of date, indeed, but latest stable 2.1.0 does not improve the
 situation.

 {{{
 $ [-] sudo wp cli update
 You have version 2.0.1. Would you like to update to 2.1.0? [y/n] y
 Downloading from https://github.com/wp-cli/wp-cli/releases/download/v2.1.0
 /wp-cli-2.1.0.phar...
 md5 hash verified: fa0fb31d1462a5c39a8d4d2cdb369462
 New version works. Proceeding to replace.
 Success: Updated WP-CLI to 2.1.0.

 leho at crdy warmpress $ [-] wp @cxli cron event run --due-now
 Warning: Use of undefined constant RECOVERY_MODE_COOKIE - assumed
 'RECOVERY_MODE_COOKIE' (this will throw an Error in a future version of
 PHP) in /home/warmpress/wp-includes/class-wp-recovery-mode-cookie-
 service.php on line 66
 Warning: Use of undefined constant COOKIEPATH - assumed 'COOKIEPATH' (this
 will throw an Error in a future version of PHP) in /home/warmpress/wp-
 includes/class-wp-recovery-mode-cookie-service.php on line 68
 Warning: Use of undefined constant SITECOOKIEPATH - assumed
 'SITECOOKIEPATH' (this will throw an Error in a future version of PHP) in
 /home/warmpress/wp-includes/class-wp-recovery-mode-cookie-service.php on
 line 69
 Executed the cron event 'facetwp_indexer_cron' in 0.014s.
 Executed the cron event 'action_scheduler_run_queue' in 0.032s.
 Executed the cron event 'wp_privacy_delete_old_export_files' in 0.017s.
 Executed the cron event 'fv_flowplayer_checker_event' in 0.031s.
 Success: Executed a total of 4 cron events.

 leho at crdy warmpress $ [-] wp cli info
 OS:     Linux 4.14.14-gentoo+ #39 SMP PREEMPT Sat Jan 20 21:07:08 EET 2018
 x86_64
 Shell:  /bin/bash
 PHP binary:     /usr/lib64/php7.2/bin/php
 PHP version:    7.2.16
 php.ini used:   /etc/php/cli-php7.2/php.ini
 WP-CLI root dir:        phar://wp-cli.phar/vendor/wp-cli/wp-cli
 WP-CLI vendor dir:      phar://wp-cli.phar/vendor
 WP_CLI phar path:       /home/warmpress
 WP-CLI packages dir:    /home/leho/.wp-cli/packages/
 WP-CLI global config:   /home/leho/.wp-cli/config.yml
 WP-CLI project config:  /home/warmpress/wp-cli.yml
 WP-CLI version: 2.1.0
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/46882#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list