Table of Contens
Are you trying to log into WordPress backend login, but WordPress login fails? There could be many reasons why your login page stopped loading. We will look at them together in this article.
#1 Your login credentials are incorrect
Before we investigate the other reasons deeply, you need to make sure, that your login credentials are not incorrect. First of all, try resetting your password. If you don’t see the login form at all, then skip to the next point.
If password resetting function works, you should receive an email that allows you to reset your password and log in.
Reset WordPress password manually
If the password reset feature doesn’t work, don’t worry. You can also manually reset your password in your hosting account, it just takes a few extra steps. Follow the instructions below to change your WordPress password manually in the WordPress database:
Change WordPress password in the database
#2 Clear cache and cookies
If the problem is not the incorrect login credentials, we still have to make sure that it’s not a temporary cache error. It can be, that the outdated data stored in the cache of your browser has not been emptied yet. This data is stored in the browser and usually it is not a sensitive data. The image below shows how to clear the browser cache in Google Chrome. If you use another browser, you can search the settings on Google: clear browser cache
#3 Disable WordPress plugins
wp-content/plugins
directory. If you know which plugin is responsible for security, rename this directory. If you’re not sure which plugin causes the problem, simply rename the “plugins” directory.#4 Check WordPress Site URL
wp-config.php
file. To edit the file, you need your hosting or FTP access. Ask your hosting provider if you do not know this credentials. Navigate to the WordPress installation directory. Open the wp-config.php
file and add the following lines: define('WP_HOME','http://YOUR_WEBSITE_NAME'); //e.g. https://azizozbek.ch define('WP_SITEURL','YOUR_WEBSITE_NAME');
#5 Check PHP Interpreter
#6 .htaccess file is corrupt
ERR_TOO_MANY_REDIRECTS
when trying to access your dashboard in Chrome. Or it could present itself as another problem. The easiest way is to rename the .htaccess file. Navigate to the WordPress installation directory and rename the file.If you can log in after deleting the .htaccess file, go to Settings > Permalinks and click Save. This will force WordPress to generate a new .htaccess file. You don’t need to change the settings, just click the Save button.
#7 File permissions are incorrect
wp-login.php
file and the wp-admin
folder, you may not be able to access the WordPress dashboard.#8 Enable debugging on WordPress
Are you getting a blank page or weird error messages on the login form? If you have a bit of programming knowledge, you can enable WordPress debugging mode. When debugging mode is enabled, errors are displayed with detailed information on the page. To enable debugging mode in WordPress, you can add the following lines towp-config.php
: // Enable WP_DEBUG mode define( 'WP_DEBUG', true ); // Enable Debug logging to the /wp-content/debug.log file define( 'WP_DEBUG_LOG', true ); // Disable display of errors and warnings define( 'WP_DEBUG_DISPLAY', false ); @ini_set( 'display_errors', 0 ); // Use dev versions of core JS and CSS files (only needed if you are modifying these core files) define( 'SCRIPT_DEBUG', true );