• Ever since we updated to the latest version of WP on our WP Multisite, we can no longer install, update or upload plugins to our MS.

    This is the error that we got when trying to upload a plugin:
    Warning: copy(): The first argument to copy() function cannot be a directory in /code/wp-admin/includes/class-wp-filesystem-direct.php on line 257

    I’ll assume the same error is going for installing a plugin from the repository and updating.

    When I try to update any existing plugin, it shows as “successfully” updated, however when I go to the plugins page, it has removed the plugin. So I’m guessing it didn’t actually copy the plugin over because of the same error.

    I’ve looked into the functions file of our themes and removed the ending ?> to avoid the blank space issue, but still no go.

    • This topic was modified 9 years, 1 month ago by Asitha.
Viewing 1 replies (of 1 total)
  • It appears like the main cause for this issue is file permissions. You need to adjust your file permissions so that your webserver/PHP is able to write to wp-content and all folders inside wp-content.

Viewing 1 replies (of 1 total)

The topic ‘Unable to Update Plugins’ is closed to new replies.