• I can’t get WooCommerce to update on multiple sites that we have. Keep getting errors like the following: An error occurred while updating WooCommerce:?Could not copy file. woocommerce/src/Admin/API/Reports/Products/Stats/Query.php

    Not just one site. MULTIPLE sites.

Viewing 1 replies (of 1 total)
  • Plugin Support Sandip Mondal – a11n

    (@sandipmondal)

    Hi @sowerswebtech,

    Sorry to hear you are facing issues while updating WooCommerce.

    An error occurred while updating WooCommerce:?Could not copy file. woocommerce/src/Admin/API/Reports/Products/Stats/Query.php

    The error message you’re seeing is Update failed: Could not copy file. woocommerce/src/Admin/API/Reports/Products/Stats/Query.php usually occurs when WordPress doesn’t have enough permissions to write to a file or directory.

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

    1. Can you please check with your host if WordPress on your server has writable file permissions for the plugins/themes folder?
    2. 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.
    3. 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.
    4. 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.
    5. 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.
    6. 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.

    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.

    Let us know how it goes!

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this review.