[wp-trac] [WordPress Trac] #2436: Install and upgrade show errors

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 12 21:38:55 GMT 2006


#2436: Install and upgrade show errors
----------------------------+-----------------------------------------------
       Id:  2436            |      Status:  new                     
Component:  Administration  |    Modified:  Sun Feb 12 21:38:55 2006
 Severity:  normal          |   Milestone:  2.1                     
 Priority:  normal          |     Version:  2.0.1                   
    Owner:  ringmaster      |    Reporter:  ringmaster              
----------------------------+-----------------------------------------------
 From wp-testers:


 {{{
 Actually see this in both install.php and upgrade.php using 2.1-alpha1

 Warning: array_keys() [function.array-keys]: The first argument should be
 an
 array in C:\xampp\htdocs\wp21\wp-includes\functions.php on line 2360

 Warning: array_shift() [function.array-shift]: The argument should be an
 array in C:\xampp\htdocs\wp21\wp-includes\functions.php on line 2360

 Warning: Invalid argument supplied for foreach() in
 C:\xampp\htdocs\wp21\wp-includes\functions.php on line 2365

 Michael E. Hancock
 }}}

 Since wp_cron() is called from shutdown, it executes during the install
 and upgrade.  If the "crons" option doesn't already exist, it generates
 errors.

 The attached patch cleans things up.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2436>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list