Ok, this bug is getting real annoying. I just found out that it was the 
whole cause of why my Sync bots were not working, and I spent hours 
doing debugging I had no need to do.

There is a bug in the setup Wikia uses to redirect wiki. ie: language 
variants. For example where en.ghostintheshell.wikia.com redirects to 
ghostintheshell.wikia.com because the wiki was moved.

The redirect works fine for /wiki urls:
So: http://en.ghostintheshell.wikia.com/wiki/Characters
Nicely redirects to: http://ghostintheshell.wikia.com/wiki/Characters

But the redirect system is absolutely and completely broken for any url 
which uses the /index.php?title= form.
So: http://en.ghostintheshell.wikia.com/index.php?title=Characters
Breaks and redirects you to: http://ghostintheshell.wikia.com which 
leads to http://ghostintheshell.wikia.com/wiki/Main_Page
When it was supposed to redirect to: 
http://ghostintheshell.wikia.com/index.php?title=Characters

Why is this an issue?
CSS links, JavaScript links, and bot links.
Lets move over to the Animepedia for an example for CSS and JS.
I have a global CSS file which a number of wiki include: 
http://anime.wikia.com/wiki/MediaWiki:Anime-Common.css
The form they import with with is: @import 
"http://anime.wikia.com/index.php?title=MediaWiki:Anime-Common.css&action=raw&ctype=text/css&templates=expand";;
However, this is after a move from en.anime to anime. The wiki used to 
be en.anime.wikia.com, and every last wiki was using the old url at that 
point.
So the forms were all: @import 
"http://en.anime.wikia.com/index.php?title=MediaWiki:Anime-Common.css&action=raw&ctype=text/css&templates=expand";;
As you'll see if you go there, that now redirects to the main page of 
the Animepedia.
What would have happened if I had not changed en.anime to anime on half 
a dozen wiki? Every last use of the shared CSS would have broken just 
because we had the url of the wiki improved to the new common format.

And as for bot links... That was particularly annoying. My 
ghostintheshell family file was still using the old 
'en.ghostintheshell.wikia.com' form, which later changed to 
ghostintheshell.wikia.com without me knowing at that point to change my 
family file.
Thing is, because of this broken redirect system, every time that 
pywikipediabot tried to look for the MediaWiki messages at:
http://en.ghostintheshell.wikia.com/index.php?title=Special:Allmessages&redirect=no&ot=php
It got the wiki's main page instead of 
http://ghostintheshell.wikia.com/index.php?title=Special:Allmessages&redirect=no&ot=php
 
which it should have got. Because of this I got a message from the 
framework saying that it could not find any messages on the Allmessages 
page, and as a result my sync bot was completely broken and I had no way 
to find out what the issue was, short of editing the wikipedia.py file 
and doing a bunch if painful debugging just to find out what the output 
was and what it was looking for.
Thing is, this should have never had happened, because the url was a 
good one, and should have just redirected to the correct page.

--
~Daniel Friesen(Dantman) of:
-The Gaiapedia (http://gaia.wikia.com)
-Wikia ACG on Wikia.com (http://wikia.com/wiki/Wikia_ACG)
-and Wiki-Tools.com (http://wiki-tools.com)

_______________________________________________
Wikia-l mailing list
[email protected]
http://lists.wikia.com/mailman/listinfo/wikia-l

Reply via email to