22 February 2010 ~ 9 Comments

wp-admin Redirected To Error 404 Page After WordPress Upgrade


Have you encountered wp-admin page being redirected to Error 404 page after your WordPress upgrade?

Last 2 days, I almost went crazy when I found out that I couldn’t login to my WordPress blog anymore even though had successfully upgraded to WordPress 2.9.2. Every time i went to the wp-admin page, it was being redirected to error 404 page.

I did try to get help from WordPress Support Forums and BlogCatalog but luck was not with me. At that moment, I really didn’t know what to do already and even thought of rebuilding this blog again. Luckily, I procrastinated the idea and decided to investigate further.

So what I did was that I created a php file named test.php with the following code in it:

<?php phpinfo(); ?>

and then place it one each under root and wp-admin folder. What happened was that the test.php was working fine under the root folder but NOT for the wp-admin folder. Ah-hah! This had at least given me some hints why I was not able to access any php files inside of wp-admin folder. Then I proceeded to creating a temporary folder, for example called ‘testphp’ under root and copy the test.php into it to test if the php file was working fine. Yes, it worked! At that moment, I had the strong feeling that I could identify the root cause of the problem.

What I did after that was I compared the permission between ‘testphp’ of the wp-admin folders. Guess what, I discovered that the permission between the 2 folders were somehow different where ’testphp’ and wp-admin folder were having permission 755 and 777 respectively. I was not sure why permission of wp-admin had been changed to 777 during WordPress upgrade process. Anyway, I proceeded to changing the permission from 777 to 755. Bingo! It has started to work again and I have a sigh of relief.

Just in case you encounter almost the same kind of problem as I described above in the future, please be sure to check if the permission of the wp-admin folder is set to 755 before proceeding to finding out other potential root cause such as file permission, corrupted/missing files and so on.

Thanks for reading my long winded story!

Popularity: 26% [?]

Related posts:

  1. How To Install WordPress Locally With XAMPP Have you ever thought of making your personal computer...

Related posts brought to you by Yet Another Related Posts Plugin.

9 Responses to “wp-admin Redirected To Error 404 Page After WordPress Upgrade”

  1. ANTONY DOHERTY 23 March 2010 at 6:41 am Permalink

    WOW, thank you.I always wanted to write in my site something like that. Can I take part of your post to my blog?

  2. Gewinne 16 May 2010 at 1:20 pm Permalink

    hi
    i’m so happy that i saw this article. that post was so nice. thanks again i bookmarked this blog.
    are you planning to write similar posts?

  3. vemma 16 May 2010 at 3:46 pm Permalink

    Very informative post. Thanks for taking the time to share your view with us.

  4. lcd reviews 17 May 2010 at 7:33 am Permalink

    Awesome Blog. I add this Blog to my bookmarks.

  5. Wholesale polo shirts 17 May 2010 at 4:10 pm Permalink

    Hey I think you have a great blog going here, I found it on Bing and plan on returning regularly for the information that you all are providing.

  6. Jazz Music CD 3 June 2010 at 5:04 am Permalink

    This is really my very first time here, truly great looking blog. I discovered a lot of fascinating stuff within your blog especially it is discussion. From all the comments on your articles, it seems like this is really a extremely popular web site. Maintain up the great work.

  7. Kosmetyki Noni 3 June 2010 at 6:43 am Permalink

    You certainly deserve a round of applause for your post and more specifically, your blog in general. Very high quality material

  8. Student Loan Refinance 17 June 2010 at 2:19 am Permalink

    I’ll visit this site again to read your next post! Good job done!

  9. Mindy 18 August 2010 at 12:46 pm Permalink

    THANK YOU SOOOOOOOOOOOOOOOOOO MUCH FOR SHARING.
    I HAD THIS HAPPEN THIS MORNING AND WAS FREAKING OUT!!!
    BLESS YOU!!!!


Leave a Reply

CommentLuv Enabled