WordPress.org

Ready to get started?Download WordPress

Forums

Error messages re: "index-extra.php" and "admin-ajax.php" (9 posts)

  1. Bartles
    Member
    Posted 6 years ago #

    Hi Everyone,
    I am having some troubles with my new WordPress installation. It is the latest version (2.2.2) and I installed it with Fantastico. My host's MYSQL and PHP are definitely up to date. If it helps, my hosting company is HostDime.

    In my main dashboard area I see the following error message on the right hand side.
    "Not Acceptable
    An appropriate representation of the requested resource /wp-admin/index-extra.php could not be found on this server."

    When I try deleting a post/page, I get the following

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

    I also have encountered a problem trying to get permalinks to work. Even with a writable .htaccess file, whenever I select the custom permalink structure "/%category%/%postname%/", all pages/posts/categories/archives etc are suddenly unavailable ("webpage cannot be found"). When I switch it back to ANY of the other permalink options everything works fine.

    As suggested in another support thread, I tried adding the following code to my .htaccess file:

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    For a separate test blog I set up (domain.com/test) this did the trick as far as allowing me to delete posts (and no error in the dashboard area), but it didn't help with the permalink issue (I imagine to different issue altogether). On my main blog however (domain.com) it didn't help with any of the issues.

    Anyone have any ideas why I might be having these issues?

    Thanks!

    B.

  2. whooami
    Member
    Posted 6 years ago #

    disable 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>

    name it whatever you like and save the file.

    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:

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

    --------

    And if I can make a recommendation, use the search here -- it's your friend, this issue has already been discussed ad nauseum; your your answer was two clicks away.

  3. Bartles
    Member
    Posted 6 years ago #

    I followed your instructions and it resulted in an internal server error (I can no longer login to WordPress).

    As for searching WP support...
    In my post above I mentioned the fact that I DID try some advice given in other threads, but that it did not work for me.

    Thanks for your time. If you (or anyone) has any other suggestions re: the mod_security issue, I would greatly appreciate it!

    Thanks

    B.

  4. whooami
    Member
    Posted 6 years ago #

    if you got an error then you messed up the paste, because as I have previously stated in similar threads -- that code will NOT generate any errors -- since it's wrapped in <if> tags..

    this is a very well known problem, and the solution has been provided.

  5. Bartles
    Member
    Posted 6 years ago #

    Wow - super fast response!! lol
    I was actually just about to pop back and let you know that I DID in fact do it wrong! (I uploaded the file as .htaccess rather than changing it once uploaded - any idea why this makes a difference? I wonder if this explains why I'm still having permalink issues?).

    So bottomline - the errors are gone and I can delete stuff (thanks again!), but alas I still can't get my permalinks to work the way I want them (and I definitely don't want to settle for numbered links).

    B.

  6. whooami
    Member
    Posted 6 years ago #

    that shouldnt make a difference -- my instructions are just to simplify matters when ppl get confused by not people able to create files that begin with a . on their windows pcs.

    an .htaccess is an .htaccess regardless of when or how it got it's name.

    so I dunno ..

  7. miletjs
    Member
    Posted 6 years ago #

    I think the .htaccess file should contain this instead:

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>
  8. mwncimelyn
    Member
    Posted 6 years ago #

    I have done everything mentioned in these posts but I'm still getting the errors.

    I've tried

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    and

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

    in the wp-admin directory.

    If I remove the if tags I get a 500 error, does that suggest that mod_security is not installed? Could there be another reason for this error?

  9. aikidoholic
    Member
    Posted 6 years ago #

    I am also getting this error when trying to edit any pages or posts, I have tried the .htaccess fix suggested in the various topics I've found here on the subject but it doesn't make any difference, does anybody havve any other suggesttions?

Topic Closed

This topic has been closed to new replies.

About this Topic