locked out of wordpress
March 26th, 2018 by ronny

If you are locked out of WordPress admin panel, what to do or find out what to do. I will list some of the symptoms and solutions to commons issues why users get locked out of WordPress admin panel. Hopefully, you will never have to read this. Let us see what are the most common issues why you might get locked out of WordPress. What to do when locked out of WordPress?

Locked out of WordPress: Wrong password

Locked out of WordPress because of the password is one of the most common reasons why you can’t login to your WordPress admin panel is that you use the wrong password. You can always click the “lost your password?” link and get your password reset. This requires a few things. You registered your email when you created your WordPress account. Your Sendmail, if you are on Linux or some sort of SMTP server for your WordPress to be able to send that reset mail.

If the mail for some reason doesn’t work, you will need to go into your MySQL database and reset your password there. The best way to reset your password in the database is to use a tool like phpMyAdmin or MySQL Workbench. If you have SSH access to the database server you can also use terminal and access the database that way. I bit more complicated, but there are tons of tutorials on the matter.

locked out of wordpress password

Admin Privileges is gone

How to access WordPress admin tools when your admin privileges are missing? This is fortunately not as common as wrong or lost password issue. There are only a few ways this could happen. Either someone removed your admin privileges or something changed the settings for the admin user in the database itself. Either way, you should have a backup of your WordPress installation, including the database.

locked out of wordpress 2

If you connect to your database with a tool like MySQL Workbench you can manually check what privileges your user has. Check out the table wp_usermeta, and you will find the privileges for all your users in here. Then we look at the main admin user, the first user created in WordPress. It should have a key value for wp_capabilities like this: a:1:{s:13:”administrator”;b:1;}

locked out of wordpress 3

If the value above is something different. Like something like this: a:0:{}. That means all your roles have been removed. You are not even a subscriber. So how to login to WordPress again? You can copy the wp_capabailities from the admin code above, and past it into your own user. Then maybe think of how to prevent it from happening again.

Blank admin page (White screen of death)

A blank WordPress admin page, or the white screen of death, can happen after doing changes to your WordPress. You enter the WordPress administration URL, and you only get a white screen. It can be compatibility issues in a plugin, bad plugin update or other plugin issues. The more plugins you have, the higher the chance of something like this to happen. But luckily it can be fixed and help you from being locked out of WordPress.

The most common solution to this issue can be solved by disabling all the plugins. Then turn them back on one by one until you identified the faulty plugin. You can read more about that in my article about white screen of death. One of the most common causes of being locked out of WordPress.

Syntax error or PHP error messages

PHP error messages usually come when editing your theme. Unless you are testing your own made plugins or something. But for non-developers theme snippets or changes to the theme is the main cause. This error will not just cause the admin panel to be unavailable, but most likely your entire site. Syntax errors or PHP errors is easiest fixed by connecting the site with FTP. And then manually change or remove the theme. This guy has an article on how to monitor PHP error messages for WordPress.

Error establishing a database connection

Error establishing a database connection message is because your WordPress cannot connect to your database. This message will often not appear only on your admin panel. It will often appear on your entire WordPress site. But that can be a good thing, compared to the alternatives. There are a few things that can cause this error message.

The database server could be down. Are you using a shared web hosting or hosting your own server? If you are using shared web hosting I would contact the hosting company and asked them if the database server was down. Or maybe they even have status messages on their website. Some hosting companies do.

The database could be damaged and needs to be repaired. You can have WordPress trying to repair the database by itself. However, you need to do one change in the wp-config.php file. But only one line of code is needed at the end of the file. Or almost at the end. Just above this line: /* That’s all, stop editing! Happy blogging. */ You can try to paste this code in: define(‘WP_ALLOW_REPAIR’, true);

locked out of wordpress 4

While you are at it with the wp-config file, check the database connection information at the top of the file. You will find the database name, database username, database password and database server address.

Make Backups

The most important thing with running WordPress sites, or any other sites, is to make regular backups. Start doing that before you have to google wp-login not working or how to access my WordPress dashboard. There are tons of backup plugins you can use to make backups. Or even restore your site if needed. Backup plugins are also a nice way to transfer your WordPress site to another host. If you like the same WordPress site running on a home server for testing and experimenting.

Hope you don’t get locked out of WordPress again. Check out my other WordPress articles here.

Posted in Wordpress Tagged with: ,

Change link color Wordpress
March 24th, 2018 by ronny

Change link color WordPress. Sometimes your WordPress default link colors don’t fit very well on your page. There isn’t any settings where you can change this in a lot of the themes. For some themes, the link color is the same as the text color. So it is impossible to see any links in your articles. And we want to see the WordPress link!!! Get ready to change link color WordPress.

Change link color WordPress

Step 1

The first thing you need to do is, of course, open your dashboard for your WordPress. When your dashboard has opened, go to Appearance -> Customize. This is the place where you can customize the look and appearance of your entire site. But not set link color, there are no options for WordPress font color or anything without using CSS.

change link color wordpress 1

Step 2

At the very bottom of the menu, you’ll see Additional CSS. Click that one and a new window appear. In this window, you can do all the changes you cant find options for. As long as it has something with the formatting of your pages. Things like WordPress Hyperlink color code, WordPress text color code, line spacing and things like that.

change link color wordpress 2

Step 3

With the CSS editor open, you can paste in the code below. The first line tells WordPress to do these changes to any WordPress link. The second line is the color of the link. In this example we use black. The third line tells WordPress that you want the hyperlinks underlined. This is how to change link color in CSS for WordPress.

.single .entry-content p a {
color: #000000;
text-decoration: underline;


change link color wordpress 3

When working with CSS link color or web pages in general, you sometimes need color codes. Wikipedia has a great article on web colors.

And if you need to find those color codes or a color picker. Just open opp Google and type in color picker in the search field. And integrated color picker tool will appear. Great work Google for integrating all those tools directly into your search page.

If you liked my Change link color WordPress article, please check out my other WordPress articles here.

Posted in Wordpress Tagged with: ,

fatal error out of memory Wordpress
March 11th, 2018 by ronny

Fatal error out of memory WordPress is caused by, as the message says, out of memory. WordPress itself is not memory hungry. According to WordPress memory requirements, 32MB is enough to run WordPress. In most cases with a decent amount of plugins, 128MB is more than enough. The default memory_limit in wp-setting.php is 128MB if you have a newer WordPress installation.

Fatal error out of memory WordPress

A WordPress out of memory is usually easy enough to fix. That is if you know your WordPress is out of memory. Fatal error out of memory WordPress is not given an error message every time. Sometimes you can experience whats called White screen of death. No error messages, no warning, no nothing. If you get a white screen of death it is often after trying to access the WordPress Admin page. Check out my WordPress admin blank page after login on how to solve that.

How to increase WordPress memory limit?

In the beginning of /wp-includes/default-constants.php 40MB is allocated to WordPress. Or 64MB if it is multisite. So if you need more than that, you should in the default-constants.php allocate more than the default value. If you feel like your site need 128MB, change the code to this: define( ‘WP_MEMORY_LIMIT’, ‘128M’ );

Please note that some WordPress hosts, or shared web hosting only allocate 8MB to php. If you are using a VPS, dedicated server or a web host with access to the WordPress setting files, try the change above to increase php memory.

Check php memory usage

If you want to check php memory usage or how much memory your WordPress site is using, check out Server IP & Memory Usage Display. After installing the plugin, just go to your admin page and scroll down to the bottom. Really useful when debugging your memory needs for your site. You will see your php memory size and Php memory limit WordPress IP address and your php and OS version.

fatal error out of memory WordPress 2

If you liked this fatal error out of memory WordPress article, please check out my other WordPress articles.

Posted in Wordpress Tagged with: , ,

wordpress admin blank page after login
March 6th, 2018 by ronny

WordPress admin blank page after login, the first time is terrifying. Since you found this article, I guess that is what you are experiencing now. If not, keep this article for later if you are a WordPress user. Chances are you will experience it if you manage your own WordPress install. Installing and setting up plugins, themes and etc.

What happened to me was everything else was working just fine. The plugins seemed to do what they were supposed to do, and the theme worked just fine. Everything worked, except WordPress admin blank page after login. Nothing appeared when trying to login to the admin panel. Not even an error message, just a completely blank page. It can, of course, behave differently on other sites. This was just how my WordPress blank page experience was. I had to read several articles to fix my issue. And here is what I found.

wordpress admin blank page after login 2

Before you do anything, take a backup

1. The most important thing I learned from my WordPress admin blank page after login experience is to always keep an up to date backup of your site. There are several plugins that will help you with backups. The plugin I use for backups is UpdraftPlus – Backup/Restore. But there are a whole bunch of them. Probably better than the one I use too.

2. After you have done a backup, download it and save it somewhere safe.

3. If you have a spare computer or already set up, you can have a web server at home. With the same version of WordPress, same template, and same plugins. Then before updating your live server, you can verify the updates on your test server at home.

Identify the error causing the blank page

What causes WordPress admin blank page after login? It can be tricky to locate what the error is. If you have a WordPress hosting, you could ask the hosting company if there any known faults. If you have multiple WordPress blogs, check to see how the others are doing. The same error there? A test server is also handy to have in this situation.

If you are familiar with PHP or a Google ninja, some output would be better than a blank page. There is something you can do to make it print errors and warnings. If you edit the wp-config.php and add the following code:

error_reporting(E_ALL); ini_set(‘display_errors’, 1);

define( ‘WP_DEBUG’, true);

What can cause WordPress admin blank page after login

1. One of the most common reasons why your admin page goes blank is because PHP is out of memory. Increasing PHP memory limit will solve the admin page from going blank. You can read more about how to increase the PHP memory for WordPress.

2. Bad plugins is another common reason why your WordPress blog stops working. This was the reason why my WordPress admin page went white. How I fixed it was to disable all the plugins at once. Not sure how to do that. Check. out my article on Disable all plugin for WordPress. And then enable them one after one, until you find the plugin causing the error.

3. Before doing this, make sure you have a good backup of your WordPress blog. It could be your theme. The best way to test this is to use the default WordPress theme. If you have access to the installation directory, just navigate to the theme folder and delete it. This will force WordPress to load the default WordPress theme.

4. An unlikely cause, but could of course happen, is that one or more of the core files have been damaged. You can do a reinstall of WordPress to verify this. You will not lose your data. They are stored in a MySQL database. You will need to configure it again, move the theme over and reinstall the plugins. Should be last resort. And not installed over the old WordPress installation if it can be avoided.

Please also read Debian – Install WPScan to scan WordPress for vulnerabilities

Posted in Wordpress Tagged with: ,