• When I selected Overview from the Statistics menu item in the WordPress Dashboard the display of the statistics took somewhere between 30-120 seconds to load. During that time my site was unusable, returning 503 errors when displaying static web pages. In reviewing areas on my site to see what might be going on I found that the log display for the iThemes Security had a lot of notices logged for my IP address with their “404 Detection” against “/wp-admin/admin-ajax.php”. I checked my site and that file exists and has permissions set to 0644. I also attempted to access admin-ajar.php via a browser and there was no error. Note that this issue occurs often but not always so I’m at a loss as to why but running several tests show it’s definitely related to this plugin. I’ve disabled this plugin as it is causing my site to be disrupted while using it so it’s essentially useless.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @wgkrueger
    what your 404 links in your admin page?
    WP-Statistics Admin Pages not use rewrite system. for example:
    {your-site}/wp-admin/admin.php?page=wps_settings_page

    Thread Starter wgkrueger

    (@wgkrueger)

    Hey @mehrshaddarzi

    Thanks for the reply.

    First off I just now see a typo in my original issue text. I mistyped admin-ajar.php. That should read admin-ajax.php. It’s an autocorrect problem, sigh.

    So, in retrospect I think my calling attention to the 404 errors as a main part of my issue may have been a mistake although there are mentions of 404 errors in a log file. The main issue I believe has to do with the use of admin-ajax.php which appears to be a weak link in WordPress. So, let me try to clarify then try to answer your question the best I can.

    1) When I initially installed your plugin the first thing I did was select your Overview Dashboard submenu item. At that point it was where I saw problems. The plugin was taking way too long to display the initial graphs and statistics. By way too long I men on the order of minutes. Now I do realize that the initial screen that opens when your plugin is first installed is one that you display for information and advertising purposes and that screen is NOT the one I am referring to here. It was where I clicked past that 1st only ad screen that I saw the problem.

    2) The screen Overview eventually displayed information so I backed out and tried again, with the same results I saw in #1.

    3) I tried locating the source of the problem and looked into the only log file viewer that I have which is the one that comes with iThemes security. It was there that I saw the 404 errors being logged. I am not seeing a 404 page when I select Overview, I only see it in the log file display of iThemes Security.

    3) While I was trying to troubleshoot this issues I noticed that sometimes the Overview displays came up quickly and there was no corresponding errors in the iThemes Security log file. It makes me think this is one of those pesky timing issues.

    4) I researched issues against admin-ajax.pho in your issue trracker and came upon two hits. One that said they solved the issue by adding in some artificial waits to the code. Clearly this isn’t the best solution since a timung dependent issue is going to be unique to the site/environment.

    To answer your question about linking to the 404 page on the admin page I think that was answered by my reference to the log file viewer in iThemes Security but to restate that I do not get a 404 page. I see a 404 Notice that iThemes Security “404 detection” module reports on. When I go to

    /wp-admin/admin.php?page=wps_settings_page

    on my site I have to login and I then get a page that says:

    “Sorry, you are not allowed to access this page.”

    One thing to note. Our site should not be subject a lot of traffic.

    Let me know if I can help. I’d be glad to turn on debugging or run some test code if you like.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘404 errors when Overview selected’ is closed to new replies.