Opened 15 years ago
Closed 15 years ago
#18099 closed defect (bug) (worksforme)
cron error with ALTERNATE_WP_CRON set to true
| Reported by: | luis.ferro | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Cron API | Version: | 3.2 |
| Severity: | blocker | Keywords: | |
| Cc: | Focuses: |
Description
If you turn on ALTERNATE_WP_CRON on a stock WP 3.2.1 you will get an error of undefined function wp_redirect() in cron.php.
This is due to the order of includes in wp-settings.php which is wrong in this use-case.
An include on the top to the effect of:
require_once( ABSPATH . WPINC . '/pluggable.php' );
will sort it out (please be sure to either change the bottom require to require_once, or remove it altogether).
Blocker, because it breaks functionality.
Tested on stock 3.2.1 with no plugin active.
Change History (1)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Cannot reproduce.
spawn_cron()is called bywp_cron()which is hooked into thesanitize_comment_cookieswhich is fired after loading pluggable.php.