Topic on Project:Support desk

Login required redirect

4
2607:FEA8:AA20:2EF8:8930:6833:60BB:3308 (talkcontribs)

Hello! I've set up MediaWiki 1.34 on my website as a private wiki, meaning a login is required before viewing any content. When I log in, it redirect me to the Main Page, but the log in requirement is still there. I know my credentials are correct, so I can't seem to figure out why the wiki is not registering the fact that I am logged in.

2607:FEA8:AA20:2EF8:8930:6833:60BB:3308 (talkcontribs)

To add on, I request the page: index.php?title=Main_Page so I'm shown the "Login required" page., please log in to view other pages. When I click "log in" I am sent to index.php?title=Special:UserLogin&returnto=Main+Page. I enter my username and password and click on the login button. Then I'm sent to index.php?title=Main_Page but still shown "Login required" page

No matter how many times I try to log in, I can't see the contents of any page. Even after refreshing or directly going to any page though the URL, it still brings me to the login page. I know my site is nowhere near capacity of storage and tooling around with cache settings in the LocalSettings.php doesn't seem to make a difference.

I have this same issue on any browser on any device.

Bawolff (talkcontribs)

when you are redirected, does mediawiki show your username in top right corner (indicated you are logged in but still getting the error vs not logged in at all)?

just to confirm, you are not using any authentication extensions or other non standard authentication related config?

Just to eliminate possibilities, check to see if anything is in your php error log. Also enable mediawiki debug log ($wgDebugLogFile ="somepath.txt" make sure debug file path chosen is somewhere aritable by the webserver) and post the contents from log in and redirect to a pastebin.

You could try setting $wgSessionCacheType = CACHE_DB; in LocalSettings.php (was that one of the cache settings you tried? Usually though if that is the issue you get an error not silent failure), see if that changes anything.

2607:FEA8:AA20:2EF8:8930:6833:60BB:3308 (talkcontribs)

Thanks for the reply @Bawolff. After logging in and being redirected, I always see "Log in" in the top-right instead of my username.

I am not using any authentication extensions or configurations, it's a clean install of MediaWiki selected as a "private wiki".

I have a Pastebin of the debug of what I believe is the login portion located at /2hww1rxG

I've added $wgSessionCacheType = CACHE_DB; into my local settings. Unfortunately it likely doesn't seem to be a factor with this issue as nothing changes (even when testing on maple devices).

Reply to "Login required redirect"