WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Upgrade to 2.2.2 goes haywire (11 posts)

  1. Tom Richmond
    Member
    Posted 7 years ago #

    I did the routine upgrade to version 2.2.2 but something has gone wrong. I've upgraded before with no trouble. I followed all the upgrade instructions EXCEPT backing up all my files. :(

    After upgrading I tried to run the upgrade script but it told me I was already using the most current version. My blog appears okay except when trying to write a new post. Where I used to see the upload images area I get the following message:

    Not Acceptable
    An appropriate representation of the requested resource /blog/wp-admin/upload.php could not be found on this server.

    I tried deleting and reuploading the wp-admin folder. I then deleted and reuploaded all files. I then deleted the original downloaded upgrade files, redownloaded them fresh and did it all again. Same problem. I also noticed that after deactivating all my plug-ins before the first upgrade, they are all listed as activated without my activating them, yet wordpress is treating them as deactivated.

  2. whooami
    Member
    Posted 7 years ago #

    sounds like mod_security

    IF YOU DO NOT HAVE an .htaccess in your wp-admin/ directory:

    create a text file on your desktop:

    put the following inside it:

    <IfModule mod_security.c>
    SecFilterInheritance Off
    </IfModule>

    save the file. name it whatever you want

    Upload the file to your wp-admin directory.

    Rename the uploaded file to .htaccess (with the .)

    IF YOU DO HAVE an .htaccess in your wp-admin/ directory:

    Edit it, and add the following:

    <IfModule mod_security.c>
    SecFilterInheritance Off
    </IfModule>

    save the new .htaccess

    see if that helps.

  3. Tom Richmond
    Member
    Posted 7 years ago #

    Thanks. I tried that but it makes the entire admin area of the blog inaccessable.

  4. moshu
    Member
    Posted 7 years ago #

    Then you must have done something wrong, sorry.
    I had the same/similar issue on a blog I manage and the above code in the htaccess file placed in the wp-admin directory solved it.

  5. Tom Richmond
    Member
    Posted 7 years ago #

    I didn't have an htacess file before. I use a custom template put together by my website programmers. Does that matter?

  6. whooami
    Member
    Posted 7 years ago #

    art4mad,

    I have to agree with moshu..

    the way thats written above it wont spew an error, even IF mod_security isn't the problem, since it's wrapped in the <IfModule ...> tag.

    In other words, its only applicable, if its (mod_sec) installed, if its not, it does nothing

  7. Tom Richmond
    Member
    Posted 7 years ago #

    I tried it again, and this time it worked fine. I think the problem was I did not save the file as a plain text document, so I suspect it was saved as a rich text document by default. WordPress must not like that.

    Thanks very much!!! I greatly appreciate the help!

  8. moshu
    Member
    Posted 7 years ago #

    Nobody likes that!
    You should never ever edit any code file (php or html) in a stupid word processor. Only plain text editor!

  9. Tom Richmond
    Member
    Posted 7 years ago #

    Uhhh. I just read that the htaccess file might have been there but been invisible to my FTP program (Fetch on a Mac). Did I just overwrite my htaccess file and destroy my permalinks info?

  10. whooami
    Member
    Posted 7 years ago #

    Any .htaccess that existed inside your wp-admin directory did NOT contain anything that WordPress generated.

    So no.

  11. moshu
    Member
    Posted 7 years ago #

    You are not reading carefully - that might be one of your problems. We are NOT talking here about the htaccess file at the WP root (the one that helps you with nice permalinks!) - we are talking about a 3-lines file INSIDE the wp-admin directory. Don't mix things...

Topic Closed

This topic has been closed to new replies.

About this Topic