Do you encounter a critical error during install on WordPress?
WordPress is one of the most popular content management systems in the world that allows users to host and build websites. It is commonly used for blogs, company websites, online stores, and more.
With the number of tools and extensions that you can install with WordPress, you basically have everything you need for a website on one platform.
Although it’s certainly one of the best, this doesn’t mean that WordPress doesn’t come with its own issues.
Recently, there have been complaints from users who encounter a critical error during install on WordPress. Most of the time, this issue occurs when users try to install WordPress on a locally hosted website.
If you are currently experiencing this problem, we’ve got you covered.
Today, we’ve decided to make a guide for fixing the critical error message during install on WordPress.
Let’s dive right in!
1. Enable WP_DEBUG.
The critical error users encounter on WordPress links to its official website about debugging. On the site, it suggests various ways to debug errors on WordPress. If you encounter installation problems on WordPress, try enabling WP_DEBUG.
Here’s what you need to do:
- First, open the ‘WP-Config.php’ file in the text editor.
- After that, locate this line:
define( ‘WP_DEBUG’, false );
- Lastly, change the condition to ‘True’.
define( ‘WP_DEBUG’, true );
Save the changes and see if the problem would still occur.
2. Repeat Installation.
If you’ve encountered errors while installing WordPress on your website, you can try repeating the installation process. However, this is not as straightforward if you already have MySQL tables present.
Due to this, you’ll need to clear existing MySQL tables first.
- Login into phpMyAdmin and choose the database you have created for this installation on the left sidebar.
- After that, the list of tables from the database should appear. At the bottom, click on Check All to select all the tables.
- Now, click on the dropdown menu nearby that shows ‘With Selected’ and choose the DROP option.
- Confirm your action by clicking YES.
Once done, try running the installation process once more.
3. Enable Debug Log.
One of the quickest ways to know what causes the error during installation is to enable debug logs on WordPress. This will allow you to pinpoint the root cause of the error while installing the system.
Here’s how you can enable debug log:
- First, open the WP-Config.php file on your computer.
- Now, look for:
define( ‘WP_DEBUG’, true );
- Lastly, add define( ‘WP_DEBUG_LOG’, true ); and save the changes.
Run the installation again to generate the log file, which contains the error. From there, make the necessary actions to fix the error on the log file.
That brings us to the end of our guide for fixing the critical error during install on WordPress. If you have questions, please drop a comment below, and we’ll do our best to answer them.
If this guide helped you, please share it. 🙂