[wp-trac] [WordPress Trac] #56966: Updating plugins with WP6.1 creates .maintenance file and leaves it

WordPress Trac noreply at wordpress.org
Thu Nov 3 07:45:18 UTC 2022


#56966: Updating plugins with WP6.1 creates .maintenance file and leaves it
--------------------------------------------+------------------------------
 Reporter:  jsh4                            |       Owner:  (none)
     Type:  defect (bug)                    |      Status:  new
 Priority:  normal                          |   Milestone:  Awaiting Review
Component:  Upgrade/Install                 |     Version:  6.1
 Severity:  normal                          |  Resolution:
 Keywords:  has-testing-info needs-testing  |     Focuses:
--------------------------------------------+------------------------------

Comment (by pkolenbr):

 I have the same issue as reported by jsh4. I did some more investigation:
 I'm using the ftpext method in my config.inc.php:\\
 {{{#!php
 define('FS_METHOD','ftpext');
 }}}

 The issue lies in file /wp-admin/includes/class-wp-filesystem-ftpext.php.
 Check line 415 and 416. The new system sees the file .maintenance as a
 directory instead of a file, and tries to delete it by FTP_RMDIR (instead
 of FTP_DELETE). This results in the following error:\\

 {{{
 Got error 'PHP message: PHP Warning:  ftp_rmdir(): /.maintenance: No such
 file or directory in /var/www/website.org/wp-admin/includes/class-wp-
 filesystem-ftpext.php on line 397'
 }}}
 For now I used a workaround and copied the old file class-wp-filesystems-
 ftpext.php from WP 6.03 to my WP6.1 file. This solves the issue.\\
 \\
 My environment: Debian (bullseye), Apache + PHP 7.4.30. For FTP I'm using
 ProFTPD.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56966#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list