. The exact reason for this error may be unknown due to the general nature of this error. This is really frustrating. So before we solve it, let us better understand the mistakes.
What is the 500 internal server error?
500 internal server error is a general HTTP status code, one of which responds to the browser request. Other examples of other HTTP code include 403 Forbidden, 404 Not Found or 503 Service Unavailable.
Specifically, when the browser or other client sends a request to the server, but the server
cannot be processed due to accidental errors, a 500 internal server error
will occur. The server cannot explain what the problem is.
According to various factors, errors may appear in different ways. These factors may be your browser, web server, host control panel, operating system, and engine or framework running on the website.
For example, this is the appearance of the standard 500 internal server error page of the four popular web servers: Apache, Nginx, Litespeed, and IIS 7.
In addition to the layout, the text on the page may also be different. Here are some text variants:
500 error
- http error 500
- Internal server error
- 500 server error
] HTTP 500 -Internal Server Error
Website cannot display the page
When creating a database connection
Error: The request fails, the status code is 500
website website Encountered severe errors.
The website encountered technical problems.
As you can see, 500 internal server errors are displayed as collective messages, and these messages occur during some things that do not happen at the expected work. This is because a thousand different things may cause the server to collapse and may not find the exact reason.
Even if this is the case, it may lead The common situation is:
.htaccess file grammar is invalid
- Website script error
- Insufficient memory
- ]
- How to fix 500 internal server errors in WOOCOMMERCE?
The conflict between the theme and plug -in [123
Once you find the reason why 500 internal server errors are found, you may have a general understanding of how to repair them. Whether you have the right idea to start and run your WOOCOMERCE website, you can still use the following prompts to repair the internal server error in WooCommerce.
But before continuing, we strongly recommend that you back up your website, because some of these prompts require you to edit core documents. Make sure not only retain the copy of the file, but also the copy of the database.
After you back up your website safely, you can start to solve the internal server error of 500. 1. Enable debugging
The first thing to repair the internal server error in Woocommerce is to enable debugging, which can help you identify the problems in the site. You can install a plug -in or editor
wpconfig.php
file to enable debugging. To visit
wp-config.php
file, you need to have CPANEL credential . After logging in, transfer to the file and click \” File Manager\” . Now you will see all WordPress sites files. All you need to do is navigation to
wp-config.php . Usually, you can find the file in public_html (root) folder. Then, once you find the file, you should edit it by right -clickit. Search code \” Define (\u0026#39; wp_debug \u0026#39;, false); \”
]
In most cases, WP_DEBUG is set to false by default. You can replace \” false \” to \” true \”.
Definition (\u0026#39; wp_debug \u0026#39; true);
Make sure to immediately click the \” Save and change\” button after editing files. This will enable debugging mode on your website. You can get an error from failing to fail from your WordPress website later.
You can find an error log in/wp-content/debug.log
. With the help of the error log, you will be able to identify errors and solve it.
In addition, once you find and fix the error, please do not forget to disable the debugging mode.
You can disable the debugging mode by adding / * and after the code before the code.
/*Definition (\u0026#39; wp_debug \u0026#39; true);* /
Now, if you are looking for a simple solution that does not need any coding, you can still be able Use one of the WordPress plugins to start debugging, for example:
[ 123] Query Monitor
The ultimate debugging bar 2. Check the damaged .htaccess file WordPress 500 internal server error can also be checked by checking damage or damage.
.htaccess
- file to repair.
- .htaccess
- .htaccess file
You can implement it by renamed
and configure it. In order to rename
, you need to use the \”
file management
device in the host account
cpanel
or FTP client The program logs in to your site.
We will be hereUse FTP. After the connection, .htaccess file will be located in the root directory of the WordPress folder. Just right -click it and name its rename to .htacess old . If you can’t find it, you can view our guide and understand how to fix the .htaccess file.
After renamed .htaccess
Whether to solve the problem. If this is true, then congratulations, because you fixed the 500 internal server error.
In addition, make sure you transfer to \”Settings\” \u0026 GT; \”Permanent Link\” page of \u0026 gt; 123].
This will generate a new
.htaccess
file with appropriate rewriting rules to ensure that your post page will not return 500 internal servers. mistake.
Now, you can return the old
.htaccess file by returning the server again. If you don’t see a new file, try refresh the page. 3. Disable plug -in
500 internal server error is also likely to be caused by specific plugins. You may have one or more plug -ins that may not be compatible with your theme or even conflict with each other.
Unfortunately, there is no simple way to find a specific plug -in that causes problems. The only solution is
Disable plug -in
.
You can stop the plug -in one by one. But if you have a lot of plug -ins, this will be a bit time -consuming. Fortunately, you can also choose and delete plugins in batches.
First, select all plug -in and select the \”
deactivation \” option from the drop -down list, and ensure that you click the \” application\”
button.
If you can access the back end of the WordPress website, this method is very effective. But if you have no right to access the back end, you can also use CPANEL or FTP to stop all plug -ins. If all plug -in fixes are discontinuedError, then we know that one of the plug -ins is the cause of all problems.
To identify the plug -in now, we must re -activate a plug -in at one time. For this reason, transfer from the WordPress dashboard to the
plug -in \u0026 gt; the plug -in.
You can see the list of all plug -in on your website. Click \” activation\” .
After re -activating the plug -in, make sure that the page is reloaded each time. If an error occurs after rejuvenating a plug -in, you can identify the plug -in caused by the problem. Then, delete the plug -in and report the
problem to the plug -in author
to solve the problem of other WooCommerce users.
4. Switch activity theme
The theme Another step of internal server errors. When there is no appropriate step to update the theme recently, this problem may occur. If this is the case, you can switch the current theme to the default theme or any other Woocommerce theme.
To switch your activity theme, please transfer from your WordPress instrument board to
appearance \u0026 gt; theme . You can hover the mouse on the theme and click to activate the
button or add a new theme to add a new theme
by clicking .
After activating
New theme, your current theme will be automatically disabled.
If you switch the theme to repair the error, then you must know that the problem lies in your theme. You should always choose the theme compatible with Woocommerce and update the theme correctly. In addition, make sure to keep the complete backup of the previous theme so that you will not lose any data.
5. Increase pHP memory limit
If you are trying to log in to WordPress management When the member may upload the image to
WP-Admin, he saw the 500 internal server error.
This may be due to the lack of pHP memory
. The solution is obviously increasing PHP memory limit.
First, use the tool site health tool to check your memory limit. This tool is suitable for 5.2 or moreWordPress version.
From your WordPress instrument board to
tool \u0026 gt; site operating status. Then, open the information tab, you can find all the detailed information about the operating status of the site in it. Now, click the drop -down menu of the server option, you can find the PHP memory limit available on the server.
If the PHP memory is insufficient, you can add it by editing wp-config file. We can navigate to the file by logging in to FTP or CPANEL, as we did before.
Public-Html file, you can be in it Find file wp-config.php . Open the file and find this code
Definition (\u0026#39; wp_memory_limit \u0026#39;, \u0026#39; 128m \u0026#39;);
This number may be available according to your site memory. Different. If the number is less than 128 MB, you can add the number. In most cases, 128 MB is enough to store databases.
If you can’t find the code, you can paste the code before the file section: \” That’s it, stop editing!
Happy blog.
\” [ 123] Even if the 500 internal server error is fixed after increasing the memory limit, you may encounter such problems in the future. You need to find the fundamental cause of exhaustive memory limit. It can be any content in the plug -in, or even the adding function of the new update theme. This is why we recommend consulting your custody service provider to check the server log to determine the exact problem that helps you solve the error.
6. Re -loading the webpage Re -loading or refreshing the page is one of the simplest solutions you can try to repair the internal server errors in WooCommerce. Even if such errors are problems on the network server, the problem may be temporary. You can reload the webpage by clicking the refresh button in the browser or press Ctrl+R .
Sometimes, 500 internal server errors may only be displayed on your browser. To check other usersDo you have any problems with your website? You can check your website on DOWN for Everyone or Just ME.
If the problem is only in your browser, then you can clear the cache and cookie. If not, you can try other methods. 7. Clear the cache of the browser and cookie Windows cumulative temporary data on the computer storage at runtime. Due to the stored data, the browser can be used to the page from the cache instead of the Internet, which greatly reduces the speed of the loading page
.
If you refresh the page on the server and the browser continues to load the old version from the cache, the 500 internal server problem may occur. This is why the webpage may not be displayed correctly, because they have been changed and the browser continues to use outdated data in the cache.
COOKIE
is a service file set up by the website settings that the user visited. The most common feature is to save passwords, which allows you to enter the login name+password combination every time you enter the website. Depending on the browser, each browser stores password information at different time.
A large number of preservation
Cookie will cause the hard disk space to decrease,
This may also be the reason why the internal server error is wrong. The cache and cookie may not be the exact reason why the 500 internal server is wrong. But you can try to remove it and see if the website is loaded. According to the different equipment and browser, the process of removing the cache from the browser may be different. If you are using Windows and your browser is Google Chrome, you can see three points in the upper right corner of the display. Click three points, you will find options for control and custom browsers. Then click \”
Set
\”.
Continue and click
Privacy and Security
. Here, you can see options for removing historical records, caches, cookies, etc.
You can see the check box, you can select and clear historical records, cache or cookies in it. After selecting this box, click the \”
to clear the data
\” button.
Even if it cannot solve the internal server problem, clearing the cache will help improve the performance of the computer and release the disk space.Can speed up. 8. Re -install WordPress
If these methods are not suitable for you, you can re -start the entire site by reinstalling WordPress. But you must be very careful to avoid losing any data, nor will it affect the SEO of your website. In many cases, you should reinstall WordPress. The most common is compatibility issues. For security reasons, WordPress often provides updates, and due to frequent updates, plug -in such as WoOCommerce may have compatibility issues with WordPress. In this case, it is best to reinstall other versions of WordPress.
If you have the right to access the WordPress administrator, you can reinstall WordPress from the dashboard. For this reason, please go to
instrument board \u0026 gt; update
and click
to reinstall the version . Re -installation will be executed automatically.
Or, you can also use the FTP method to reinstall WordPress. This method is also very simple, not complicated at all.
First, you need the latest version of WordPress, you can the version from the official website of WordPress.org.
Just click
to get WordPress
, you will be redirected to the latest version of WordPress page.
After ing, decompress the file and extract all the content from the folder.
Make sure to delete
wp-content
folder so that we can avoid covering the same folder in the server.
Now, let us transfer to our FTP and upload the file from the WordPress folder we ed to the root folder. The root folder is usually
public
or
public_html
folder.
After uploading the file, you will see a pop -up window, which says \”
The target file already exists
. A list of operation is also mentioned here, you should select
OverWrite
option, and then click
OK
.
This method will reinstall WordPress without affecting any data, themes and insertions of you.
9. Update PHP version
Similar to theme, plug -in and wordpress itself, please make sure you use
the latest version of PHP
or any version that meets the requirements of WordPress.
PHP is an open source programming language used by WordPress. The main purpose of PHP is to handle the information of the database and help operate the function. It is managed by your network hosting service provider, which will be continuously updated as any other elements such as themes, plugins and WordPress to prevent any loopholes in your website your WordPress version does not support overdue PHP. Version may cause internal server errors. Moreover, if you use the old version of PHP, it may cause conflicts between theme and plug -in.
10. Request support If you still encounter 500 internal server errors, please contact your hosted service provider Technical support team . They will be able to identify the question and help you determine what kind of help you need. If the support team takes a long time to reply, you can go to some forums to ask or find the answer from your questions related to your question.
Conclusion
This is our guide to how to repair the 500 internal server error in Woocommerce. If the internal server is not fixed on time, it will affect our ranking and sales in the search engine. But our Woocommerce website is not always able to start and run.
There may be some problems that we can identify and solve, or there may be some irregular problems. We need professional help. But it is best to implement simple things, such as updating themes and plug -ins, clearing caches and cookies, and optimizing our WooCommerce website to avoid these issues.
Let’s quickly summarize the main points that should be kept in mind when repairing the internal server error in Woocommerce:
Before editing the core file, please always keep the backup of the site.
Choose a reliable host with good customer support Make sure the lightweight plug -in
always uses the theme compatible with WooCommerce for your online business
Establish the automatic update of the theme and plug -in
Now, these are of course not just a way to solve the internal server problem. We want to hear your suggestions andAdd them to our list.If you try any method in today’s article and useful to you, please tell us your experience in the comments section.
In addition, if you want to optimize your WOOCOMMERCE store, please be sure to view some of our guidelines suitable for beginners, for example:
Tips for optimizing the conversion rate of woocommerce
] How to create a mini shopping car: 3 methods
The best technique of improving the design of the WooCommerce store
/wp-content/debug.log