WordPress.org

Make WordPress Core

Opened 4 months ago

Closed 4 months ago

#51283 closed defect (bug) (duplicate)

FTP warning in Apache Logs

Reported by: wilfredswholesale Owned by:
Milestone: Priority: normal
Severity: trivial Version: 5.5.1
Component: Filesystem API Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

I am getting this error in my apache logs now after upgrading to WP 5.5.1, although am unsure if it was there prior as I have only just checked these logs as part of an inspection. The [Client] is actually my own servers IP address, so it is being referred from myself. Have changed names and numbers for this purpose but can provide the correct ones if need be.

Did a search and I see similar errors from several versions ago which appeared to be rectified.

[Thu Sep 10 11:09:42.456543 2020] [php7:warn] [pid 16610] [client 123.456.789.10:50200] PHP Warning:  ftp_nlist() expects parameter 1 to b
e resource, null given in /home/mydomain/www/live/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php on line 420, referer: https:/
/www.mydomain.com.au/wp-cron.php?doing_wp_cron=1599700177.3732860088348388671875
[Thu Sep 10 11:09:42.456551 2020] [php7:warn] [pid 16610] [client 123.456.789.10:50200] PHP Warning:  ftp_pwd() expects parameter 1 to be
resource, null given in /home/mydomain/www/live/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php on line 230, referer: https://w
ww.mydomain.com.au/wp-cron.php?doing_wp_cron=1599700177.3732860088348388671875
[Thu Sep 10 11:09:42.456562 2020] [php7:warn] [pid 16610] [client 123.456.789.10:50200] PHP Warning:  ftp_pwd() expects parameter 1 to be
resource, null given in /home/mydomain/www/live/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php on line 230, referer: https://w
ww.mydomain.com.au/wp-cron.php?doing_wp_cron=1599700177.3732860088348388671875
[Thu Sep 10 11:09:42.456570 2020] [php7:warn] [pid 16610] [client 123.456.789.10:50200] PHP Warning:  ftp_rmdir() expects parameter 1 to b
e resource, null given in /home/mydomain/www/live/wordpress/wp-admin/includes/class-wp-filesystem-ftpext.php on line 397, referer: https:/
/www.mydomain.com.au/wp-cron.php?doing_wp_cron=1599700177.3732860088348388671875

Seems to be related to the FTP when doing a Cron Job.

WooCommerce 4.5.1
ShoppingCart 1.1.2
Can provide status of Woocommerce if required.

Change History (1)

#1 @SergeyBiryukov
4 months ago

  • Component changed from Cron API to Filesystem API
  • Description modified (diff)
  • Keywords 2nd-opinion removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi there, welcome to WordPress Trac!

Thanks for the report, we're already tracking this issue in #48689.

Note: See TracTickets for help on using tickets.