Title: ftp_mkdir(), ftp_fput(), ftp_chmod() errors
Last modified: February 17, 2020

---

# ftp_mkdir(), ftp_fput(), ftp_chmod() errors

 *  Resolved [rbowen](https://wordpress.org/support/users/rbowen/)
 * (@rbowen)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/ftp_mkdir-ftp_fput-ftp_chmod-errors/)
 * I’m running UAG under php-fpm, and am getting the following warnings in the php-
   fpm error log:
 * [17-Feb-2020 20:02:31 UTC] PHP Warning: ftp_mkdir() expects parameter 1 to be
   resource, null given in /var/www/vhosts/domain.org/wp-admin/includes/class-wp-
   filesystem-ftpext.php on line 539
    [17-Feb-2020 20:02:31 UTC] PHP Warning: Use
   of undefined constant FS_CHMOD_FILE – assumed ‘FS_CHMOD_FILE’ (this will throw
   an Error in a future version of PHP) in /var/www/vhosts/domain.org/wp-content/
   plugins/ultimate-addons-for-gutenberg/classes/class-uagb-helper.php on line 1400[
   17-Feb-2020 20:02:31 UTC] PHP Warning: ftp_fput() expects parameter 1 to be resource,
   null given in /var/www/vhosts/domain.org/wp-admin/includes/class-wp-filesystem-
   ftpext.php on line 208 [17-Feb-2020 20:02:31 UTC] PHP Warning: ftp_chmod() expects
   parameter 1 to be resource, null given in /var/www/vhosts/domain.org/wp-admin/
   includes/class-wp-filesystem-ftpext.php on line 280
 * This is running under PHP 7.2.11 on CentOS 8
 * These are warnings, not errors, so it’s not critical, but probably something 
   that y’all want to fix for future versions.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Support [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * (@brainstormteam)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/ftp_mkdir-ftp_fput-ftp_chmod-errors/#post-12455296)
 * Hello [@rbowen](https://wordpress.org/support/users/rbowen/),
 * Thank you so much for reporting this. We are thankful for your patience and readiness
   to help us fix things that we come across.
 * I have asked our concerned developers. They are looking into it. We’ll surely
   fix this issue in our future updates.
 * We really appreciate your patience.
 * Regards,
    Sweta
 *  [breichard](https://wordpress.org/support/users/breichard/)
 * (@breichard)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/ftp_mkdir-ftp_fput-ftp_chmod-errors/#post-12541114)
 * I also have this issue, but it breaks the plugin for me so it’s not really a 
   non-critical issue. If it’s trying to write files to the server my hosting provider
   does not allow plugins to do that.
 *  Plugin Support [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * (@brainstormteam)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/ftp_mkdir-ftp_fput-ftp_chmod-errors/#post-12547330)
 * Hello [@breichard](https://wordpress.org/support/users/breichard/),
 * Could you please [open a ticket](https://www.ultimategutenberg.com/support/) 
   with us using our Support Portal so that we can have a closer look?
 * Regards,
    Sweta
 *  Plugin Support [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * (@brainstormteam)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/ftp_mkdir-ftp_fput-ftp_chmod-errors/#post-12748973)
 * Hello [@breichard](https://wordpress.org/support/users/breichard/) [@rbowen](https://wordpress.org/support/users/rbowen/),
 * We have fixed this issue in our previous update ie ver 1.14.8.
 * I suggest you update the plugin to the latest version and check it out.
 * Regards,
    Rajkiran
 *  Thread Starter [rbowen](https://wordpress.org/support/users/rbowen/)
 * (@rbowen)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/ftp_mkdir-ftp_fput-ftp_chmod-errors/#post-12750708)
 * Excellent. Thanks, folks, for your attention to detail here.
 *  [breichard](https://wordpress.org/support/users/breichard/)
 * (@breichard)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/ftp_mkdir-ftp_fput-ftp_chmod-errors/#post-12758571)
 * I still have the issue…
 * Warning: ftp_mkdir() expects parameter 1 to be resource, null given in /srv/bindings/
   4cc13316c5e94554b04c84f75e3388e0/code/wp-admin/includes/class-wp-filesystem-ftpext.
   php on line 539 Warning: ftp_fput() expects parameter 1 to be resource, null 
   given in /srv/bindings/4cc13316c5e94554b04c84f75e3388e0/code/wp-admin/includes/
   class-wp-filesystem-ftpext.php on line 208 Warning: ftp_chmod() expects parameter
   1 to be resource, null given in /srv/bindings/4cc13316c5e94554b04c84f75e3388e0/
   code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 280 Warning: ftp_fput()
   expects parameter 1 to be resource, null given in /srv/bindings/4cc13316c5e94554b04c84f75e3388e0/
   code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 208 Warning: ftp_nlist()
   expects parameter 1 to be resource, null given in /srv/bindings/4cc13316c5e94554b04c84f75e3388e0/
   code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 402 Warning: ftp_pwd()
   expects parameter 1 to be resource, null given in /srv/bindings/4cc13316c5e94554b04c84f75e3388e0/
   code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226 Warning: ftp_pwd()
   expects parameter 1 to be resource, null given in /srv/bindings/4cc13316c5e94554b04c84f75e3388e0/
   code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226 Warning: ftp_pwd()
   expects parameter 1 to be resource, null given in /srv/bindings/4cc13316c5e94554b04c84f75e3388e0/
   code/wp-admin/includes/class-wp-filesystem-ftpext.php on line 226
 *  Plugin Support [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * (@brainstormteam)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/ftp_mkdir-ftp_fput-ftp_chmod-errors/#post-12775157)
 * Hello [@breichard](https://wordpress.org/support/users/breichard/),
 * Could you please open a ticket with us from [here](https://www.ultimategutenberg.com/support/),
   so that we can have a closer look?
 * Looking forward to resolving your issue.
 * Regards,
    Rajkiran

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘ftp_mkdir(), ftp_fput(), ftp_chmod() errors’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-addons-for-gutenberg/assets/icon-256x256.gif?rev
   =3240412)
 * [Spectra Gutenberg Blocks – Website Builder for the Block Editor](https://wordpress.org/plugins/ultimate-addons-for-gutenberg/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-addons-for-gutenberg/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-addons-for-gutenberg/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Team Brainstorm Force](https://wordpress.org/support/users/brainstormteam/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/ftp_mkdir-ftp_fput-ftp_chmod-errors/#post-12775157)
 * Status: resolved