如何安全正确地更新WooCommerce插图

If you are running a WooCommerce store, you may have encountered a notification that prompts you to update to the latest version. Have you ever wondered whether it is safe to continue to click “Update now”, especially if your store is online and customers visit it?

updates are a common phenomenon on WordPress dashboards. From actual WordPress software to themes and plug-ins, we often see update notifications. As the owner of a WordPress site, you should respond to updates.

but are all updates as simple as they seem? What if (that’s a big if) something goes wrong with an update?

in some cases, an update can mess up your entire site. From design elements to more complex features, such as refusing to add to the shopping cart, problems with payment processing, etc., you will suddenly be faced with a dysfunctional website. Not to mention a lot of dissatisfied customers!

what if you have an alternative solution? What if you have a solution that you can rely on when you fix problems caused by updates?

this article will explore an effective way to update your WooCommerce store. If your store breaks down, you won’t go through a frightening process.

  1. WooCommerce Update
  2. Why do I need to update WooCommerce
  3. use the right tools to update WooCommerce
  4. Why test the update for WooCommerce? Precautions that
  5. should take when updating WooCommerce
  6. updates WooCommerce
  7. WooCommerce common update errors and solutions
  8. securely updates WooCommerce

WooCommerce update

如何安全正确地更新WooCommerce插图1

in order to improve the speed of your website, Performance and security You must make sure that your WordPress software, themes and plug-ins are updated. Developers keep releasing new updates to

, whether it’s adding new features or fixing existing bugs. Skipping an update is not recommended. It’s the same with

to make sure your WooCommerce plugin is updated. Once you have set up WooCommerce on your website, it is important to keep the latest version of the WooCommerce plugin to ensure performance and security. Why

needs to be updated WooCommerce

WooCommerce is a very popular e-commerce platform with millions of users around the world. With the WooCommerce plug-in, you can transform a basic WordPress website into a mature online store.

如何安全正确地更新WooCommerce插图2

here are a few facts to support our claim:

  • WooCommerce is the most popular plug-in on the entire Internet, and its usage is 68%.
  • currently has 4414537 real-time websites using the WooCommerce
  • 93.7% WordPress e-commerce site using the WooCommerce plug-in

WooCommerce. The team behind the plug-in is constantly working to improve the plug-in. To make sure your online store works better, they keep adding new features, fixing bugs and solving problems. Most importantly, they continue to improve the overall security of the platform. The last point of

is incredibly important! these new features of

are released to WooCommerce owners in the form of regular updates. Every time

is updated, your website will be improved in one way or another, and you will install the safest version of WooCommerce. So you have all the more reason to run it every time you update it.

but is it really necessary to update WooCommerce? How does it help?

, let’s discuss several reasons why you can be persuaded to update WooCommerce.

1. Security

one of the most important reasons for updating WooCommerce is the security of your store. Procrastination or delay for too long may put your store in danger.

as mentioned earlier, 93.7% of WordPress e-commerce sites use WooCommerce. Given their popularity, WordPress and WooCommerce are the main targets of hackers and data thieves. If a security breach in

is reported, the WooCommerce core team will try to fix the problem. Then they will release a new update to solve the problem and publicly explain what has been fixed.

if you are not using the latest updated version of WooCommerce, you are using a version with known security vulnerabilities and may be the victim of an attack.

hackers can take advantage of not only WooCommerce, but also WordPress software, themes, and plug-ins. You need to make sure everything is up to date.

take a look at one of the best WordPress security plug-ins you can use.

two。 Functional

has new features and updates with each major WooCommerce release.

for example, one of the enhancements included in the WooCommerce 5.0 update is to create additional download permissions for simple downloadable products.

similarly, some of the enhancements in earlier versions of WooCommerce, the 4.9 update, include avoiding unsupported updates based on the PHP version. In the 4.8 update, WooCommerce added support for Twenty Twenty-One WordPress themes. In addition to the several enhancements mentioned above,

also has some fixes, tweaks, and developments.

WooCommerce version 5.0 also addresses localization issues, such as including the state of the Dominican Republic, updating the name of the Indian state “Orissa” to “Odisha”, fixing the name of a state in Guatemala, and other fixes.

so, do you want to miss an update? If you are using an older version of WooCommerce, your store experience will be different from that of people using the newer version.

3. Speed

WooCommerce’s team is constantly making their platform better and faster. New versions can often lead to performance improvements. Below

is a list of enhancements from earlier versions of WooCommerce.

improved the speed of the management dashboard (version 3.7)
Increased the speed of change in the lookup function (version 3.6)
Improved speed of getting downloads for customers (version 3.6)
Added visibility provisions for out-of-stock products to speed up these queries (version 3.0).
Improved search for orders (version 2.13).
Increased speed in different places (version 2.13).

considers that speed and performance are important factors in SEO, so you have to keep your WooCommerce store up to date.

4. Bug fix

as the saying goes, “No one is perfect.”

. Okay. On a more serious issue, despite the various testing processes, one or two mistakes slip through the cracks. That’s why you have a small version of WooCommerce.

, for example, released a small version, 1.8.1, after WooCommerce Management version 1.8.0, which fixed bugs in snack bar layoffs.

this reiterates the view that you must update your WooCommerce plugin when the version is released.

using the right tools to update the WooCommerce

manual test and then your WooCommerce platform can be time-consuming and overwhelming. The good news is that there are tools that can help speed up the process.

here are some of the tools we recommend to help test the latest updates to your WooCommerce platform.

staging site

simply says that a staging site is a clone of your real site. We always recommend that you test it on your staging site. If everything is all right, execute the same program on the real website.

phased tools allow you to easily copy your website. If the update goes wrong, experimenting on your real website can have serious consequences. Not to mention the chance that your site will be completely paralyzed!

phased sites provide an ideal test environment in which you can run and test new updates without worrying about any impact.

we also recommend that you create a staging site in a subdomain rather than a subdirectory.

for example, if your domain name is yoursite.com, we recommend that you create a staging site, such as staging.yoursite.com, on a subdomain, rather than a subdirectory, such as yoursite.com/staging. The reason for

is simple.

a subdirectory is still under your real site. Any update to the staging site under the subdirectory will have an impact on the entire real-time site. While the subdirectory is a new WordPress and WooCommerce installation, it will never affect your on-site store. Most

hosting service providers provide you with a staging tool that is easy to set up.

for example, SiteGround has a staging tool that can be accessed through the Web site tool in the SiteGround Control Panel.

如何安全正确地更新WooCommerce插图3

by default, all installations through the SiteGround WordPress automatic installer are listed. However, if you manually install WordPress, you must add it to the phasing tool yourself.

to add your WordPress installation, click Add Existing.

如何安全正确地更新WooCommerce插图4

then you will find a drop-down menu with all the domain names associated with your SiteGround account. If you have installed your subdomain, just select the domain you want to clone and type your installation path (subdomain).

如何安全正确地更新WooCommerce插图5

clicks “Add” to complete this process. You just set up your staging site.

what if your hosting provider doesn’t provide you with a temporary storage tool? So, use WordPress’s staging plug-in.

, before you ask the next obvious question, how to use the staging plug-in, well, we’ve done it for you. Later in this article, we will guide you step by step to update your WooCommerce store using staging tools and plug-ins. After a new update to the

testing tool

, how long will it take you to test the entire WooCommerce store? And we’re not just talking about the look and feel of your store. It’s all the features, such as adding to the shopping cart, checkout, product updates, order details, and many other things.

, what if we say you can test your website in a few minutes? Yes, with all kinds of testing tools, it’s possible!

with these tools, you can automate the entire process of end-to-end testing of the site, allowing you to focus on the business aspects of your store.

One such testing tool is Ghost Inspector.

如何安全正确地更新WooCommerce插图6

although this is an advanced tool, you can start with a free trial.

through Ghost Inspector, you can make sure that your website is working properly. Best of all, you don’t need any programming or testing experience!

Ghost Inspector is an automated testing tool that monitors and checks your website for any problems. To make sure your site works properly, Ghost Inspector is tested in a browser, just like the exact way users browse your site.

simply installs the Ghost Inspector extension on your web browser, starts recording test scenarios, runs recorded tests, and is notified via email or its third-party integration.

We will learn how to run tests using Ghost Inspector later in this article. Other popular testing tools for

are Usetrace, Protractor, Cucumber and Eggplant Functional. While tools such as Ghost Inspector and Usetrace are cloud-based testing tools, other tools are UI automation and desktop automation testing tools.

backup tool

whether you are updating a plugin or not, you should back up your website regularly. Most service providers offer daily automatic backups as part of their hosting plans.

you can also run manual backups for your store. You have several WordPress backup plug-ins to choose from. Some popular plug-ins include UpdraftPlus, WP Migrate DB Pro, BackWPup, WP Database Backup and Jetpack. Why is

testing updates to WooCommerce?

because security is better than regret!

We know how easy it is to update a plug-in in WordPress. Just click on the update link for the corresponding plug-in and you are done.

but is updating your WooCommerce plugin as easy as updating other plug-ins, such as tables, image compression, or URL redirects?

for example, WooCommerce creates its own custom tables in your database. It also works with various extensions. This means that the problem of one WooCommerce extension will in turn bring problems to the entire WooCommerce platform. Even a small problematic update to

can cause your entire store to be messed up,

, and when you solve this problem, you may put your store in maintenance mode. Depending on how long it takes to fix the problem, your store will lose money for every second you stop.

to avoid this situation, you should take some practical precautions when updating your WooCommerce store.

, what precautions can we take? Precautions that

should take when updating WooCommerce

now that we have realized the importance of updating WooCommerce, we should update it in the best way.

before you update your WooCommerce, you can take the following precautions.

1. It’s too easy to stop automatic updates WooCommerce

to set up automatic updates for your WooCommerce plugin. Just click “enable automatic updates” and it will be fine.

如何安全正确地更新WooCommerce插图7

, however, at this point in the article, you will be very clear that this is not the recommended method. Avoid enabling automatic updates. Especially if your store is alive.

you don’t want the latest version to be automatically installed in your store and cause any problems while you are away or without your knowledge!

2. Do not push updates directly to your real-time store

as suggested earlier, we recommend creating a staging site. Then you update and test here, and if all goes well, run the update on the real site.

A wrong update may end up damaging your store. From the general look and feel of your store to the shopping cart features, your customers may end up having a negative shopping experience. Fortunately for

, you can create a staging environment and do all our tests without having to worry about what happens at the front end.

3. Verify the version of WooCommerce

which version of WooCommerce do you use? Is it the latest version?

must have the latest version of WooCommerce installed. To check that the version you have is the same as the latest version released by WooCommerce, go to WordPress’s plugin library.

如何安全正确地更新WooCommerce插图8

you can get not only the latest WooCommerce version information, but also the required WordPress and PHP version information.

from the image above, you will find that the latest version is WooCommerce 5.0.Your website needs WordPress 5.4or higher and PHP 7.0or higher to run WooCommerce.

4. Updating WordPress to the latest version of

is similar to updating the latest version of WooCommerce, and WordPress must also be up-to-date.

WordPress is also updated regularly for the same reasons, namely, speed and performance, security, features, and bug fixes.

if you update WooCommerce while running an older version of WordPress, your store will most likely become incompatible and may stop working.

how do you check if you have the latest version of WordPress? Or at least the recommended version of WordPress mentioned on the WooCommerce page, just go to your WordPress dashboard & gt; update.

如何安全正确地更新WooCommerce插图9

our website is currently running version 6.2.0, which is good

if you are not, you will have to update your WordPress version.

如何安全正确地更新WooCommerce插图10

similarly, although it is easy to click the “Update now” button, you will have to update WordPress, similar to updating WooCommerce, by backing up your website, creating a staging site, running updates, and testing.

we’ll cover the whole process later in this article.

5. Check PHP version

the next step is to check the PHP version. Remember, according to the requirements set by WooCommerce, we need a version of PHP above 7. 0.

WordPress uses a programming language called PHP. Like WordPress and WooCommerce, PHP must be updated regularly.

to know the PHP version of your website, please log in to your host account. Your PHP version will be available under cPanel & gt; phpMyAdmin or cPanel & gt; PHP Manager, depending on the host provider.

如何安全正确地更新WooCommerce插图11

is shown in the figure above. In the picture, the currently installed version of PHP is PHP7.3.27.

because we have met the basic requirements, we can safely update WooCommerce.

6. Check the WooCommerce database

in your WordPress dashboard and go to WooCommerce & gt; Home.

, did you find the following notice?

如何安全正确地更新WooCommerce插图12

if it is, you will have to update your WooCommerce database. Some WooCommerce updates also require you to update the database. To update

, click Update WooCommerce Database.

again, we assume that you have done all this on the staging site and have a backup. After

如何安全正确地更新WooCommerce插图13

has finished updating, you will find a success message, as shown in the figure above.

7. Check the update log details

you can check Changelog before you run the update.

Changelog lists all the update details. Whether updates are related to bug fixes, improvements in speed and performance, and so on. The exact details will be pointed out in the Update Log.

, so how do you check the update log?

you can check it by clicking View version #. #. # details for the plugin when the update is released. The

如何安全正确地更新WooCommerce插图14

is shown in the figure above, and the Changelog tag shows the details of the update. Another way to

is by visiting the plug-in development page in the WordPress repository.

如何安全正确地更新WooCommerce插图15

8. It is huge to check that the WordPress forum supports the support community for

WordPress. This is another reason why WordPress is so popular! Whether

is about the development of WordPress or the problems it faces after running updates, users usually post it on WordPress’s support forums.

if you can’t find a solution to the problem you’re facing, check out the support forum. It is possible that you will find similar problems and solutions.

once you have the above prerequisites for running the WooCommerce update, let’s move on to the update itself.

updates WooCommerce

in the right way We will show you how to securely update your WooCommerce store in the next few steps.

Step 1: back up your website

as mentioned earlier in the article, whether you are updating your plugin or not, we always recommend backing up your website.

treats backup as insurance. They are not that interesting or important until you really need them. Then, their value is almost inestimable!

according to your hosting plan, some service providers will back up for you. However, if you also make these updates manually, this will be an additional layer of protection.

in order to make your own backup, you have several backup plug-ins to choose from. For our backup, we recommend the UpdraftPlus backup plug-in.

如何安全正确地更新WooCommerce插图16

UpdraftPlus lets you back up your entire website immediately. The plugin also allows you to schedule your backups and store them on your local computer or cloud. In addition, you can select the files you want to back up and easily restore them from the administrative panel.

however, to back up your store database, you must consider upgrading to the advanced version of UpdraftPlus. Another great feature of

UpdraftPlus is the ability to clone your site using UpdraftClone.

如何安全正确地更新WooCommerce插图17

you can create a clone of your website in a few seconds, run your updates, test the site, and once you’re done, delete the clone. This is the easiest! for

to create a backup of the store, simply click backup Now under the Backup/ Restore tab.

如何安全正确地更新WooCommerce插图18

you will be prompted to select files and databases to include in the backup. Once the

如何安全正确地更新WooCommerce插图19

is complete, click backup Now.

如何安全正确地更新WooCommerce插图20

your backup process will begin. Once

is complete, you will find your backup under Existing backups in the UpdraftPlus management panel.

如何安全正确地更新WooCommerce插图21

now you have a backup, you don’t need to worry if your site crashes. And we hope it won’t!

Step 2: create a staging site

We now know that it is not recommended to update real-time sites. If the update doesn’t go according to plan, we’ll end up with a chaotic store and a lot of dissatisfied customers.

to avoid all this, we suggest creating a staging site.

before you create a staging site, we recommend putting your store in maintenance mode. You don’t want any customers to buy during your phased or testing process. Maintenance mode can prevent this situation, while showing users the friendly information maintained by the site,

in order to keep your WooCommerce store in maintenance mode, you can install several plug-ins. SeedProd is such a WordPress plug-in.

如何安全正确地更新WooCommerce插图22

uses SeedProd, and you can do it by choosing which page is in maintenance mode, rather than putting your entire site in maintenance mode.

once you have installed and activated your SeedProd plugin, on your WordPress dashboard, go to SeedProd & gt; Pages.

如何安全正确地更新WooCommerce插图23

the free version of the plugin allows you to set up your store to be launched soon or in maintenance mode. Enable maintenance mode.

you can edit and preview the maintenance page. Once the

如何安全正确地更新WooCommerce插图24

is complete, click Save.

, that’s it. Your store is in maintenance mode!

did we just mention that you can set up a specific page in maintenance mode? Yes, we mentioned it! However, this is only available in the advanced version of the SeedProd plug-in.

Now that your site is in maintenance mode, let’s continue to create a staging environment.

as pointed out earlier in the article, most hosting vendors allow you to easily create a staging site. With just a few simple steps, you can set up all your temporary storage environment.

for example, if you use SiteGround, you will notice the Staging under WordPress, as shown in the figure:

如何安全正确地更新WooCommerce插图3

once you have selected Staging, you can choose the domain name and WordPress installation for which you want to create a temporary copy.

如何安全正确地更新WooCommerce插图25

, for example, as shown in the figure above, we selected a WordPress installation from the drop-down list, added a name to our staging copy, and clicked Create.

如何安全正确地更新WooCommerce插图26

, your staging environment has been created.

如何安全正确地更新WooCommerce插图27

Click the three points under Actions, and you have a variety of options, such as deploying the site or even deleting it. For

如何安全正确地更新WooCommerce插图28

to access the administrators panel, simply click on the icon next to the three points under “Actions”.

如何安全正确地更新WooCommerce插图29

this will open the WordPress dashboard of your staging site.

如何安全正确地更新WooCommerce插图30

pays attention to the staging URL created.

in our example, this URL is https://staging3.yourdomain.com/wp-admin/admin.php?page=custom-dashboard.php.

you can now run your updates on the staging site.

but what if your hosting provider doesn’t provide you with temporary storage options? What are we going to do?

well, in this case, you can use a plugin, such as Duplicator.

如何安全正确地更新WooCommerce插图31

Duplicator is a very popular WordPress plug-in with more than 1 million installed. It allows you to easily copy, migrate, or even clone your website. It can also serve as a backup tool.

once you have installed and activated your plugin, go to Duplicator & gt; Packages on your WordPress dashboard.

, click Create New.

如何安全正确地更新WooCommerce插图32

names your package (build). You can choose the files and databases you want to back up and include them in the package. Once you have finished

, click Next.

如何安全正确地更新WooCommerce插图33

will complete the scan of your website in the next step. If all your checks are “Good”, please click Next.

your build process will begin.

如何安全正确地更新WooCommerce插图34

will prompt you as soon as the entire build process is complete.

如何安全正确地更新WooCommerce插图35

you can now choose the type of download, that is, installer, file, or one-click download. One-click download includes installer and archiving.

now you can upload these things to your staging site. Create a subdomain, such as https://staging.yourdomain.com, and upload the package using a FTP client, such as Filezilla.

for more details, please check out the detailed installation process.

once you have completed the temporary storage process, you can take your real site out of maintenance mode. This is a choice that you can decide.

you can wait until you run the update on the staging site, test it, and then push the update back to the real-time site, or turn off maintenance mode and continue working on the staging site.

Step 3: run the update

on the staging site! We now have our backup and created our temporary website! We now have our backup and have created our staging website. We can do anything on our staging site and even destroy it if necessary. The good news is, this will not affect our main site!

before we can proceed with the update, we have two more steps to complete. To do this, we must use tools such as WP Boom and Ghost Inspector.

once you have completed the update, how do you track any changes in the look and feel of your store? This may be a change in font, color, or even the positioning of a text or image.

if you have a single page or a small website, you may still be able to recognize these changes. But if your site has several pages, it can be time-consuming and difficult.

to help you, you can use the WP Boom tool.

如何安全正确地更新WooCommerce插图36

uses WP Boom, and you can take snapshots of your site before and after running updates and compare the two versions. The tool runs the entire site and notifies you of the exact change and percentage of change.

如何安全正确地更新WooCommerce插图37

once you have created a free account on WP Boom, just add your site details before and after running the update. Then run the comparison. After receiving an email notification,

runs the report and makes changes, if necessary.

and this is in terms of the look and feel of the site. What about technical and functional aspects?

this is where testing tools like Ghost Inspector come into play.

如何安全正确地更新WooCommerce插图6

uses Ghost Inspector, and you can automatically test your website directly from the browser. To get started, please sign up for a free trial account.

如何安全正确地更新WooCommerce插图38

once you have created an account for yourself in Ghost Inspector, you need to install browser extensions or include URL.

if you have installed the Ghost Inspector browser extension, an icon will appear in your toolbar.

如何安全正确地更新WooCommerce插图39

clicks on the icon and prompts you to start recording. However, you need to log in to your account to access this option.

once you click Start Recording,Ghost Inspector, you will start recording your actions and the icon on the toolbar will turn green. In addition, the extension records the Assertions.

simply says that an assertion is to confirm that there is an element on the page. These help to make sure that your tests are carried out in accordance with its requirements.

如何安全正确地更新WooCommerce插图40

you can also enable notifications by setting email options. In this way, if there are any mistakes or loopholes, you will be notified.

For detailed guidance on how to record tests on browsers, visit the test recorder guide for Chrome and Firefox.

so, once you have created a staging site, run a test to make sure your site works well.

now, continue to update your website. Whether it’s a plug-in, a theme, or in our case, the WooCommerce plug-in.

如何安全正确地更新WooCommerce插图41

Step 4: fix periodic problems

once you have completed the WooCommerce update process on the staging site, it is time to do a quick check on your store. Just to make sure everything works properly.

first, you have to run a test yourself. Run a test to see what your customer’s journey looks like. From viewing products in the store to adding them to the shopping cart, updating prices after adding more products, checkout process, and so on.

if everything looks good, here’s a checklist of what else you can test from your terminal:

  • checks the main pages of your store, such as home page, about, store, price, shopping cart, checkout, contact page, etc.
  • uses the WP Boom tool to run a comparison report to make sure everything looks good.
  • runs a test tool, such as Ghost Inspector, to check if there are any broken links and whether all store functions are working properly.
  • checks your store’s performance on all major browsers, such as Chrome, Firefox and Safari.
  • checks your store on all major devices, such as desktops, laptops, phones and tablets.

, everything looks good? Then, let’s continue to update our real-time website.

if you face errors after an update, we have listed some common troubleshooting in the post-update test section of your WooCommerce site.

Step 5: push WooCommerce updates from staging to real-time

now that we have run our updates and tests, it is time to push WooCommerce updates from the staging environment to the real-time website.

Option 1: manual
The first option for

is the simplest

. Now that you have updated WooCommerce on your staging site, simply run the update on the real site. Considering that your staging site is a clone of your real site, all you have to do is run the same update on the real site.

Option 2: push from staging station to site
Another option for

is to use your hosting vendor. Just as it is easy to create a staging environment in your host control panel, it is just as easy to push changes and staging sites to real-time sites.

for example, with SiteGround, you have a “Full Deploy” option.

如何安全正确地更新WooCommerce插图42

will be prompted to confirm the migration process when you select the “Full Deploy” option. Once you confirm

如何安全正确地更新WooCommerce插图43

, the real-time website will be replaced with a temporary version. It’s that simple.

assumes that your hosting provider does not have such a temporary storage option. In this case, you can consider various backup and migration tools, such as UpdraftPlus, WP Migrate DB Pro, etc., to back up all your files, databases and migrate your staging site to a real-time site.

Option 3: partial push

is the same as migrating the entire staging site, you can also migrate only files, databases, and other updated things.

in addition to using UpdraftPlus, WP Migrate DB Pro and other tools to select the special migration you need, your hosting vendor can also help you with this task.

如何安全正确地更新WooCommerce插图44

uses the ‘Custom Deploy’ option in SiteGround, which allows you to select the project you want to deploy on a real-time site.

如何安全正确地更新WooCommerce插图45

for example, if you select “To be Updated” as shown in the figure above, you can further select the project to be migrated.

如何安全正确地更新WooCommerce插图46

once you have selected the appropriate option, click Next to complete the migration process.

this part of the push process is useful if you know the files that have been updated, and importantly, if you don’t want to change any transactional databases in the real-time site.

for example, when you run an update on a staging site, suppose you have a transaction taking place on a real site. In this case, if you want to migrate the entire site, you will lose information about the purchase. In this case, partial push is helpful.

No matter which method you use to migrate your staging site to a real-time site, you must test your site to make sure it works properly.

Step 6: test your WooCommerce site after update

Yes, you have tested your staging site after the update. And you just migrated the updated content to a real-time website. However, we always recommend that you re-test your real site after migration.

goes from manually checking all major store elements, such as shopping carts, payments, checkouts, etc., to completing a comprehensive test run of your store using WP Boom and Ghost Inspector tools. Then run a complete customer journey on your store.

in addition, if you are using a caching plug-in, you need to clear your site cache to ensure that only new content is displayed.

once you have completed all the above steps, you have successfully updated your WooCommerce store without damaging the site.

but, as we all know, things are not always good. Sometimes we face some problems after running the update.

here lists the errors that you often encounter when running WooCommerce updates and how to fix them.

WooCommerce common update errors and solutions

running WooCommerce updates is very straightforward, but occasionally causes errors. Some of them may be easy to solve, and some may damage your website.

In our years of experience in updating WooCommerce and handling errors, we have seen some typical cases. Solving them is usually simple.

common update errors

  • WooCommerce update failed
  • WooCommerce installation there is no damage to the
  • website or completely blank white screen
  • only the store part of your website crashed some of the
  • plug-ins and WooCommerce extensions are already incompatible with the latest version of WooCommerce
  • you receive errors or warnings notify

if these are some of the errors you encountered, we recommend taking the following steps. How does

solve the problem of WooCommerce update errors

here are some troubleshooting solutions:

Solution 1: check the WooCommerce version of

the first step is to check the version details of the WooCommerce plug-in. Have you installed the latest version? Please go to the WordPress warehouse and cross-check that you have installed the latest version.

如何安全正确地更新WooCommerce插图8

Solution 2: check the WordPress version

similarly, check the version of WordPress you installed. Does it meet the minimum version requirements on the WooCommerce plug-in page? If not, update WordPress to the latest version.

Solution 3: check the PHP version

once you have checked the WooCommerce and WordPress versions, re-check if you are using a compatible PHP version. To do this, check the version of PHP in your host vendor’s control panel.

Solution 4: increase PHP memory

consider increasing the PHP memory limit in WordPress. To do this, you will need to access the wp-config file. The

wp-config.php file is located in the public_html folder under the root of the site (which may also be the site directory under wwwroot). The

如何安全正确地更新WooCommerce插图47

wp-config.php file is a configuration file that stores the most important settings for your site. It also includes the database information of your website.

therefore, just to remind you that if you want to update this file, consider making a backup first.

from the wp-config file, you can increase the PHP memory limit in WordPress.

to increase the memory limit of PHP, you need to add the following line of code:

define( 'WP_MEMORY_LIMIT', '128M' );

to the wp-config.php file, in’/ * That’s all, stop editing! Happy publishing. * /’, as shown in the picture below. The line of

如何安全正确地更新WooCommerce插图48

tells WordPress to increase the memory limit of PHP to 128MB.

although 128MB’s PHP memory limit should be good enough, you can consider raising it to 256MB’s maximum limit. (Source: WooCommerce)

means that you don’t have to limit PHP too much. Once you have finished editing, please save the file.

Solution 5: update themes and plug-ins

sometimes conflicts between running older versions of themes and plug-ins in new versions of WooCommerce and WordPress. To eliminate this, please update all your plug-ins and themes to the latest version.

Solution 6: contact support

if you have completed all the above steps but still find errors and problems in your store, consider checking the WordPress forum or WooCommerce documentation to learn about similar problems solved by other store and website owners.

although the above steps should be done well, be sure to make a backup before starting any update process. Especially if you have a huge real-time store, it’s best to create a staging site and run your updates. Even use staging sites to troubleshoot. It is sometimes risky for

to run updates on real-time websites. If things change, you can quickly use your backup to get your site back up and running.

is considering using rollback plug-ins, such as WP Rollback, to quickly revert to previous versions of the WooCommerce plug-in. However, the rollback plug-in must be installed initially. It can be time-consuming for

to securely update WooCommerce

management site updates, but we now know that this is important. From WordPress software to complex plug-ins such as WooCommerce, when a version is released, updates are critical to the seamless operation of your website and store.

, no matter how tempting and straightforward it may seem, it is not the best choice to click on an update link to a plug-in, theme, or WordPress without preparation. Although the preparation may be time-consuming, it is well worth it.

starts from backing up your store, creating a staging environment, to testing and migrating to a real site, which protects you from a broken site, a dysfunctional store, or worse.

in short, this approach saves time repairing and debugging Web sites, which in turn ensures a smooth update of every WooCommerce.

so, how do you update your WooCommerce store? Have you established a temporary storage environment? How do you run your tests?

if you have any other tips, or even tips for easily updating WooCommerce, we’d love to hear your comments. Please comment below and let us know what works best for you.

Disclaimer: All articles on this website, unless otherwise specified or marked, are original and published on this website. Any individual or organization is prohibited from copying, stealing, collecting, or publishing the content of this site to any website, book, or other media platform without the consent of this site. If the content on this website infringes on the legitimate rights and interests of the original author, you can contact us for assistance.