• Resolved KhidhaBoy

    (@khidhaboy)


    Hi,

    I’ve got 2 sites on the same server both were moved from other server and were running iThemes Security happily.

    The move consisted off clean WP installs and backup + restore databases so that I could keep all existing data and settings…

    Since the move I’ve noticed that one site throws the following error whenever I try and tweak the settings..


    A “not found” error prevented the request from completing as expected. The server returned a 404 status code, indicating that the server was unable to find the requested admin-ajax.php file. This could be due to a plugin/theme conflict, a server configuration issue, or an incomplete WordPress installation. Please try refreshing the page and trying again. If the request continues to fail, you may have to alter plugin settings, alter server configurations, or reinstall WordPress.

    The other doesn’t throw any errors but neither are updating the .htaccess file correctly.

    For instance: When I try to enable the “hide backend” feature – the .htaccess file is NOT being updated.

    But if I de-activate the iThemes Security plugin – the .htaccess file is cleaned up (settings removed). When I enable the plugin again – it writes a bunch of rules into the .htaccess file…I believe these might be ones that were in the DB during cloning?

    BTW.. I have disabled ALL plugins + switched to TwentySeventeen theme and still makes no difference.

    Spoke to Host and they can’t see any issues
    – /wp-admin/admin-ajax.php is there and is 644.

    I’ve even deleted the plugin and installed fresh but I’m guessing some of the rules are stored in the db tables?

    How can I completely delete the plugin & settings…

    Btw – I’ve even noticed the “hide backend” feature not writing to the .htaccess file on a fresh install with no other plugins…

    Any clues please?

    • This topic was modified 7 years, 8 months ago by KhidhaBoy.
Viewing 1 replies (of 1 total)
  • Thread Starter KhidhaBoy

    (@khidhaboy)

    Just thought I’d post my fix incase it benefits someone else in the future.

    Update:
    When I was updating iThemes security settings I was getting…

    not_found on settings update – 404 on /wp-admin/admin-ajax.php

    My issue I believe was related to me cloning and moving my site to another server… So I figured I need to Completely Delete the plugin and ALL settings.
    This is how I did it;

    1) Make a note of any specific existing iThemes Security settings you already have – as you may need these later.

    2) De-Activate and delete iThemes Security plugin

    3) Back up your Database or at least the tables below!

    4) In the DB – delete the 3 itsec tables (itsec_lockouts, itsec_log, itsec_temp)

    5) In the DB -> wp_options table -> Search for “%itsec%” on the column “option_name”.
    This should return back a load of rows to do with various saved options/settings for the plugin. Select and Delete these rows.

    Now you should have no historical settings for the plugin.

    6) Download & Activate a fresh/latest copy of iThemes Security and redo your settings from a clean fresh start.

    Hope that was useful!

    p.s re: Hide Backend feature – ignore this was a change in the way the actual plugin now handles “Hide Backend”…

    • This reply was modified 7 years, 7 months ago by KhidhaBoy.
Viewing 1 replies (of 1 total)
  • The topic ‘not_found 404 error on settings update’ is closed to new replies.