I'm trying to figure out why one of my wikis is having problems with page titles which include the ? character in page titles.
They work just fine on my localhost but when uploaded they will not appear correctly. All the settings appear to be the same in the php.ini file. On the hosted server even when ? is end of a title it still will not show even though the URL indicates it should be there with the %3F.
I'm starting to wonder if the host is running URL requests through some type of sanitizer and blocking characters.
Thoughts appreciated.
Thanks Tom
On Tue, 08 Jan 2013 15:11:54 +0100, Tom tom@hutch4.us wrote:
I'm trying to figure out why one of my wikis is having problems with page titles which include the ? character in page titles.
They work just fine on my localhost but when uploaded they will not appear correctly. All the settings appear to be the same in the php.ini file. On the hosted server even when ? is end of a title it still will not show even though the URL indicates it should be there with the %3F.
I'm starting to wonder if the host is running URL requests through some type of sanitizer and blocking characters.
You might have misconfigured your rewrite rules (I'm assuming you're using pretty URLs). The "official" guide is at https://www.mediawiki.org/wiki/Manual:Short_URL/Apache and it seems to work perfectly for anyone who's been using it.
Nope
Same on local as host and the other 2 wikis on another host that works.
Tom
On Jan 8, 2013, at 10:42 AM, "Matma Rex" matma.rex@gmail.com wrote:
On Tue, 08 Jan 2013 15:11:54 +0100, Tom tom@hutch4.us wrote:
I'm trying to figure out why one of my wikis is having problems with page titles which include the ? character in page titles.
They work just fine on my localhost but when uploaded they will not appear correctly. All the settings appear to be the same in the php.ini file. On the hosted server even when ? is end of a title it still will not show even though the URL indicates it should be there with the %3F.
I'm starting to wonder if the host is running URL requests through some type of sanitizer and blocking characters.
You might have misconfigured your rewrite rules (I'm assuming you're using pretty URLs). The "official" guide is at https://www.mediawiki.org/wiki/Manual:Short_URL/Apache and it seems to work perfectly for anyone who's been using it.
-- Matma Rex
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Perhaps I might have figured out what is going on, just someone a bit more knowledgeable about the table structures to double check me.
page table page_title set to varchar with a collation of UFT-8
on other wikis
page table page_title set to varbinary(255)
Storing the %3F as a ?, could that be the problem because ascii not uft-8 recognizes %3F
This wiki is much older and has been upgraded from original 1.14 to 1.15, then 1.17, then 1.19. I ran the upgrade script after each upgrade.
Thanks
Tom
Oops
ascii not uft-8
Should have been
ascii nor uft-8
Tom
On Jan 8, 2013, at 12:43 PM, Tom Hutchison tom@hutch4.us wrote:
ascii not uft-8
ASCII and UTF-8 are 100% compatible. It's got to be something else, although I have no idea what if it's not the rewrite rules.
UTF-8 is what I meant. Being a little dyslexic today.
Not making myself clear. Trying again.
%3F is a special encoding specific to URL encoding and decoding. ascii nor UTF-8 should matter, it is a hexadecimal value and reserved, % escapes and the 3F is the value for aquestion mark.
What I am trying to figure out is:
does varbinary storage of the page title mean the title is passed differently than varchar in utf-8. Looking at the value in the table I see a ? not the %3F.
This host is a major pain in the you know .... They have such wacky configurationswith their servers. Maybe they have uri encoding/decoding off in eginx? No idea what the heck they are doing there.
If I request:
mywiki.org/wiki/What_is_the_tallest_building_in_the_world%3F_Hint_not_in_NY
The page displays
What is the tallest building in the world
The '? Hint and not in NY' are not in the page title at the top.
No ?, no trailing words...theRead|Edit|View History|/ tabs are all missing, just the Page and Discussion tabs exist.
If I create a page with
mywiki.org/wiki/What_is_the_tallest_building_in_the_world%3F_Hint_not_in_NY
Everything appears normal until I go to view it and back to: What is the tallest building in the world, no ? or trailing text.
Thanks Tom
It is likely the inclusion of the special character '?' in the URL.
Some characters are "unsafe" in a URL (meaning that they may have unpredictable results). See http://www.blooberry.com/indexdot/html/topics/urlencoding.htm#whatwhy
-Brian
On 1/8/2013 9:11 AM, Tom wrote:
I'm trying to figure out why one of my wikis is having problems with page titles which include the ? character in page titles.
They work just fine on my localhost but when uploaded they will not appear correctly. All the settings appear to be the same in the php.ini file. On the hosted server even when ? is end of a title it still will not show even though the URL indicates it should be there with the %3F.
I'm starting to wonder if the host is running URL requests through some type of sanitizer and blocking characters.
Thoughts appreciated.
Thanks Tom _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Thanks but ? Is a safe character and not in the list of unsafe.
Wikipedia uses them just fine.
Thinking it is Nginx and the host config
Tom Sent from my iPhone
On Jan 8, 2013, at 5:44 PM, Bri dev@rlyehable.com wrote:
It is likely the inclusion of the special character '?' in the URL.
Some characters are "unsafe" in a URL (meaning that they may have unpredictable results). See http://www.blooberry.com/indexdot/html/topics/urlencoding.htm#whatwhy
-Brian
On 1/8/2013 9:11 AM, Tom wrote:
I'm trying to figure out why one of my wikis is having problems with page titles which include the ? character in page titles.
They work just fine on my localhost but when uploaded they will not appear correctly. All the settings appear to be the same in the php.ini file. On the hosted server even when ? is end of a title it still will not show even though the URL indicates it should be there with the %3F.
I'm starting to wonder if the host is running URL requests through some type of sanitizer and blocking characters.
Thoughts appreciated.
Thanks Tom _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org