This guide provides instructions to safely upgrade major versions of the WooCommerce Subscriptions plugin. While many of these steps are not necessary most of the time, it is always safest to follow these steps when upgrading to a major new version. By following these instructions carefully, you will prevent issues and interruptions to your store.
Step 1. Before Updating ↑ Back to top
To help prevent any issues when updating your live site, there are some important things to know and steps you can take before updating.
WooCommerce Dependency ↑ Back to top
Major new versions often increment the minimum WooCommerce version requirements.
For example, Subscriptions v2.0 requires a minimum of WooCommerce 2.3 and Subscriptions v2.1 requires WooCommerce 2.4 or newer. You cannot use Subscriptions with a version of WooCommerce that does not meet the dependency.
The first step before updating Subscriptions therefore is always to update WooCommerce. If you are running an older version of WooCommerce, please update WooCommerce before updating Subscriptions.
Update Other Plugins Too ↑ Back to top
On occasion, major new versions of Subscriptions, like version 2.0, introduce breaking changes with prior versions. This means extensions that integrated with Subscriptions may have had to update compatibility for the new version. To get access to this updated compatibility, you will need to be running the latest version of these extensions so please update all of your site’s other plugins, especially WooCommerce extensions, before updating Subscriptions.
Create a Backup ↑ Back to top
Before updating Subscriptions to any major new version, you should backup your site’s files and database. This is especially important for major versions like 2.0 or 3.0 where data storage is often updated.
There are a couple of services out there that make backups easier for you:
- BackupBuddy is a very popular backup and migration tool amongst our customers.
- ManageWP does a lot more and is especially useful if you manage multiple websites.
- VaultPress is the full backup service by Automattic.
You can also perform backups manually, but making backups and ensuring your website continues to function are extremely important.
Once you run the upgrade process to convert your database to newer versions of Subscriptions, there is no undo button. The only way you can restore the old data is by restoring your site from a backup. This is why it is important to make a backup before updating the extension.
Step 2. Create a Staging Site ↑ Back to top
Now that you have updated all the plugins on your live site and created a backup of your site, you should test the new version of Subscriptions on a staging site before upgrading on your live site.
Many WordPress hosts offer a simple way to create staging sites, including:
- Site Ground
- Page.ly (SkyVerge published a great guide on how to create a staging site with Page.ly)
- WP Engine
If you are unsure of whether your host provides staging sites, contact your hosting company’s support team to ask.
If your host does not offer a staging site feature, there are premium tools available to help. The WP Stage Coach plugin is a great way to create a staging site without having to copy databases and files manually. Alternatively, you can manually create a staging site by following one of the many tutorials online, like this tutorial from Maintainn or this one from WP Beginner.
Subscriptions is designed to handle staging sites safely. No subscription related emails or recurring payments will be processed from your staging site once it has been setup (unless you enable them).
Step 3. Test Subscriptions on Staging ↑ Back to top
Now that we have a test environment with all the files and database from our live website, including its products, orders and subscriptions, we can test the Subscriptions upgrade process on that site. Once it is upgraded, we can look at a few pages and run through a few common processes to make sure they are working correctly.
Once we have tested the changes on the staging site, we can confidently repeat the same steps on the live site.
Step 3.1. Install the Latest Version of Subscriptions ↑ Back to top
To install the latest version of Subscriptions:
- Go to your WooCommerce.com > My Account > Downloads page
- Click Download next to WooCommerce Subscriptions
- Go to the WordPress Administration dashboard on your staging site (e.g. www.example.com/wp-admin/)
- Uninstall the active version of Subscriptions plugin by following the instructions for manually uninstalling a WordPress plugin
- Install the plugin with the zip file you downloaded from WooCommerce.com by following the instructions for manually installing a WordPress plugin
/woocommerce-subscriptions/, or else some other extensions might not work.
Step 3.2. Run the Upgrade Process
Some new versions of Subscriptions, like version 2.0, require changing the way data is stored in your site’s database. In order to do this, Subscriptions will provide a database upgrade process.
Once the new version of WooCommerce Subscriptions has been activated, if it needs to upgrade your database, you will be redirected to the upgrade process page. Subscriptions will redirect all administrative users to this page to ensure that the database is upgraded as soon as possible when database upgrades are required. Once you arrive at the upgrade process page, begin the upgrade by clicking Upgrade Database.
The upgrader will process small batches of subscriptions until all subscriptions have been upgraded. Leave the upgrader webpage open until the upgrade completes.
Subscriptions will provide you with estimated length of time until the process will be completed. If the upgrade process is estimated to take a long time, you can leave the computer or continue to work from other tabs or windows; however, do not close the webpage where the upgrade process is running. The webpage needs to remain open for the upgrade to continue.
If you do happen to close the webpage, you can reload your website and resume the process without any issues. Similarly, if an error occurs during the upgrade process, refresh the page and resume the upgrade. Then contact support after the upgrade has completed successfully. The upgrade process is designed to handle many errors and it can often continue without corrupting your data if something goes wrong.
If the upgrade process is unable to complete, create a support ticket so that we can help diagnose the issue as soon as possible. Be sure to include the log file mentioned below (uploaded it to a free service like CloudUp, CloudApp or Dropbox and include the link).
Subscriptions keeps a log of everything it upgrades during the process. If you need to contact support about issues with the upgrade, please include this file with the support ticket. It can be found under the file path:
/wp-content/uploads/wc-logs/ in the log file beginning with
This log file will automatically be deleted a few weeks after the upgrade has completed successfully.
Upgrade Process Design
The batch size for each upgrade will be between 35 and 50, depending on the number of subscriptions on your site (the more subscriptions the smaller the batch size). By upgrading the data in small batches, the upgrade process is slower than doing one large database query or processing larger batches, but it is also more reliable. Specifically, small batches prevent timeout or memory exhaustion errors on the many varieties of possible server configurations.
Because upgrading small batches can be slow, the upgrade process is written is such a way that only administrative users are blocked from accessing the store while the upgrading is in progress. Customers, non-logged in visitors and other non-administrative users on your site can continue to browse and even purchase products (including subscription products) from your store while the upgrade is in progress.
Step 3.3. Test, Test, Test ↑ Back to top
Once the upgrade process completes, you will be redirected to a welcome page providing an overview of the new features in this version of Subscriptions. You can use links on this page to navigate to pages on your site to test out new and existing Subscriptions features.
Because major new versions of Subscriptions often introduce a number of changes and new features, it’s important to test as many things as possible before you start using it on your live website. We test new versions for months on multiple live and test sites before releasing them publicly, but every install is different. Your site may have a particular plugin installed that is incompatible, or you may have some custom code running in your theme. That’s why it is still important to test the new version with your own store.
Administration Screens to Test
These are the most important administration screens you should visit in order to check that features are working:
- WooCommerce > Subscriptions: the main subscriptions page. Here you should see all of your existing subscriptions in the new table design.
- WooCommerce > Subscriptions > Add Subscription: on the administration screen above, click the Add Subscription button to load the new Add Subscription administration screen. Create a new subscription with products, taxes and shipping. Set the subscriber’s billing and shipping address and a billing schedule to test out the new feature and ensure it works with all of your existing plugins.
- WooCommerce > Subscriptions > Edit Subscription: on the subscriptions administration screen above, click the ID of a subscription under the Subscription column to load the new Edit Subscription administration screen. Here you may be able to modify an existing subscription, depending on whether the payment gateway used to purchase the subscription supports modifications.
- Now visit other administration screens, like the WooCommerce > Orders, WooCommerce > Orders > Edit Order and WooCommerce > Settings > Subscriptions screens to ensure that everything is working correctly.
Front End Pages to Test
After you have tested the administration side of your site, you should test the customer facing site of the site too. The most important front end customer interactions to test are:
- Purchasing subscription and non-subscription products via your store.
- Viewing and managing a subscription via the My Account page for a customer. You should pay particular attention to the new View Subscription page. Go here to test suspending and reactivating a subscription and try to change the address or payment method on a subscription or upgrade/downgrade a subscription item.
Step 3.4. Report Issues and Get Support ↑ Back to top
If you have any issues on your site after updating, please report them to us via support. Although we do extensive testing with every major new version of Subscriptions, there may still be bugs. We want to squash these as soon as possible and make sure your site is running smoothly with minimal interruption.
To help us do this, please include all of the information requested on the support ticket submission form. Including this information can save many hours and even days of back and forth emails to resolve issues.
Step 4. Update Subscriptions on Live Site ↑ Back to top
After you have successfully run the upgrade process on your staging site and tested compatibility with your store’s plugins and theme, you can now confidently update Subscriptions on your live site.
It’s important to run the upgrade process on your live site instead of transferring your database from staging to live, because customers may have purchased new products or renewal orders may have been automatically created while you were testing the update on your staging site.
Remember, the Subscriptions upgrade process is written in such a way that while the upgrade is in progress, customers, unauthenticated visitors and other non-administrative users on your site can continue to browse and purchase products (including subscription products) from your store.