WordPress errors are messages or failures that stop a WordPress site from loading or working normally, from a critical error or a blank white screen to a database connection error or a 404 on every post. Most of them come from a plugin, a theme, a PHP version problem or a server limit, and each one points to its own fix.
How do I fix my WordPress website?
You fix a WordPress website by finding the error behind the problem and dealing with that one cause, not by reinstalling everything. Most WordPress errors come from a plugin, a theme or a PHP version problem, so troubleshooting usually follows the same three steps:
- Back up your site. Take a copy of your files and database from your hosting panel or a backup plugin such as UpdraftPlus before you change anything. If the backup gets stuck, see how to fix an Updraft backup that stalls.
- Find the real error. Check your admin email for “Your Site is Experiencing a Technical Issue”, turn on debug logging, or read your host’s error log. See how to find the error.
- Fix what the error points to. The error names the plugin, theme, file or server limit behind the problem, so deal with that one thing: update or roll back the plugin, correct the code, or raise the limit. Find your error in the table below for the exact fix, or have our WordPress experts fix it for you.
Common WordPress error messages and codes
Find the error you’re seeing in the table below and jump straight to its section. Each one explains what causes the error and how to fix it, step by step. If your error isn’t listed, the guides at the end of this article cover less common ones.
| What you see | Likely cause | Fix |
|---|---|---|
| Site is blank or down | ||
| A blank white page | A PHP fatal error or an exhausted memory limit | White Screen of Death |
There has been a critical error on this website. | A PHP fatal error in a plugin or theme | Critical error |
500 Internal Server Error | A PHP fatal error or a broken .htaccess file | Critical error |
502 Bad Gateway or 503 Service Unavailable | An overloaded server, too few PHP workers or a problem at your host | WordPress down |
Error: PHP is not running | PHP is turned off or misconfigured on the server | PHP is not running |
| Error messages | ||
Error establishing a database connection | Wrong database credentials, missing user privileges or a database server that’s down | Database connection |
Parse error: syntax error, unexpected… | A typo in code you recently added | Syntax error |
Fatal error: Maximum execution time of 30 seconds exceeded | A script ran longer than the PHP time limit | Maximum execution time |
Briefly unavailable for scheduled maintenance. Check back in a minute. | An interrupted update left a .maintenance file behind | Maintenance mode |
ERR_TOO_MANY_REDIRECTS | A redirect loop, usually from an SEO or SSL plugin | Too many redirects |
| Access and permissions | ||
| You can’t log in to wp-admin | A wrong password, a login redirect loop or a security plugin lockout | Can’t access wp-admin |
403 Forbidden | Wrong file permissions, a security plugin or firewall rule, or a malware-injected .htaccess file | Injected .htaccess files |
| Broken images or “Upload folder is not writable” | Wrong file or folder permissions | Image upload issue |
| 404 “Page not found” on your posts | A missing or corrupted .htaccess file | 404 error |
| After updates and email | ||
| Errors right after an update | A plugin, theme or PHP version that isn’t compatible | Errors after an update |
| Emails from your site never arrive | PHP mail() without SMTP or proper DNS records | Email not sending |
How to find the error in WordPress
Quick answer: WordPress hides the real error from visitors. To see it, check your admin email for a recovery mode message, turn on debug logging in wp-config.php, or read your host’s PHP error log. The error names the plugin, theme or file that caused it.
1. Check your admin email
When a fatal error happens, WordPress emails the site admin with the subject “Your Site is Experiencing a Technical Issue”. The email names the plugin or theme that failed and includes a recovery mode link that lets you log in and deactivate it.
2. Turn on debug logging
Debug logging makes WordPress write every PHP error to a file instead of hiding it, which is the most reliable way to see what broke. Add these lines to wp-config.php in your site’s root folder, above the /* That's all, stop editing! */ line:
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );Reload the page that shows the error, then open wp-content/debug.log. Each fatal error is logged with the file and line that caused it, without showing anything to visitors. Turn debugging off again when you’re done, because anyone who knows the log file’s address can read it. See how to debug a WordPress fatal error for the full steps.
3. Check your host’s error log
Most hosts write PHP errors to a file named error_log in your site’s root folder, or show them in the control panel. Search it for “Fatal error” or “Parse error” around the time the problem started. If you can’t find it, ask your host’s support where PHP errors are logged.
4. Check Site Health
If you can still log in, go to Tools > Site Health. It flags problems like an outdated PHP version, late or failed scheduled events and missing PHP extensions. It won’t show the fatal error itself, but it often points to the cause, such as a PHP version your plugins no longer support.
There has been a critical error on this website
Quick answer: This message, and the older “The site is experiencing technical difficulties”, means a PHP fatal error stopped WordPress, usually in a plugin or theme, sometimes because of an exhausted memory limit or an incompatible PHP version. Open the “Your Site is Experiencing a Technical Issue” email WordPress sent to your admin address, use its recovery mode link, and deactivate the plugin or theme it names.

You may also see the same error in these forms:
- “The site is experiencing technical difficulties.”
- “The site is having technical issues. Please look in your site admin email inbox for further instructions.” (shown when you try to open wp-admin)
- A plain 500 Internal Server Error page, depending on your host’s settings

Fix it with recovery mode
Recovery mode is the fastest fix because WordPress already knows which plugin or theme failed. It lets you log in while the broken code is paused, so you can deactivate it from the dashboard without needing FTP or File Manager access.
- Open the email titled “Your Site is Experiencing a Technical Issue” in your admin inbox. It names the plugin or theme that caused the error.
- Click the recovery mode link and log in.
- Deactivate the plugin, or switch away from the theme, named in the email. Then click Exit Recovery Mode in the top bar.

Fix it manually
If the recovery mode email never arrived, or it went to an old admin address you can’t reach, you can fix the error manually. You’ll need FTP or your host’s File Manager, and the error message from your debug log or your host’s error_log file:
- Find the error in
wp-content/debug.logor your host’serror_logfile. - Follow the file path in the error. If it contains
wp-content/plugins/plugin-name, rename that plugin’s folder over FTP or File Manager to deactivate it. If it points to your theme, rename the theme’s folder so WordPress falls back to a default theme. - If the error says “Allowed memory size exhausted”, increase the PHP memory limit to 256M.
- If the error started after your host changed the PHP version, update the plugin or theme, or switch back to the previous PHP version until it’s fixed.
White screen of death (WSoD)
A completely blank page with no message is the same problem: a PHP fatal error or an exhausted memory limit, with error messages turned off. Use the same steps above. Our White Screen of Death guide covers every cause in detail.

Using Elementor? See this quick fix for an Elementor Server Error 500 when saving a page.
WordPress errors after an update
Quick answer: If your site broke right after an update, the plugin, theme or WordPress version you just updated probably isn’t compatible with the rest of your site or your PHP version. Use the recovery mode email, or rename the updated plugin’s folder, to get the site back. Then install the previous version or wait for a fixed release.
What usually goes wrong
Most errors after an update come from a compatibility problem between the new code and the rest of your site: another plugin, your theme or your server’s PHP version. Less often, the update itself stops halfway. These are the usual causes:
- A plugin update conflicts with another plugin or your theme.
- A theme or plugin update uses PHP code your server’s PHP version doesn’t support.
- Your host upgrades PHP, and an outdated plugin or theme stops working.
- An update stops halfway and leaves the site stuck in maintenance mode.
How to fix it
To fix an error after an update, get the site back first, then deal with the plugin or theme you updated. Work through these steps in order, and stop as soon as your site and your dashboard load normally again:
- If you see a critical error, use the recovery mode email to deactivate the plugin or theme that failed.
- If you can’t log in, rename the updated plugin’s folder in
wp-content/pluginsover FTP or File Manager. - Install the previous version of that plugin. The free WP Rollback plugin does this from the dashboard.
- If nothing else works, restore the backup you took before the update.
Since WordPress 6.6, failed plugin auto-updates are rolled back automatically when they cause a fatal error. Manual updates aren’t, so update plugins one at a time and check your site after each one.
Maximum execution time exceeded
Quick answer: This fatal error means a PHP script hit your server’s time limit, usually during a plugin update, an import or another heavy task. Raise max_execution_time to 300 seconds in php.ini or your host’s PHP settings, and update plugins one at a time.
Have you ever encountered the internal server error message “Fatal error: Maximum execution time of ** seconds exceeded” when trying to access a page with many posts, or update a page with lots of content?
Depending on the server load, this error may occur if the web server can’t execute the PHP script within the usual 30-60 second time limit.
Why does the maximum execution time exceeded error happen?
This issue arises when a PHP script in WordPress takes too long to execute, hitting the maximum time limit imposed by your hosting provider. This limit is crucial for safeguarding server resources and preventing potential misuse. PHP’s default limit is 30 seconds, which a large import or a slow plugin update can easily exceed.

How to fix fatal error: maximum execution time exceeded in WordPress
People often encounter this error when installing a new plugin or theme, or during updating them. Updating plugins or themes in bulk can also lead to this error. I highly recommend doing updates one by one. So, you can try this technique if you encountered the error while doing bulk updates. If not, continue with the methods below.
Method 1: increase PHP execution time using wp-config.php
This is the quickest fix to try, but some hosts disable set_time_limit(). If it has no effect, use Method 3 or ask your host to raise the limit. Using cPanel’s File Manager or FTP, find the wp-config.php in your WordPress root directory and edit it.
Scroll to the end of the file, and just above the line /* That's all, stop editing! Happy publishing. */, insert the following code:
set_time_limit(300);A time limit of 300 seconds should be sufficient for most situations, but you can increase it if a specific plugin (usually those that import or export data) requires more time to execute properly.
Method 2: increase PHP execution time using a plugin
This method can also be used by less experienced users. The WP Tools plugin by Bill Minozzi does a great job. It changes the limit from the dashboard, so you don’t need to edit any files or connect to your server over FTP.

After installing the plugin, find the setting Add Max Execution Time Limit in WP Tools > Settings > General Settings and set to 120sec.

If 120 seconds doesn’t solve the issue on your WordPress website, then try the other methods, as this plugin allows only 120 seconds in the free version.
Method 3: increase PHP execution time using php.ini
Using cPanel’s File Manager or FTP, navigate to the public_html folder. Check for a php.ini file. If it exists, edit it; if not, create the file and add the code below, save and exit. If you’re not sure where your site’s root folder is, it’s the one that contains wp-config.php.
max_execution_time = 300Depending on your hosting provider, you might need to use .user.ini file instead of php.ini. So if php.ini doesn’t change the maximum execution time, try using .user.ini or contact your hosting provider.
Method 4: increase PHP execution time using .htaccess file
I personally don’t prefer doing this via .htaccess file because some web servers cause HTTP 500 internal server error when they don’t allow PHP variable changes through .htaccess. Using cPanel or FTP, edit the .htaccess file in public_html folder and add the following code at the end of the file.
php_value max_execution_time 300Save the changes and exit file.
Key takeaways
- The PHP max execution time is a protection mechanism used by web servers to prevent the misuse of server resources.
- Try to use plugins that don’t run for long periods to avoid exceeding the time limit, and only increase it if you heavily rely on a specific plugin or can’t identify the cause of the long execution.
Error establishing database connection
Quick answer: WordPress can’t reach its database, usually because the database name, user, password or host in wp-config.php doesn’t match your hosting account. Check those four values first, then make sure the database user has all privileges and the database server is running.
WordPress relies on a MySQL or MariaDB database to store and manage dynamic content, including posts, pages, plugin settings, comments, and other user-generated content.
If something goes wrong during this database connection, you’ll likely see this error message:

What causes error establishing a database connection issue?
The database connection error has a handful of causes, and wrong database credentials are by far the most common one. The others range from missing user privileges and corrupted tables to a database server that’s down or overloaded. Here’s what to check:
- Incorrect database credentials: Mismatched database name, username, password, or host (MySQL server which is usually localhost) in the
wp-config.phpfile. - Insufficient user privileges: Even if you have the correct username and password, the user may not have the necessary privileges.
- Database server issues: The database server may be down or overloaded.
- Corrupted database: Tables in the database may be corrupted and need repair.
- Exceeding database limits: Hosting provider limitations may cause issues if the database exceeds resource limits, such as frequent read-write operations.
- File corruption: Corruption in WordPress core files due to incomplete updates, injected malware, or incorrect file permissions may prevent WordPress from establishing a proper database connection.
How to fix the error establishing a database connection
As you now understand the most possible causes of this error message, I can guide you how to fix them. Start with the database credentials, since they cause most cases, and only move on to the other fixes if the error is still there.
Fixing database credentials and user privileges
WordPress stores the database host, database name, username, and password data in the wp-config.php file found in public_html (WP root) folder. Open this file via File Manager in cPanel or FTP client and look for the following database parameters. Keep a copy of the file before you edit it.
/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );
/** MySQL database username */
define( 'DB_USER', 'username_here' );
/** MySQL database password */
define( 'DB_PASSWORD', 'password_here' );
/** MySQL hostname */
define( 'DB_HOST', 'localhost' );Log in to your control panel and locate the MySQL Databases section. Check if the database name in the wp-config.php file exists. Verify that the username is assigned to the database with all privileges. If not, grant all privileges and save. Finally, reset the username’s password to match the one in the wp-config.php file.
At this stage, check if your website is working.
How to repair database with corrupted tables
If you encounter the error message “One or more database tables are unavailable” or “The database may need repair” in your WordPress admin dashboard, one or more tables in the database could be corrupted. You should proceed to repair your database.
Before moving further, make sure to backup the WordPress database either via Updraft Plus plugin or using the export feature in PhpMyAdmin.
To initiate the database repair, insert the following code at the bottom of your wp-config.php file:
define('WP_ALLOW_REPAIR', true);
Open a new tab in your browser and navigate to https://yourdomain.com/wp-admin/maint/repair.php. Choose the Repair Database option from the two available options and wait for the process to complete.
Check your WordPress site once again, and if it works, promptly remove the repair initiating code from the wp-config.php file.
Lowering database queries and concurrent connections
If you occasionally continue to see the database error, it could be due to the maximum number of connected clients limitation set by your hosting provider, to avoid misuse of web server resources. Web sites with heavy traffic, or sometimes due to a badly coded plugin that fails to close database connections properly can lead to this issue.
You should consider using page cache plugins such as WP Fastest Cache, or WP Rocket to cache your pages and avoid querying the database for each page load.
Check your domain’s name servers
If you recently migrated your WordPress website to a new host, your domain name’s name servers (DNS) might not yet propagated. In that case, check if your domain is pointing to the correct name servers via DNS Checker tool. Wait until the new name servers show up worldwide before you troubleshoot anything else.
Key takeaways
- Even though Error Establishing a Database Connection can be caused by many factors, mostly it happens due to incorrect database credentials, and user privileges.
- If these are correct, you may consider contacting your hosting provider and ask whether your WordPress installation is using the correct database settings or exceeding their limits.
- Lowering resource usage of heavy-traffic websites can be challenging for beginners. I recommend that you regularly optimize your database tables using WP Optimize, or seek help from a WordPress expert.
Syntax error / parse error
Quick answer: A parse error means there’s a typo in PHP code you recently added, such as a missing semicolon, quote or bracket. Open the file named in the error over FTP or File Manager, go to the line number it shows, and fix or remove that code.
Syntax errors are mistakes in PHP code found within theme files, plugin files, or primarily functions.php, which are typically added to customize a theme’s appearance or introduce custom functionalities.
What causes syntax error in PHP code?
These errors occur when adding code snippets to WordPress and inadvertently omitting something (such as failing to close a parenthesis or forgetting to end a line with a semicolon) or using incorrect syntax, which leads to a PHP parse error.
A sample syntax error would look like this, pointing out the exact line that’s causing the error.
Parse error: syntax error, unexpected $end in /public_html/domain_name/wp-content/themes/your-theme/functions.php on line 154When adding a code, even a minor mistake, can make your entire site inaccessible. This often happens when inexperienced users paste code incorrectly without understanding PHP’s syntax requirements, but there’s no need to panic.
How to fix syntax error in WordPress
If you pasted code within the WordPress dashboard, using Appearance > Editor section, you will most likely be locked out, as both frontend and backend of your website will be inaccessible. This causes new users to panic, because normally they access their WordPress website only through the Dashboard.
The only way to fix this is to edit the file you last changed via FTP or File Manager feature of your hosting control panel (cPanel). If you don’t have FTP or cPanel access, simply contact your hosting provider’s support.
Once you get access, simply browse to the folder (path) that is displayed exactly in the error message.
For example; in the above sample error, you need to double-click each folder in your FTP client or File Manager starting from public_html, wp-content, themes, your-theme, and then finally download or edit functions.php
Most text editors will display lines. Scroll to the line that the error message points to. Remove the recently added code or correct its syntax. Save and if you downloaded it via FTP, upload back to server.
Next, refresh your WordPress site. You should find that WordPress error is gone, and your site is functioning normally again.
How to prevent the syntax error
There are two amazing plugins that will help you add code snippets safely to your WordPress site. One of them is WP Code, and the other is Code Snippets. They not only check the PHP syntax of your code during editing but also prevent you from saving code that could potentially break your website.

Another benefit of these plugins is, normally you need to have a child WordPress theme in order to properly edit functions.php.
If you directly edit the functions.php of your theme, all changes will get lost when your WordPress theme is updated.
Both WPCode and Code Snippets plugins allow you to add code to your WordPress site without needing a child theme. I, personally use Code Snippets on almost all the sites I work on and find it very helpful.
Key takeaways
- Results from incorrect PHP syntax in theme or plugin files.
- Locate and correct syntax errors using FTP or File Manager.
Error: PHP is not running
Quick answer: This message means your web server sent WordPress’s PHP files to the browser without running them, so PHP is turned off, not installed or misconfigured. Check the PHP version selected in your hosting control panel, remove outdated PHP handler lines from .htaccess, or ask your host to enable PHP for your site.
What causes it
PHP stops running on a WordPress site when the server no longer has a working PHP handler for it. That usually happens after a hosting change, a server update or an old handler line left in .htaccess. The usual causes are:
- PHP was switched off or removed after a hosting change or server update.
- An
AddHandlerorSetHandlerline in.htaccesspoints to a PHP version your host no longer offers. - The files are opened directly on your computer, or on a host that only serves static files.
How to fix it
To fix it, make sure your hosting account runs a supported PHP version and that nothing in .htaccess overrides it. Work through these steps in order, and reload your site after each one to see whether WordPress loads properly again:
- In your hosting control panel, open the PHP version selector (in cPanel, MultiPHP Manager) and choose a supported version. PHP 8.3 or newer is recommended.
- Back up
.htaccessin your root folder, then look for lines starting withAddHandlerorSetHandlerthat mention an old PHP version. Remove them and reload your site. - If you just moved the site to a new server, make sure that server runs PHP and that your domain points to it.
- If the message is still there, ask your host to check that PHP is enabled for your domain.
WordPress posts returning 404 error
Quick answer: If your homepage works but posts return 404, go to Settings > Permalinks and click Save Changes without changing anything. This rebuilds the rewrite rules in .htaccess and fixes most cases. Another common WordPress issue is the 404 Not Found error when WordPress users try to access individual pages or posts on a WordPress site.

What is a permalink in WordPress?
In WordPress, a permalink is the URL for a blog post, page, category, or tag on your site. These permanent links stay the same even if you change your site or post titles. They are important for SEO, as search engines prefer descriptive URLs with relevant keywords, and they make it easier for users to navigate your site.
What causes 404 page not found error?
The .htaccess file helps WordPress manage the permalinks (URL structures). If this file is corrupted or missing, it can cause 404 error when trying to access your posts. This often happens after a migration, a server change or a plugin that edits .htaccess.
How to fix 404 page not found error in WordPress?
You can easily solve the issue by just saving your permalink settings. This action restores the .htaccess file and should fix most issues. If that doesn’t solve the issue, you can try to check and edit the .htaccess file manually.

Using your control panel or FTP, browse to public_html folder and check if there is a .htaccess file present. File names starting with a dot are by default hidden files. So, make sure your file manager is set to display hidden files and folders.
If there is no .htaccess file, create a new file and rename it to .htaccess then add the code below, save and exit.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPressImportant: Please note that .htaccess is used by Apache web servers. If your web server is running Nginx, please contact your hosting provider for support.
Key takeaways
- Caused by corrupted
.htaccessor permalink settings. - Reset permalinks to fix using WordPress dashboard.
Image upload issue
Quick answer: Broken images or “Upload folder is not writable” usually mean wrong file permissions on wp-content/uploads. Set folders to 755 and files to 644. If uploads fail with “Unexpected response from the server”, see our upload error guide. Don’t use 777 permissions, since they let anyone on the server write to your files.
Image upload issue, or broken images in media library issue, is one the most common WordPress errors that puzzles WordPress website users.
You may suddenly find that all images on your site have disappeared, replaced by broken placeholders. Additionally, you may notice an error message when you try to upload an image to a post, or directly into Media library.

What causes the image upload issue in WordPress?
Most likely, this issue is caused by incorrect file permissions. I have also seen occasions where malicious code (malware) injects a .htaccess file to all folders in WordPress including wp-content/uploads folder and blocks all files using DENY command. Here is how to clean those malware-injected files without wp-admin access.

How to fix the image upload issue in WordPress
In order to fix file permissions, you need FTP access. You can use Filezilla FTP client for this purpose. Once you login, find the uploads folder, which is located in the wp-content folder. Folders should be set to 755 and files to 644.

Type 755 to numeric value field and click OK to apply. This will fix the folder permission errors.
We also need to fix the file permissions in each subfolder. It would be very tedious to do this one by one for each file. So, this time we will use the recurse option.
Right-click on uploads and choose File permissions once more. Set the value to 644 and ensure you select the Recurse into subdirectories option and also choose Apply to files only. This will fix the file permissions.
If you can see the images in Media Library, but still can not upload images, then your hosting disk quota or inodes limit might be the issue. Check your current usage at your hosting provider.
Key takeaways
- Often due to incorrect file permissions or malware.
- Set correct permissions (
755for folders,644for files) using FTP.
Briefly unavailable for scheduled maintenance error
Quick answer: Delete the .maintenance file in your WordPress root folder (the same folder as wp-config.php) using FTP or your host’s File Manager. It’s a hidden file, so turn on “show hidden files” if you can’t see it. Your site comes back straight away. Then run the interrupted update again, one plugin or theme at a time.
WordPress has a built-in automatic maintenance mode, which temporarily disables your website during plugin or theme updates to prevent users from interacting with your site.
These updates complete in a matter of seconds. So, it’s very hard to notice the maintenance mode message displayed.
If you are very curious to test this feature, open two tabs in your browser. Initiate a plugin update in one tab and refresh your homepage immediately in the other tab.

What causes your WordPress site to get stuck in maintenance mode
If an update is interrupted before completion, your site may remain in maintenance mode indefinitely. This issue usually arises if you try to update multiple plugins at once, especially on a slow server. Thus, I highly recommend you do the updates one by one.
How to fix briefly unavailable for scheduled maintenance error
Fixing this error is much easier than you think. You only need control panel or FTP access. Locate and delete the .maintenance file in root folder of your WordPress installation (public_html in most cases). It’s a hidden file, so turn on “show hidden files” if you can’t see it.

Presence of .maintenance activates the built-in WordPress maintenance mode. Removing it should make your site accessible again.
Key takeaways
- Occurs during interrupted updates, leaving site in maintenance mode.
- Delete
.maintenancefile in WordPress root directory to restore site.
Error too many redirects
Quick answer: ERR_TOO_MANY_REDIRECTS means two settings keep redirecting visitors to each other, usually an SSL or SEO plugin, or an http/https mismatch in your site address. Clear your cookies, re-save your permalinks, then deactivate SSL and redirect plugins one by one to find the loop.
One of the most common WordPress errors that can lock you out of your website is this one.
It can be frustrating because no matter how many times you refresh, your browser will display the same error message after a brief wait.
Different browsers may display a different error message for this issue. For example, Google Chrome displays it as follows, while Firefox displays “The page isn’t redirecting properly”.

What causes too many redirects error in WordPress?
This issue happens when there is a misconfiguration in your WordPress installation that redirects the user back and forth between two URLs. Usually, misconfigured SEO or SSL plugins cause this issue. For example, SEO plugins have an option to 301 permanent redirect certain pages to other pages to avoid 404 not found errors. Similarly SSL plugins try to redirect URLs starting with http to https to avoid “mixed content”, or “insecure content” issues.
How to fix error too many redirects issue?
There could be various sources to this problem. So, try each solution one by one. Start with the simplest one, clearing your cookies, and only deactivate plugins if the first two methods don’t stop the redirect loop. Each method takes a few minutes.
Method 1: clear cookies
Try accessing your website with a different browser. If successful, clear the cookies and cache in your usual browser. Old cookies can keep sending your browser to a redirect that no longer exists, so this quick test rules out the browser before you change anything on the site.

Method 2: save permalinks to reset .htaccess file
.htaccess file is being used for all URL configurations in WordPress. You can easily reset .htaccess by saving Permalinks in Settings section of your dashboard. This will remove any corruptions and possibly fix the issue. If not, continue with method 3.

Method 3: deactivate plugins
As I stated above, SEO or SSL plugins are the main reason behind this error. If you are using an SEO optimization plugin such as Yoast SEO, or SSL plugin such as Really Simple SSL, try deactivating them and test your site.
If that doesn’t solve, try to deactivate all your plugins and make sure there are no code snippets added to functions.php of your child theme that may cause redirection loops.
Key takeaways
- Results from misconfigured plugins or SSL settings.
- Clear browser cookies or reset
.htaccessvia permalink settings.
Can’t access wp-admin
Quick answer: If you can’t log in to your WordPress dashboard, reset your password with the “Lost your password?” link and clear your browser cookies. If a security plugin locked you out, rename its folder in wp-content/plugins over FTP. A blank or broken admin screen is usually a PHP fatal error.
What causes it
Being locked out of wp-admin usually has one of four causes, and what you see on the login screen tells you which one: a password problem, a redirect loop, a security plugin block or a fatal error that only affects the dashboard. Here’s what each looks like:
- A forgotten password, or a password reset email that never arrives
- A login redirect loop, often from a wrong site address or a caching or security plugin
- A security plugin blocking your IP address after failed logins
- A fatal error that only appears in the dashboard
How to fix it
To get back into wp-admin, start with the password reset and move on to the next step only if the login page still doesn’t let you in. The last steps need FTP or File Manager access, so keep those details handy:
- Use Lost your password? on the login page. If the email doesn’t arrive, your site probably can’t send email. Reset the password from your host’s WordPress tools or ask your host.
- Clear your browser cookies for the site, or try a private window.
- If the login page keeps reloading, check that WordPress Address and Site Address under Settings > General match your real URL. Without dashboard access, check the
siteurlandhomevalues in thewp_optionstable in phpMyAdmin. - Rename your security or caching plugin’s folder to deactivate it, log in, then rename it back and check its settings.
- If the dashboard shows a white or broken screen, find the error and deal with the plugin or theme behind it.
WordPress not sending email (SMTP issue)
Quick answer: WordPress sends email with PHP mail() by default, which many servers and email providers block or send to spam. Install an SMTP plugin such as WP Mail SMTP, send through your email provider, and make sure your domain has a correct SPF record.
Even though your contact forms are properly configured, emails may not be delivered to the recipient’s inbox and could instead end up in the spam folder.
The PHP mail() function is used to send emails from a PHP script. It accepts parameters such as recipient address, subject, and message body.
WordPress core, themes and plugins are written in PHP and by default, they make use of PHP’s mail() function to send out emails through your web server.

Why WordPress fails to send emails?
It’s difficult for beginner WordPress users to track what’s going on behind the scenes when an email is being sent through PHP’s mail function. WordPress doesn’t display any error when PHP mail() fails to deliver an email or when that email ends up in the recipient’s spam folder.
The most common causes of this issue are misconfigurations with your hosting provider or incorrect DNS settings when your emails are hosted on Gmail, Office 365, or a similar email provider while your website is hosted with a different hosting provider.
The latter often causes your emails to be detected as spam because when you use email services on a third party provider your emails are expected to source from that provider.
What is SMTP?
SMTP stands for Simple Mail Transfer Protocol. It’s a communication protocol used to transfer electronic mail (email) messages between servers. SMTP configuration in WordPress allows you to specify an SMTP server, port, and authentication details (like username and password) to send emails. This way, you can control how emails are sent from your website, improving deliverability and reliability compared to relying solely on the default PHP mail() function, which can be less reliable in certain hosting environments.
How to fix WordPress not sending email issue?
I strongly recommend you to use an SMTP plugin, if you are using any type of contact form, mailing list, WooCommerce, or any other functionality that tries to send email through your website. Without one, these messages go out through PHP mail() and often end up in spam or never arrive.

There are fantastic plugins that do this job. My recommendation is to use WP Mail SMTP for this purpose.
I have used WP Mail SMTP on multiple sites and never had an issue with it. With its free version you can connect your site with a standard SMTP server. Other than standard SMTP, this plugin supports many other services and APIs.
If you connect it to Microsoft 365 and emails stop with an InvalidAuthenticationToken error, here’s how to fix it.

You can also send a test email directly from its settings page and test your WordPress site’s mail functionality.
I highly recommend you to add a DMARC record to your domain’s DNS zone for improving your email deliverability as well.
Key takeaways
- PHP
mail()function may fail due to your web server configuration. - Configure SMTP settings using plugins like WP Mail SMTP for reliable email delivery.
Frequently asked questions
These are the questions people ask most about WordPress errors, from finding the real error and fixing a critical error to getting a site out of maintenance mode. Each answer is short, and the sections above cover every fix in more detail.
How do I fix my WordPress website?
Back up your site, find the real error from the recovery mode email or your debug log, then fix the plugin, theme, file or server limit it points to. Most errors come from a plugin, a theme or a PHP version problem. The three steps at the top of this guide walk through it.
How do I find the error in WordPress?
Check your admin email for a message titled “Your Site is Experiencing a Technical Issue”, or turn on WP_DEBUG and WP_DEBUG_LOG in wp-config.php and read wp-content/debug.log. Your host’s error_log file shows the same errors. The error names the plugin, theme or file that caused it.
What does a critical error mean?
It means a PHP fatal error stopped WordPress from loading, usually because of a faulty or incompatible plugin or theme, an exhausted memory limit or a PHP version change. WordPress shows the message instead of a blank page and emails the site admin a recovery mode link.
Why am I getting emails from WordPress?
WordPress emails the site admin address about critical errors (with a recovery mode link), automatic update results, password resets, new user registrations and comments awaiting moderation. If you got “Your Site is Experiencing a Technical Issue”, open the recovery mode link and deactivate the plugin or theme it names. To change who receives these emails, update the Administration Email Address under Settings > General.
How do I get WordPress out of maintenance mode?
Delete the .maintenance file in your WordPress root folder, the same folder as wp-config.php, using FTP or your host’s File Manager. It’s a hidden file, so turn on “show hidden files” if you can’t see it. Your site comes back straight away. Then run any interrupted update again, one plugin or theme at a time.
Can I reset or restore my WordPress site?
Restoring a backup from before the problem started is often the quickest fix, but you lose any posts, orders or form entries added since, and the problem can come back if its cause is still there. Resetting WordPress wipes all your content and settings, so it’s rarely the right fix for an error. If you’re not sure, let our team find the cause and fix it so you keep your content.
More WordPress error guides
Not every WordPress error fits in one guide. Some only happen with one plugin, theme or server setup, so we’ve written separate guides for them with the exact steps we used to fix each one. These guides cover less common errors and plugin-specific issues:
- WP HTTP error: cURL error 60, SSL certificate problem
- WordPress database error: Commands out of sync
- Scheduled tasks running late (WP-Cron)
- WooCommerce cart is empty after adding products
- WPBakery content invisible with outdated themes
- Astra Customizer not loading
- Mailchimp WooCommerce sync stuck
- Polylang lost linked translations
- Virus that keeps reinfecting a WordPress core file
- Elementor sticky header anchor offset not working
Troubleshooting like a pro
I believe this comprehensive guide will help you learn how to diagnose and fix WordPress errors like a pro. If you’d rather not troubleshoot it yourself, our WordPress fix service can fix it for you, usually within an hour. If you found this article helpful, please consider sharing it.




