[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
Wed Mar 26 09:50:33 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.9
Component: Upgrade/Install | Version: 6.6
Severity: major | Resolution:
Keywords: needs-unit-tests has-testing-info | Focuses:
changes-requested reporter-feedback |
-------------------------------------------------+-------------------------
Comment (by SirLouen):
@hideishi
Problem with core updates is this new bug
https://core.trac.wordpress.org/ticket/63173
That is literally blowing my mind.
I need to keep debugging into this, for some reason `ftpext` has always
been my nightmare. I used to use this method long way in the past and I
always had zillions of issues depending on the setup.
Now that we have `env` and a new issue regarding `ftpext` has returned, I
have more opportunities to test this more thoroughly.
By the way, I don't understand your snippet
> Following is the snipet of wp-config.php.
{{{
define('FS_METHOD', 'ftpext');
define('FTP_HOST', 'localhost');
define('FTP_USER', 'your user');
define('FTP_PASS', 'your secret password');
}}}
> The main problem is that in the called maintenance_mode(),
WP_Filesystem() is called without any arguments. When FS_METHOD is set to
'ftpext' (or non 'direct'), credentials are necessary to pass to
WP_Filesystem() constructor.
You said that the bug occur when no credentials are placed. Or I did
understand it wrongly?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62718#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list