[wp-trac] [WordPress Trac] #51283: FTP warning in Apache Logs
WordPress Trac
noreply at wordpress.org
Thu Sep 10 13:36:04 UTC 2020
#51283: FTP warning in Apache Logs
-------------------------------+------------------------
Reporter: wilfredswholesale | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Filesystem API | Version: 5.5.1
Severity: trivial | Resolution: duplicate
Keywords: | Focuses:
-------------------------------+------------------------
Changes (by SergeyBiryukov):
* status: new => closed
* component: Cron API => Filesystem API
* milestone: Awaiting Review =>
* keywords: 2nd-opinion =>
* resolution: => duplicate
Old description:
> 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.
New description:
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.
--
Comment:
Hi there, welcome to WordPress Trac!
Thanks for the report, we're already tracking this issue in #48689.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51283#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list