Title: Can&#8217;t post/edit: requesting authentication &#8220;magic&#8221;
Last modified: August 19, 2016

---

# Can’t post/edit: requesting authentication “magic”

 *  Resolved [tshirtfiend](https://wordpress.org/support/users/tshirtfiend/)
 * (@tshirtfiend)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/)
 * I’m getting a strange error when I try to post, or edit posts (or add/edit any
   content). I get a browser alert window that says:
 * > Authentication Required
   > A username and password are being requested by [http://mysite.com](http://mysite.com).
   > The site says: “Magic”
 * Then it requests user and password. User and password entry doesn’t work.
 * I can log into the blog normally, without errors. I have reset my admin password,
   to no effect.
 * Did I get hacked or something? How can I fix this?

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/page/2/?output_format=md)

 *  [jkboho](https://wordpress.org/support/users/jkboho/)
 * (@jkboho)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/#post-1160588)
 * I fixed the problem by reuploading the root files, the wp-admin folder and the
   wp-includes folder from a backup of the site that I made a week ago. I didn’t
   touch the content folder.
 * If you don’t have a backup, I imagine that if you download a fresh version from
   WordPress and recopy the files and folders listed above (being careful NOT to
   overwrite your wp-config file!), that would probably work, too. PIA, I know, 
   but that’s all I know to do until someone else figures out the source of the 
   problem.
 *  [jkboho](https://wordpress.org/support/users/jkboho/)
 * (@jkboho)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/#post-1160589)
 * Also, to clarify — someone else pointed this out on another of my posts — by 
   replacing the “root files” I mean the files in the top-level folder. Replace 
   them all but the wp-config file.
 *  Thread Starter [tshirtfiend](https://wordpress.org/support/users/tshirtfiend/)
 * (@tshirtfiend)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/#post-1160591)
 * Ok, thanks. I’ll give that a shot.
 * Seems like a strange problem to have just out of the blue.
 *  [fredeaker](https://wordpress.org/support/users/fredeaker/)
 * (@fredeaker)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/#post-1160596)
 * I was getting the same message as well. Even though I was already at 2.8.2, I
   performed the upgrade procedure, and now the message is gone.
 *  Thread Starter [tshirtfiend](https://wordpress.org/support/users/tshirtfiend/)
 * (@tshirtfiend)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/#post-1160597)
 * I uploaded the files you suggested, in 3 groups:
 * 1. root files
    2. wp-admin directory 3. wp-includes directory
 * I tested after each one. It start working until the last files (wp-includes directory).
   If it happens again, I’ll start there.
 *  Thread Starter [tshirtfiend](https://wordpress.org/support/users/tshirtfiend/)
 * (@tshirtfiend)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/#post-1160651)
 * Oops. I meant: It DIDN’T start working until I uploaded the wp-includes directory.
 *  [lovefabillar](https://wordpress.org/support/users/lovefabillar/)
 * (@lovefabillar)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/#post-1160664)
 * Yeah I’m having this exact kind of problem right now, reuploaded /wp-admin directory–
   problem remains.. reuploaded root files – problem remains.. Right now reuploading/
   wp-includes directory – still uploading..
 * I only got this issue after installing the Plug-in “**Tweet This**“, must have
   interfered with my other plug-ins?
 * **EDIT:** Finished reuploading **/wp-includes** and the problem has been solved!
 *  [robk30](https://wordpress.org/support/users/robk30/)
 * (@robk30)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/#post-1160708)
 * i’m having the same problem. how do i re-upload /wp-includes? thanks!
 *  [robk30](https://wordpress.org/support/users/robk30/)
 * (@robk30)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/#post-1160715)
 * i am using WP 2.7.1 – can i upload wp-includes from WP 2.8.2 or does it need 
   to be the wp-includes from 2.7.1? if so, where can i get that?
 *  [jkboho](https://wordpress.org/support/users/jkboho/)
 * (@jkboho)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/#post-1160767)
 * [@robk](https://wordpress.org/support/users/robk/): Go to the WordPress downloads
   area and it should have the old versions.
 *  [robk30](https://wordpress.org/support/users/robk30/)
 * (@robk30)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/#post-1160894)
 * i got the “Magic” thing to go away, but now i am having issues with the sidebar
   and some other things on the blog. do you think it’s related? what else can i
   do to fix this problem? the blog i’m referring to:
 * [haironthebrain.com](http://haironthebrain.com)
 *  [rchusid](https://wordpress.org/support/users/rchusid/)
 * (@rchusid)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/#post-1160950)
 * I assume this is some sort of attack as opposed to any form of error inherent
   to WordPress. I also fixed the problem for now by having it automatically reinstall
   WordPress.
 * There’s at least one other post here discussing the problem:
    [http://wordpress.org/support/topic/295482](http://wordpress.org/support/topic/295482)
 *  [rchusid](https://wordpress.org/support/users/rchusid/)
 * (@rchusid)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/#post-1160951)
 * robk30: Maybe your problem with sidebars is related to this problem but I wonder
   if it is coincidental. I had problems similar to yours recently and ultimately
   found it was because some formatting codes in text I had pasted in from another
   site had messed up WordPress. You might try checking recent posts to see if there
   are any html codes included, or try temporarily removing your posts from 7/30
   to see if that fixes the problem.
 *  [tstalcup](https://wordpress.org/support/users/tstalcup/)
 * (@tstalcup)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/#post-1160953)
 * Encountered the “Magic” problem with a client using v2.5.1 this morning. We, 
   at least temporarily, solved the problem by reverting the wp-includes directory
   to a backup copy.
 * We did a diff on the two directory and found that the vars.php file contained
   the infected code.
 *  Thread Starter [tshirtfiend](https://wordpress.org/support/users/tshirtfiend/)
 * (@tshirtfiend)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/#post-1161057)
 * Does seem like it might be malicious, doesn’t it? Simple fix…but I’m not sure
   that more damage wasn’t done. Fingers crossed, passwords changed, etc.

Viewing 15 replies - 1 through 15 (of 29 total)

1 [2](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/page/2/?output_format=md)

The topic ‘Can’t post/edit: requesting authentication “magic”’ is closed to new 
replies.

## Tags

 * [authentication](https://wordpress.org/support/topic-tag/authentication/)
 * [password](https://wordpress.org/support/topic-tag/password/)
 * [user name](https://wordpress.org/support/topic-tag/user-name/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 29 replies
 * 19 participants
 * Last reply from: [Larryhir](https://wordpress.org/support/users/larryhir/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/cant-postedit-requesting-authentication-magic/page/2/#post-1161167)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
