How To Fix Can’t Login To “/wp-admin/” Dashboard On WordPress

I recently encounter a problem on my wordpress blog – wasn’t able to login to my /wp-admin/ dashboard. I usually get a server not found and other browser error, But my blog was still intact i.e it was in perfect condition.

My Story
In my case, i remember i was trying to update a plugin from my dashboard, after clicking the update now link, i got a connection timeout browser error, when i try going back to my dashboard, i couldn’t ‘cos i was having a server not found error.

How To Solve This Problem
It became clear to me that it was the plugin i tried updating was the cause of the problem. Since i wasn’t able to de-activate it from dashboard, i had to do it from PHPMYADMIN:

  1. Login to your webserver phpMyADMIN and navigate to the “ active_plugins ” column inside the “ wp_options ” table or use the below SQL query to navigate to the ” active_plugins ” table:-
    [sql]

    SELECT * FROM wp_options WHERE option_name = ‘active_plugins’;

    [/sql]

  2. Once the active_plugins column appears, click to edit it. You will see something similar to the following, depending on the number and type of plugins you have installed:
    [sql]

    a:30:{i:0;s:29:”ad-injection/ad-injection.php”;i:1;s:19:”akismet/akismet.php”;i:2;s:37:”backup-scheduler/backup-scheduler.php”;i:3;s:43:”bizsugar-voting-button/wp-bizsugar-vote.php”;i:4;s:37:”breadcrumbs-plus/breadcrumbs-plus.php”;i:5;s:25:”commentluv/commentluv.php”;i:6;s:36:”contact-form-7/wp-contact-form-7.php”;i:7;s:53:”contextual-related-posts/contextual-related-posts.php”;i:8;s:45:”crayon-syntax-highlighter/crayon_wp.class.php”;i:9;s:33:”genesis-enews-extended/plugin.php”;i:10;s:28:”genesis-grid-loop/plugin.php”;i:11;s:31:”genesis-simple-edits/plugin.php”;i:12;s:31:”genesis-simple-hooks/plugin.php”;i:13;s:50:”google-analytics-for-wordpress/googleanalytics.php”;i:14;s:41:”google-xml-sitemap/google-xml-sitemap.php”;i:15;s:59:”growmap-anti-spambot-plugin/growmap-anti-spambot-plugin.php”;i:16;s:19:”jetpack/jetpack.php”;i:17;s:27:”mobilepress/mobilepress.php”;i:18;s:43:”nrelate-related-content/nrelate-related.php”;i:19;s:22:”post-layout/plugin.php”;i:20;s:15:”sabre/sabre.php”;i:21;s:29:”sem-dofollow/sem-dofollow.php”;i:22;s:33:”seo-image/seo-friendly-images.php”;i:23;s:29:”seo-ultimate/seo-ultimate.php”;i:24;s:37:”social-media-widget/social-widget.php”;i:25;s:67:”social-networks-auto-poster-facebook-twitter-g/NextScripts_SNAP.php”;i:26;s:41:”syntax-highlighter/syntax_highlighter.php”;i:27;s:33:”tweet-old-post/tweet-old-post.php”;i:28;s:51:”wordpress-popular-posts/wordpress-popular-posts.php”;i:29;s:38:”wp-subscriber-form/subscriber-form.php”;}

    [/sql]

    To deactivate all your plugins, cut the whole code above and save.

  3. Now that the all your wordpress plugins are deactivated, you can now login to you dashboard without any hitch.

Alternatively
Run the below SQL query to disable all plugins instantly:-

[sql]
UPDATE wp_options SET option_value = ” WHERE option_name = ‘active_plugins’;
[/sql]

Now that the plugins are deactivated, login to your wordpress, remove the problematic plugin, and activate the rest.

Other causes of inability to login to dashboard
Apart from the plugin cause, there are numerous other causes of this problem. Example is:
#Invalid File/folder permission
– Check and make sure all folder have chmod 755.

Precaution
Before messing with your database, backup the following tables:-
wp_commentmeta
wp_comments
wp_postmeta
wp_posts tables

Conclusion
Alway have a backup plan in place incase your blog ran into any hitch in your wordpress.
If you have any contribution or question, use the comment form below.
STAY BLESS

Don’t miss out!
Subscribe to My Newsletter
Invalid email address