Make WordPress Core

Opened 7 months ago

Last modified 2 weeks ago

#59917 new defect (bug)

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

Reported by: antonmo's profile antonmo Owned by:
Milestone: 6.7 Priority: normal
Severity: normal Version:
Component: Filesystem API Keywords: needs-patch
Focuses: administration 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 (5)

#1 @sabernhardt
7 months ago

  • Description modified (diff)

#2 @jorbin
7 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
4 months ago

  • Milestone changed from 6.5 to 6.6

This ticket was mentioned in Slack in #core by oglekler. View the logs.


2 weeks ago

#5 @oglekler
2 weeks ago

  • Focuses administration added
  • Milestone changed from 6.6 to 6.7

This ticket was discussed during bug scrub and due to possible complications with the Filesystem API decided to move this to the next milestone.

This bug also needs to be reproduced to the point what causes the Fatal Error to occure.

Ad props to @costdev

Note: See TracTickets for help on using tickets.