[wp-trac] [WordPress Trac] #38024: fs_unavailable while auto-updating several plugins in a row

WordPress Trac noreply at wordpress.org
Mon Sep 12 10:36:54 UTC 2016


#38024: fs_unavailable while auto-updating several plugins in a row
-----------------------------+-----------------------------
 Reporter:  benjaminniess    |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Upgrade/Install  |    Version:  4.6.1
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 It seems that when we have several plugins to auto-update, the process
 breaks after the first plugin update, sending back a WP_Error
 (fs_unavailable) with the message "Could not access filesystem"

 I've run through the "upgrade" function wp-admin/includes/class-plugin-
 upgrader.php (Line 146) and saw that after the first updated plugin, the
 $current variable is empty in:


 {{{
 $current = get_site_transient( 'update_plugins' );
 }}}

 The "update_plugins" transient is empty because at the end of the upgrade
 process (wp-admin/includes/class-wp-upgrader Line 791), there's a hook:


 {{{
 do_action( 'upgrader_process_complete', $this, $options['hook_extra'] );
 }}}

 and attached to this hook we have the "wp_clean_plugins_cache" which
 delete the transient.
 At the next plugin update iteration, the transient is empty and we get
 this WP_error

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38024>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list