[wp-trac] [WordPress Trac] #51283: FTP warning in Apache Logs

WordPress Trac noreply at wordpress.org
Thu Sep 10 02:26:19 UTC 2020


#51283: FTP warning in Apache Logs
-------------------------------+-----------------------------
 Reporter:  wilfredswholesale  |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Cron API           |    Version:  5.5.1
 Severity:  trivial            |   Keywords:  2nd-opinion
  Focuses:                     |
-------------------------------+-----------------------------
 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.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51283>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list