Mattyl

Registered
Jul 31, 2023
3
1
3
Baza
cPanel Access Level
Root Administrator
Hi
I have had an annoying issue over the last 24 months which i have finally got round to posting - My users with self installed wordpress applications - sometimes when they login to their wordpress admin results in a 404.
If they use a direct link eg wp-admin/index.php works fine
but the links eg wp-admin/
gets a 404
Clearing the nginx cache resolves the issue immediately.
Its very annyoing and difficult to explain to users, who's admins dont want to login to cpanel first! We have had to turn off nginx for many wordpress users as its jsut easier.
But thats very unsatisfactory.
Does anyone know a way around this?
99% of the time its all working fine, its just the cache occasionally.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
17,469
2,842
363
cPanel Access Level
Root Administrator
Hey there! Do they have anything after the wp-admin portion of the URL? If they are accessing a specific page it's possible that would be cached.

The only issue I'm aware of with WordPress at this time is one we fixed early on, where the admin bars weren't showing up with nginx enabled: SOLVED - EA-9902 - nginx and WordPress admins...

If you have a way we can reproduce this issue I'd be happy to do some testing on my end.
 

Mattyl

Registered
Jul 31, 2023
3
1
3
Baza
cPanel Access Level
Root Administrator
Hi
The issue seems largely when there is nothing after the wp-admin - instead of the dashboard the users are redirected to a 404
However if they write manually wp-admin/index.php it seems to work.
This issue is intermittent and i cannot reprodcue at will - however i have seen it across two servers (both cent os) and over 10 different wordpress applications.
Once the cache is cleared the issue goes away for what seems quite a while. Its annoying and resolved by turning off nginx for those accounts - these wordpress accounts will tend to use wp-cache as a plugin in case thats a factor. Clearing the plugin cache does nothing.
As this seems to effect a lot of wordpress sites - i was hoping others had seen it and reported it.
Best regards
Matt
 

Mattyl

Registered
Jul 31, 2023
3
1
3
Baza
cPanel Access Level
Root Administrator
OK I´ll come back when this occurs again (as it will) - hopefully the thread will attract likewise effected users - took me 18 months to get annoyed enough to post here.
 
  • Like
Reactions: cPRex