[wp-trac] [WordPress Trac] #10407: FTP Extension-based filesystem fails on WP core upgrade/re-install
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 15 23:21:36 UTC 2009
#10407: FTP Extension-based filesystem fails on WP core upgrade/re-install
-------------------------------+--------------------------------------------
Reporter: Denis-de-Bernardy | Owner: dd32
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Filesystem | Version:
Severity: normal | Keywords:
-------------------------------+--------------------------------------------
Comment(by Denis-de-Bernardy):
Replying to [comment:4 dd32]:
> > I'm sure it's *not* timing out from inactivity, too.
>
> Which is why i was questioning, Surely it cant be a timeout.. FTP doesnt
just timeout while you're transfering files..
Actually (based on what I've been seeing anyway), it does. :-(
It transfers files, and then poof, gone. Reconnect and it works again.
Still awaiting feedback from the user. I added this in a plugin, on the
update_feedback hook, in case it makes any difference:
{{{
function update_feedback($in = null) {
static $done = false;
global $wp_filesystem;
if ( $done || !$_POST || !is_object($wp_filesystem) )
return $in;
if ( is_a($wp_filesystem, 'WP_Filesystem_FTPext') &&
$wp_filesystem->link ) {
if ( @ftp_get_option($wp_filesystem->link,
FTP_TIMEOUT_SEC) < 300 )
@ftp_set_option($wp_filesystem->link,
FTP_TIMEOUT_SEC, 600);
$done = true;
}
return $in;
} # update_feedback()
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10407#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list