The WordPress and WooCommerce combination offers one of the most widely used eCommerce and online shopping platform. Although it is very easy to set up, it is normal to occasionally encounter different kinds of WooCommerce errors.
If you are looking to fix an existing error on your WooCommerce store, then you have come to the right place. We will explain all you need to know, from plugins to server configurations. You’ll learn how to fix and prevent the common errors.
- Common error categories
- Basic requirements and error fixes
- Email notification errors
- Server configuration errors
- PHP fatal errors
Common WooCommerce errors category
Most WooCommerce errors are known to occur when there are problems in any of the following aspects of the WooCommerce/WordPress system.
Email notification errors
In some cases, WooCommerce may not be able to send email notifications such as new orders, order information, etc.
Server configuration errors
This has to do with errors that occur when server configurations display some odd behaviors. Sometimes the hosting service providers may not have setup sessions properly.
WooCommerce/WordPress setup and versions
Errors in this category usually occur because something in the system is outdated or was not properly set up.
Theme and plugins compatibility issues
There are themes that do not work well with certain plugins. For instance, the Storefront theme is particularly recommended for WooCommerce. But errors may occur when the theme selected is not compatible with the WooCommerce plugin.
When there wrong logic and syntax in the PHP code, a number of error messages will be displayed. Also, if the PHP version is not compatible with WooCommerce, you could begin to see errors such as failure of the payment system.
Plugin error and cross-plugin conflict
Plugins can be faulty in a number of ways, with faults ranging from missing hooks to missing files. When that happens, the plugin is bound to cause errors in the system. On the other hand, plugins occasionally interfere with one another’s functionality, thus leading to errors.
Basic requirements and common error fixes
- Update WordPress and WooCommerce to the latest versions. Read the article on Updating WordPress for better information.
- Make sure all plugins are regularly updated.
- Ensure theme compatibility.
- Remove faulty plugins. After disabling all plugins, you can later reactivate them one at a time to detect a faulty one. Here is how.
- Enable WP_DEBUG to log all the errors caused by WordPress plugins. You can do that by adding define( ‘WP_DEBUG’, true ); and define( ‘WP_DEBUG_LOG’, true ); lines of code to your “wp-config.php” file. This will create a “debug.log” file in wp-content folder.
Email notification errors
If you are not getting notified on customer orders, or your customers do not get email notifications after completing orders, then there’s very likely an issue with the email system in your web shots.
Fortunately, this is a simple fix. Learn how to solve it in this guide: How to fix email notifications in WooCommerce.
Server configuration errors
This refers to errors that occur when WooCommerce stores do not receive any response from the server. Sometimes it happens as a result of an internal server error.
404 Server Error: Not Found
You can see this error when a link is broken, incorrect or nonexistent. You can fix this by editing your permalink settings.
Login to your admin dashboard and click Settings >> Permalinks and check the Post name radio button and Save Changes.
Side Note: Changing your Permalink structure will break all external links to your site as well as all search engine indexing. To fix this, you have to set up 301 redirects. You can do this quite easily with the Simple 301 Redirects Plugin.
WooCommerce Errors – 500 Internal Server Error
Internal server error can be caused by a number of faults. But 2 common fixes are:
- Check if the .htaccess file is corrupt
- Upload new WordPress core files
Log into the remote site via FTP and locate the .htaccess file in the root folder of your WordPress setup.
Right -click on the file and rename it to something different. Having done that, log into your site again to see if the error still persists. If not, then you found your solution.
But if the .htaccess file was not corrupted, then the other solution is to upload new WordPress core files. Please read up on how to replace WordPress core files here.
WooCommerce Errors – 503 Service unavailable
Service unavailable is an error that happens when the server does not receive the right PHP responses. Before trying anything else, carry out the basic error fixes listed above. If you did not resolve the error, then do the following:
- Switch to a default theme, and check if the 503 Service unavailable error is gone.
- Contact your web hosting provider as the last resort.
WooCommerce Error getting the remote image
The solution to this error is to contact your web hosting service providers to increase your server’s max-input-time from -1 to 36000.
Product error: You don’t have permission to access…
This error shows a 403 Forbidden. It means that you do not have valid permission to some files or a particular file. You may have to call your web hosting service to change the file permission settings for you.
WooCommerce Errors – PHP fatal errors
These are critical errors in PHP that immediately terminate the script. By default, user can see the error and correct it.
Allowed memory size exhausted
The error indicates that a set memory limit on PHP has been exceeded. To increase it, you have to access the root folder of your remote site and look for the wp-config.php file.
Next, right-click on it and select View/Edit to open in on your text editor.
Then add define( ‘WP_MEMORY_LIMIT’, ‘256M’ ); to it as shown in the image.
If the solution does not work, then you have to contact your host.
Maximum execution time exceeded
If you encounter this common fatal error, it may likely be the fault of a plugin. This means one of your plugins may be running a script that is taking too long to execute and you are running out of execution time. To solve this, you may have to adjust your website’s maximum execution time.
To do this, connect to your remote files via FTP. And just as in the earlier steps, locate and right-click on the .htaccess file. Select View/Edit.
Open up the file in a notepad program and add this line of code to the bottom of the file’
php_value max_execution_time 300
You can fix the error with that time increment. Learn more on our complete guide: How To Fix ‘Fatal Error: Maximum Execution Time Exceeded’ in WordPress.
WooCommerce Errors – Conclusion
There are times you will encounter errors you may not be able to fix, even after reading a detailed tutorial like this. If that ever happens, contact FixRunner’s WooCommerce Support team of WordPress experts. They will readily provide the full site support you need.
But in the event of common errors, this article has shown you the most straightforward fixes that should solve your error issues. Learn more about WordPress errors on our Common WordPress errors article.
- WooCommerce Grouped Products
- 9 Best WordPress Migration Plugins On The Market
- WooCommerce Variable Product