Topic on Project:Support desk

Keeps getting logged out on File-pages

11
213.100.163.201 (talkcontribs)

Hello,

So I've got a really irritating problem here. I have a small private wiki, and everything works just fine, except that I can't access the File:-pages. However, I can upload just fine.

On the Filelist-specialpage, I see all my uploaded files – and I can even click on the "file"-link to open it, but if I click on the title I just get a prompt "You have to log in to view other pages". Even though I'm already logged in.

If I click on the log in, it directs me to the login screen with the text "You are already logged in as X, but you can log in as another user".

I'm running MediaWiki 1.23.2, with the "private" MediaWiki permissions.

Any help would be much appreciated.

Florianschmidtwelzow (talkcontribs)

Hmm, strange :/ What is, if you try to access to talk page of a file (File_talk:Filename.ext)? Have you some old lines of Manual:$wgNamespaceProtection in your LocalSettings.php, maybe?

88.130.81.95 (talkcontribs)

Are the file pages in the same wiki or are they actually located in a different wiki? That would explain why you are not logged in there, while in the normal wiki you still are...

213.100.163.201 (talkcontribs)

Thank you so much for taking your time to try and help me out.

But no, I do not have the $wgNamespaceProtection parameter in my LocalSettings.php. This is a fresh install from 1.23.2 directly, so I don't think I should have any legacy stuff laying around.

I've uploaded my LocalSettings.php here http://pastebin.com/DFWqgFu6 if anyone wants to take a look.

213.100.163.201 (talkcontribs)

Okay, after spending multiple hours on this, I find a "solution". If I open up the entire Wiki to be readable, with "$wgGroupPermissions['*']['read'] = true;". Then I can access the File-namespace. If I set $wgGroupPermissions to "read" for any other user group, it still locks you out from the File-namespace no matter what.

But that is something I really don't want to do, the idea for this Wiki is to keep it closed.

Florianschmidtwelzow (talkcontribs)

I have tested it with MW 1.24 and your configuration, and there is no problem with accessing File: pages :/ Can you use ?action=purge please? Just an idea.

213.100.163.201 (talkcontribs)

Thanks for your help again. However, purge doesn't do it either... =(

It's so weird – I can upload the files just fine, but once it's uploaded it just redirects me to the login screen.

I can see all my files in the filelist, and open the file itself – just not the title=File:-namespace.

I've tested all other namespaces, and they are just fine.

213.100.163.201 (talkcontribs)

Okay, another update (help is still needed).

So far I have put down around 14-20 hours trying to fix this annoying issue. Anyhow, I tried with fresh installations on a VPS and locally, and everything worked just fine.

So I did a new fresh install on the current host. Still, same problem... The problem is that I am kind of locked in with this particular host on this project – I can't switch to another VPS or the like.

What is even more odd than my previous issues was that I installed the MobileFrontend extension, and if I view a file in the File-namespace with the mobile view, it works...! How odd is that?!

I really need some help with this, and I am willing to put down a bounty to whoever gives me information on how to solve this.

88.130.76.146 (talkcontribs)

Do you have a cookie problem? IIrc, your login is stored in a cookie and MediaWiki again recognizes you based on this cookie. Before you visit a File: page, the cookies obviously are still there, but when you visit one you loose them. Is that right?

If so, you should check, why this is happening...

Florianschmidtwelzow (talkcontribs)

If this happens, it's really strange, because, if he click on login, he becomes the message, that he is logged in already. That's only possible, if there is a valid session and a user logged in :)

Reply to "Keeps getting logged out on File-pages"