[wp-trac] [WordPress Trac] #8140: Auto update plugin breaks plugins

WordPress Trac wp-trac at lists.automattic.com
Mon Nov 10 12:59:44 GMT 2008


#8140: Auto update plugin breaks plugins
---------------------+------------------------------------------------------
 Reporter:  ranok    |       Owner:                              
     Type:  defect   |      Status:  new                         
 Priority:  normal   |   Milestone:  2.8                         
Component:  Plugins  |     Version:  2.6                         
 Severity:  normal   |    Keywords:  plugins, include_once, 2.6.3
---------------------+------------------------------------------------------
 I was updating my plugins using the auto update system on Wordpress 2.6.3
 and after upgrading Akismet to the latest version, the plugins page spit
 out some errors at the top of the page saying:
 Warning: include_once(/home/public/wp-content/plugins/akismet) Fatal
 error: 0 on wp-settings line 425
 ...
 I did the same for the WP-Super-Cache to make sure it wasn't just a messed
 up akismet plugin, but I got the same results. Curious I looked at the
 code and found
 if ( '' != $plugin && 0 == validate_file($plugin) &&
 file_exists(WP_PLUGIN_DIR . '/' . $plugin) )
                                 include_once(WP_PLUGIN_DIR . '/' .
 $plugin);
 However, the $plugin var here is a directory, which PHP doesn't like one
 bit. I have attached a diff to fix this, and now it works just dandy.

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


More information about the wp-trac mailing list