Make WordPress Core

Opened 3 months ago

Last modified 9 days ago

#59917 new defect (bug)

On windows host using ftp, Undefined array key "islink"

Reported by: antonmo's profile antonmo Owned by:
Milestone: 6.6 Priority: normal
Severity: normal Version:
Component: Filesystem API Keywords: needs-patch
Focuses: Cc:

Description (last modified by sabernhardt)

Fresh install of wordpress 6.4.1
On windows host using ftp

steps to recreate:

  1. Going to "sitehealth" page gives critical warning ftp credentials are missing for updates.
  1. Google search suggested adding the following to the user added section of wp-config.php
    define('FTP_USER', 'USERNAME');
    define('FTP_PASS', 'PASSWORD');
    define('FTP_HOST', 'FTP.EXAMPLE.COM');
    
  2. After this, go back to site health page. It is giving the following warnings repeatedly:
    Warning: Undefined array key 3 in C:\...\wp-admin\includes\class-ftp.php on line 457
    
    Warning: Undefined array key "islink" in C:\...\wp-admin\includes\class-wp-filesystem-ftpsockets.php on line 695
    
    Warning: Undefined array key "perms" in C:\...\wp-admin\includes\class-wp-filesystem-ftpsockets.php on line 700
    
    Warning: Undefined array key "islink" in C:\...\wp-admin\includes\class-wp-filesystem-ftpsockets.php on line 695
    

Change History (3)

#1 @sabernhardt
3 months ago

  • Description modified (diff)

#2 @jorbin
3 months ago

  • Component changed from Site Health to Filesystem API
  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to 6.5
  • Version 6.4 deleted

Thanks for opening your first ticket @antonmo!

Moving to 6.5 for visibility. I've removed the version since this code is from a few different versions but is all quite old. While seen on the site health screen, this is related to the filesystem API so updating the component.

#3 @swissspidy
9 days ago

  • Milestone changed from 6.5 to 6.6
Note: See TracTickets for help on using tickets.