• Resolved robyone3170

    (@robyone3170)


    Hello,
    On a server with Centos 6.9 (Apache 2.2.15, PHP 7.1.6) I installed a site with wordpress 4.8.2, but I can not update or install plugins!

    When I try, I get the following errors (widt WP_DEBUG=true).
    This is trying to update a Cherry plugin, for example, but do it with everyone:

    Warning: rename(/wp-content/upgrade/v1.0-nTh35W/CherryFramework-cherry-social-11de820/,/wp-content/upgrade/v1.0-nTh35W/cherry-social/): No such file or directory in /home/web/site_folder/wp-content/themes/themexxxx/inc/class-tgm-plugin-activation.php on line 271

    Warning: array_keys() expects parameter 1 to be array, boolean given in /home/web/site_folder/wp-admin/includes/class-wp-upgrader.php on line 507

    At the end of this attempt, if I tried to update the plugin, I even find the plugin folder EMPTY! That is, the files of the old version are deleted but there are no new ones!

    When installing the plugin, I provide wordpress right FTP username and password: FTP access, reading and writing with these credentials work regularly.

    All folders have permissions 775, files have 664, while the owner of the entire space is username of the apache group (so owner = username:apache).

    I have also disabled selinux!

    Can anyone help me solve this problem?
    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter robyone3170

    (@robyone3170)

    Update the situation: it seems that the problem is only with the cherry framework, not with other plugins!

    Thread Starter robyone3170

    (@robyone3170)

    Solved! Just add the command
    define (‘FS_METHOD’, ‘direct’);
    to the wp-config.php file.
    Then you have to clear the cache of the browser (it is fundamental, I did not do it at the beginning …) and problem solved!
    I asked the question and answered myself! ??

    Hello,
    Please check you tgm plugin activation file and the path where that framework is mentioned.
    Because when you try to install the plugin through tgm, WordPress cannot find its path.
    You may try to upload it from plugin directory clicking the add new button.
    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unable to update plugins’ is closed to new replies.