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.