• Resolved KirillKo

    (@kirillko)


    Update failed: Could not copy file. woocommerce/includes/cli/class-wc-cli-rest-command.php

    1. Updating from 8.2.1 to 8.2.2
    2. File permissions WRITABLE
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @kirillko,

    Update failed: Could not copy file. woocommerce/includes/cli/class-wc-cli-rest-command.php. Updating from 8.2.1 to 8.2.2, File permissions WRITABLE.

    From what I understand, you’re encountering an issue while trying to update your WooCommerce from version 8.2.1 to 8.2.2. The error message you’re seeing is “Update failed: Could not copy file. woocommerce/includes/cli/class-wc-cli-rest-command.php”. I’m here to help you resolve this.

    This error usually occurs when WordPress doesn’t have enough permissions to write to a file or directory. Since you mentioned that your file permissions are writable, it might be a different issue.

    Here are a few steps you can take to resolve this issue:

    1. Insufficient Server Space: If your server is running low on space, it might prevent files from being copied during the update. Please check your server’s disk space.
    2. Increase PHP memory limit: Sometimes, this issue can occur due to a lack of resources. Try increasing your PHP memory limit. You can do this by editing your wp-config.php file and adding the following line of code: define('WP_MEMORY_LIMIT', '256M'); Here’s a helpful guide on how to do that: ?? Increasing the WordPress Memory Limit Here.
    3. Plugin Conflict: Disable all your plugins except WooCommerce and see if the update goes through. If it does, then one of your plugins is causing the issue. You can then enable them one by one to identify the culprit.
    4. Theme Conflict: Switch to a default WordPress theme like Storefront and try the update. If it works, then the issue is with your theme. Here’s a handy guide on testing for conflicts: ?? How to Test for Plugin and Theme Conflicts.
    5. Manual Update: If the problem persists, you might want to try a manual update. This involves downloading the latest WooCommerce zip file from www.ads-software.com, extracting it, and using an FTP client to upload it to your WordPress plugin directory. Need help with that? Here’s a handy guide on ?? Manual Plugin Installation.

    ?? Quick heads-up: It’s really important to backup your full site and database before making any changes. This will ensure that if anything goes wrong, you can easily restore your site to its previous, working state.

    If none of these steps work, could you please share your site’s System Status with us? It will give us a better understanding of your site’s setup and help us identify the problem. You can find it via WooCommerce > Status. Select Get system report and then Copy for support.

    Also, if there are any fatal error logs, please share those with us as well. You can find them under WooCommerce > Status > Logs.

    Once you’ve gathered this information, please paste it inside a Code block in your reply, or use https://pastebin.com to paste it and share the link with us.

    Thanks for your patience and cooperation in this matter! We’re here to help you get this sorted.

    Thread Starter KirillKo

    (@kirillko)

    Hi,


    Thanks for the info – in my case it was INODEs limit reached on the hosting.


    Topic closed ??
    Kirill

    Hi @kirillko,

    Thanks for the info – in my case it was INODEs limit reached on the hosting.

    I’m glad to hear that you were able to identify and resolve the issue! Reaching the INODEs limit on your hosting can indeed prevent files from being copied during an update, which is likely why you were seeing the “Update failed: Could not copy file” error message.

    Thank you for letting us know the cause of the issue. This information could be helpful to other users who may encounter a similar problem in the future.

    I’ll go ahead and mark this thread as resolved. However, if you ever have more questions or issues in the future, don’t hesitate to kick off a new topic.

    Hope you have a fantastic day!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WooCommerce Update failed: Could not copy file.’ is closed to new replies.