Title: Can&#8217;t upgrade plugins
Last modified: December 17, 2020

---

# Can’t upgrade plugins

 *  Resolved [Manuel Camargo](https://wordpress.org/support/users/sirlouen/)
 * (@sirlouen)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cant-upgrade-plugins-3/)
 * I cant upgrade plugins from certain mainwp child.
    I’ve noticed that mainwp says
   that cannot write the folders, but the folders have full write and read access(
   777)
 * How can I debug this issue?
 * PS: I’ve found that when I go into “connection details” this error appear
 *     ```
       #0 /wp-content/plugins/mainwp-child/class/class-mainwp-helper.php(115): MainWP\Child\MainWP_Helper::check_dir()
       #1 /wp-content/plugins/mainwp-child/class/class-mainwp-clone-page.php(348): MainWP\Child\MainWP_Helper::get_mainwp_dir()
       #2 /wp-content/plugins/mainwp-child/class/class-mainwp-clone-page.php(323): MainWP\Child\MainWP_Clone_Page::render_clone_from_server()
       #3 /wp-content/plugins/mainwp-child/class/class-mainwp-pages.php(334): MainWP\Child\MainWP_Clone_Page::render_normal_restore()
       #4 /wp-includes/class-wp-hook.php(287): MainWP\Child\MainWP_Pages->render_pages()
       #5 /wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters()
       ```
   
    -  This topic was modified 5 years, 5 months ago by [Manuel Camargo](https://wordpress.org/support/users/sirlouen/).

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

 *  Thread Starter [Manuel Camargo](https://wordpress.org/support/users/sirlouen/)
 * (@sirlouen)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cant-upgrade-plugins-3/#post-13805320)
 * I think I’ve found the problem
 * link property is not being initialized from WP_Filesystem_Base (WP_Filesystem_FTPExt
   Class), therefore methods like ftp_nlist and ftp_mkdir are receiving null for
   the first parameter.
 * Essentially, at the moment that $wp_filesystem in file wp-content/plugins/mainwp-
   child/class/class-mainwp-helper.php, line 145 it is NOT initialized, (you can
   trace it down to see that is NULL at that moment):
 * `$wp_fielsystem->link`
 * In my case, I’m using ftpext for FS_METHOD and I’m willing to use it for security
   reasons
 * Solution/Conclusion?
 * I think you cannot simply just call global $wp_filesystem, it must be initialized
   before being used.
 * [https://pippinsplugins.com/introduction-wp-filesystem/](https://pippinsplugins.com/introduction-wp-filesystem/)
 *  Plugin Author [mainwp](https://wordpress.org/support/users/mainwp/)
 * (@mainwp)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cant-upgrade-plugins-3/#post-13805437)
 * Please review this KB Article [Required FS_METHOD](https://kb.mainwp.com/docs/required-fs_method/)
 * If that doesn’t help please open a support ticket.
 *  Thread Starter [Manuel Camargo](https://wordpress.org/support/users/sirlouen/)
 * (@sirlouen)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cant-upgrade-plugins-3/#post-13807530)
 * According to the code, FS_METHOD ftpext is checked during the checkings so technically
   it was compatible at some point and now is legacy code?
 * FS_METHOD direct is too unsafe for my sites.
 *  Plugin Support [Bogdan Rapaic](https://wordpress.org/support/users/bogdanrapaic/)
 * (@bogdanrapaic)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/cant-upgrade-plugins-3/#post-13809662)
 * Hi [@sirlouen](https://wordpress.org/support/users/sirlouen/), at the moment,
   the ‘direct’ FS_METHOD is required.
 *  Plugin Author [mainwp](https://wordpress.org/support/users/mainwp/)
 * (@mainwp)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/cant-upgrade-plugins-3/#post-14002602)
 * Hi [@sirlouen](https://wordpress.org/support/users/sirlouen/),
 * I will go ahead and resolve this support request. For additional help, please
   feel free to open a [helpdesk ticket](https://mainwp.com/my-account/get-support/).

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

The topic ‘Can’t upgrade plugins’ is closed to new replies.

 * ![](https://ps.w.org/mainwp-child/assets/icon-256x256.png?rev=2734948)
 * [MainWP Child - Securely Connects to the MainWP Dashboard to Manage Multiple Sites](https://wordpress.org/plugins/mainwp-child/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mainwp-child/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mainwp-child/)
 * [Active Topics](https://wordpress.org/support/plugin/mainwp-child/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mainwp-child/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mainwp-child/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [mainwp](https://wordpress.org/support/users/mainwp/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/cant-upgrade-plugins-3/#post-14002602)
 * Status: resolved