[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
Fri Mar 28 01:21:22 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                              |
-------------------------------------------------+-------------------------

Comment (by takuword):

 @SirLouen Hi,
 - Could you explain why are you editing {{{.env.example}}}, not
 {{{.env}}}?
 I think editing that file would not trigger your test.
 - Could you explain why are you editing {{{wp-config.php}}}, not {{{wp-
 tests-config.php}}}?
 When I followed your instruction, {{{FS_METHOD}}} constant in the {{{wp-
 tests-config.php}}} had the value of {{{direct}}} by default.
 [https://make.wordpress.org/core/handbook/testing/automated-
 testing/phpunit/ In the handbook], they are suggesting edit {{{wp-tests-
 config.php}}} instead of {{{wp-config.php}}}.

 After I followed your instruction with the modification shown above, I've
 successfully observed {{{Argument #1 ($ftp) must be of type
 FTP\Connection, null given}}} error.

 If my understanding is incorrect, let me know so I can learn something
 from that.

 Thank you!

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


More information about the wp-trac mailing list