[wpmu-trac] [WordPress MU Trac] #939: in_array() error on first install (with patch)

WordPress MU Trac wpmu-trac at lists.automattic.com
Fri Mar 27 12:45:28 GMT 2009


#939: in_array() error on first install (with patch)
----------------------------+-----------------------------------------------
 Reporter:  apeatling       |       Owner:  somebody 
     Type:  defect          |      Status:  new      
 Priority:  high            |   Milestone:  2.7.1    
Component:  Administration  |     Version:  2.7.1    
 Severity:  major           |    Keywords:  has-patch
----------------------------+-----------------------------------------------
 On first installation of the 2.7.1 branch with any setup (vhost/non-vhost)
 I am getting this error when logging into the admin panel:

 Warning: in_array() [function.in-array]: Wrong datatype for second
 argument in /Users/andy/Sites/buddypress/subdir/wp-
 admin/includes/plugin.php on line 233

 Looks like the new admin bar is checking the active plugins list but

 <code>get_option('active_plugins')</code>

 is returning nothing (no plugins yet) and is therefore not an array -
 throwing the error.

 The fix is easy - just typecast it as an array. Patch attached.

-- 
Ticket URL: <http://trac.mu.wordpress.org/ticket/939>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser


More information about the wpmu-trac mailing list