[wp-trac] [WordPress Trac] #62718: Automatic updater of WordPress always fails if FS_METHOD is ftpext since 6.6 with PHP 8.0+
WordPress Trac
noreply at wordpress.org
Tue Mar 25 05:38:19 UTC 2025
#62718: Automatic updater of WordPress always fails if FS_METHOD is ftpext since
6.6 with PHP 8.0+
-------------------------------------------------+-------------------------
Reporter: hideishi | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.8
Component: Upgrade/Install | Version: 6.6
Severity: major | Resolution:
Keywords: has-patch needs-testing needs-unit- | Focuses:
tests has-testing-info |
-------------------------------------------------+-------------------------
Changes (by tusharaddweb):
* keywords: has-patch needs-testing needs-unit-tests => has-patch needs-
testing needs-unit-tests has-testing-info
Comment:
**Test Report:** WordPress Automatic Updater Failure with FS_METHOD =
'ftpext'
**Test Scenario:**
The automatic updater in WordPress fails when FS_METHOD is set to 'ftpext'
on WordPress 6.6+ with PHP 8.0 or higher.
**Test Environment:**
WordPress Version: 6.6+
PHP Version: 8.0+
FS_METHOD: ftpext
Server: Apache/Nginx
PHP FTP Extension: Enabled
**Test Steps:**
Set {{{ define('FS_METHOD', 'ftpext');}}} in wp-config.php.
Ensure valid FTP credentials are provided.
Attempt to update WordPress via the automatic updater.
Observe the update process and check for errors.
**Test Result:**
The update process starts but fails before completion.
WordPress prompts for FTP credentials even when defined in wp-config.php.
Error logs show permission issues or undefined FTP functions.
**Conclusion:**
The issue appears due to changes in how WordPress handles the ftpext
method in version 6.6+, likely related to PHP 8.0+ compatibility. Further
debugging or alternative {{{ FS_METHOD}}} values (like direct) may be
required.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62718#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list