Error 500 Fix: Not Able To Access Wp-Admin After WordPress Upgrade

Around 16 million website on internet use WordPress and about 50000 new WordPress sites are launched daily.

As per an estimation, about 54.2 million new posts are published daily using WordPress.

The popularity of WordPress is huge. 27% of the internet runs on WordPress.

I myself run all of my sites on WordPress. In fact this website is also running on WordPress.

WordPress keep releasing new updates to make their content management system more robust, secure and technology ready.

Whenever a new update comes in, I prefer to upgrade my WordPress version to the latest one.

Recently I got a new message in my WordPress dashboard. It was about the new WordPress update i.e 4.7.2.

Without giving a second though, I clicked on the “please update now” link and WordPress automatic update begun.

The update was running smooth and as soon the update got completed and it was redirecting to the new version’s Welcome Screen, I got an error.

www.mydomain.com/wp-admin/upgrade.php?_wp_http_referer=%2Fwp-admin%2F

Wordpress Login Error

I was shocked. I messed up something, I thought.

What is the problem, I had no idea about.

Without wasting anymore time I tried to check if my website is live or not. I typed the URL of my website in the browser, it was running without any error.

I thanked God!

But if the website is running smooth, what is the reason I am not able see the Login Page. Why I am redirecting to wp-admin/upgrade.php?_wp_http_referer=%2Fwp-admin%2F with an error 500.

I did a google search. Thankfully I was not alone.

I have found there are many people like me how have encountered this error while upgrading to the latest version.

I was happy, I was thinking that I now will find an easy fix for this problem as there are many people suffering from this issue.

But I was wrong, After reading about 20 articles on the internet, I couldn’t find find a solution.

Then I decided to search the WordPress official support forum and I have found a thread which was about the same problem.

While I was reading the comments on the page, I found a comment.

Solution for Unable to access admin login after upgrade

Somebody just have discovered the culprit. It was W3 Total Cache plugin.

I was using the plugin on my blog.

Now the solution was to delete the files i.e advanced-cache.php, db.php, and object-cache.php.

If you’re not sure where to find these files, let me tell you.

These files are located in your Wp-Content folder. You can find these folder after login to your hosting account using FTP or cPanel (File Manager).

cache files

After I found the file, I simply renamed them.

After renaming all the 3 files, I visited the URL i.e www.mydomain.com/wp-admin

As soon I pressed Enter, a new screen popped up. It was asking me to update the database.

WordPress Database update required notice

I clicked on the update WordPress database button. I my database got updated successfully.

Now I was able to see the login screen.

I renamed the all 3 files back to their original name and my WordPress site is running smooth now with no issues.

I hope the article was helpful for you. Now it is your turn to fix the error on your site.

If you liked the article, please consider to share it on social media. Thanks for reading.