Jump to content

Topic on Project:Support desk

Error 406 on some sites

7
2A01:598:81BF:CC7E:3A43:290E:591A:4028 (talkcontribs)

Hi, I'm only an end user but suffer from the problem to be unable to edit quite a few of my pages, there's an error 406. Forum: https://organindex.de

Software Version MediaWiki 1.34.1 PHP 7.4.22 (fpm-fcgi) MySQL 5.7.34-37-log ICU 65.1

I even created a list of those faulty pages: https://organindex.de/index.php?title=Kategorie:Defekt

Any clue what's going on here? Thansk! Martin

Bawolff (talkcontribs)

406 is an unusual error. Assuming it is happening on normal web browsers, i would say server misconfiguration (probably not at the mediawiki layer but at the webserver layer)

2A01:598:B9A9:505:1124:2323:6CD4:F43E (talkcontribs)

Thanks. These error message indeed redirects (here, oh, I triggered the abusefilter here ("linkspam"), please google "easyname+faq+406", also in english). Probably a firewall problem. But only a few sites are affected, for the majority there is no problem. And the blocking for edits seems to bei inifinite. Is it possible that only "heavy users" (as I am) are affected? What could have lead to this? Too many hits? Is the solution to turn the firewall off? Thanks again.

TheDJ (talkcontribs)

If I look at your list, it seems that all pages that are not editable seem to be page titles with a comma in them, which seems like a likely culprit. There might be a rule somewhere in your web server that is not properly query parameters with comma's in it, for whatever reason. This is very particular to your web server setup and/or hosting platform, so without details on that it's very difficult to say.

I suggest you get my theory for confirmation and then try to work from that, slowly going through each of the layers of your server to then pinpoint the layer that is messing up.

2A01:598:81BA:B9DD:1E45:435:5ED:E4A9 (talkcontribs)

No, the commas are not the culprit, we have them regularly in the titles. But it's of help to know that it is not related to mediawiki but the server config. I also thought that perhaps a faulty backup could have caused this? I see no rule whether a site is affected or not. The problem is I'm not an admin there and so can't investigate further. But I collect your tips for forwarding. Martin

89.244.118.114 (talkcontribs)

Anyone?

80.187.105.91 (talkcontribs)

Ah, I just noticed: the problem are linked external sites with PHP (or some other skripts).

E.g. http[s]://www.euleorgelbau.de/front_content.php?idart=106 but also (afaics) htt[p]://orgbase.nl/scripts/ogb.exe?database=ob2&%250=2008372&LGE=NL&LIJST=lang (rmeove brackets, I got a linkspam block)

If they are removed all is fine (as it was on creation date!) Is this perhaps a server security feature setting? It has really nothing to do with mediawiki. But I have no clue in this thematics.. Martin

Reply to "Error 406 on some sites"