PHP Fatal error on background update: $wp_filesystem is not an object
|Reported by:||markjaquith||Owned by:||dd32|
|Component:||Upgrade/Install||Keywords:||has-patch commit fixed-major|
A bunch of my sites experienced the following PHP fatal error when attempting to update to 3.7.1 in the background:
PHP Fatal error: Call to a member function abspath() on a non-object in /srv/www/example.com/releases/20131030050216/wp/wp-admin/includes/class-wp-upgrader.php on line 1339
These sites will update manually (on the server) without any problem. Indeed, another site on the same server, but with the filesystem method forced via filter to 'direct' auto updated without a problem.
I think this is related to an issue whereby during manual updates, the FTP info will pop up momentarily before it proceeds with direct file writes.
One thing to take into account: this uses Capistrano deploys, so the docroot is/srv/www/example.com/current, which is a symlink to the docroot path seen above. I don't know if that is somehow resulting in problems.
Change History (11)
- Owner set to dd32
- Resolution set to fixed
- Status changed from new to closed
- Keywords commit fixed-major added; needs-testing removed
- Resolution fixed deleted
- Status changed from closed to reopened