FTP Extension-based filesystem fails on WP core upgrade/re-install
|Reported by:||Denis-de-Bernardy||Owned by:||dd32|
I've a bit out of ideas as to why it was failing (we ended up using the FTP Socket filesystem), but...
It failed in the middle of the upgrade, always at the same file (wp-blog-header.php). Some investigation revealed there were no permission problems of any kind. This leads me to suspect the FTP connection was basically lost in the middle of the upgrade.
The reason I think so is I had to work around a similar problem in some old core upgrade scripts that were based off of the Automatic WordPress Upgrades plugin (or whatever it was called). If my memory serves me well I ended up periodically disconnecting and reconnecting (like... every 30s).
Are we keeping our FTP connection alive in any way when using that transport? If not, we probably should. And a similar reasoning might be in order for the PHP HTTP Extension.