This Forum has been archived

Visit the new Forums
Forums: Index Support Requests Wikia.js page forbidden
Fandom's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.

50px-Replacement filing cabinet.svg

Note: This topic has been unedited for 1897 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.

This might have something to do with the new MediaWiki update, but how come my wikia.js page is apparently forbidden? Bluefire2Talk edit my sig!

21:17, July 5, 2012 (UTC)
Is it what you wanted to have?  Cafeinlove msg 2012/7/6, 08:31 (KST), 23:31 (UTC)
Yes, but Wikia imports on pages for some reason, so nothing works! Bluefire2Talk edit my sig!
05:59, July 6, 2012 (UTC)
This appears to be an issue with the MediaWiki upgrade. For instance, you can see it happening on the Pokemon wiki and Harry Potter wiki here and here, respectively. I also checked and it seems non-1.19 wikis don't have this problem. I'd report this as a bug to Special:Contact if you haven't already done so. 20px_Rin_Tohsaka_Avatar.png Mathmagician ƒ(♫) 06:27 UTC, Fri, 06 July 2012
That's a problem with the fancy, unneeded and bad so-called "pretty urls" that Wikia uses, using Title?action=raw instead of index.php?title=Title&action=raw --Category:Ciencia Al Poder (talk) -WikiDex 11:37, July 7, 2012 (UTC)
I just linked to this thread for the third and possibly not the last time. Apparently some/several/many/all wikis have the exact same problem after the update. An official statement would be welcome! Tagging {{Staff needed}}
 pecoes  14:01, July 12, 2012 (UTC) 

(Reset indent) Apart from User:Xxx/wikia.js this problem also affects MediaWiki:Monobook.css. Maybe all CSS and JS files are affected... --  pecoes  15:43, July 12, 2012 (UTC) 

Somewhere between MW 1.16 and 1.19, support was dropped for accessing the source of JS and CSS files on the wiki through the /wiki/Pagename.css?action=raw url scheme. In 1.19, the only way you can do it is through index.php, eg. /index.php?title=Pagename.css&action=raw. However, Wikia have not updated Oasis to load wikia.js and wikia.css through index.php and they still load through /wiki/, which is why they return a forbidden error and as a result, don't load. This bug is also breaking the Mediawiki:Gadget pages. The bug might exist in Monobook on some wikis, but it definitely is not a sitewide issue like Oasis is. Here's a simple fix which you can put in your Mediawiki:Wikia.js until it gets patched:

/* Fixes user wikia.js and wikia.css files not loading in Oasis after upgrade to MediaWiki 1.19 */
if (!$('script[src*="title=User:' + wgUserName + '/wikia.js"]').length) {
    importScript('User:' + wgUserName + '/wikia.js');
if (!$('link[href*="title=User:' + wgUserName + '/wikia.css"]').length) {
    importStylesheet('User:' + wgUserName + '/wikia.css');

If you want to use it for Monobook, put it in Mediawiki:Monobook.js and replace all mentions of "wikia" with "monobook".

So long story short, Wikia have just derped. Matthew2602 Wall 01:04, July 13, 2012 (UTC)

No, pretty URLs are not completely broken

"That's a problem with the fancy, unneeded and bad so-called "pretty urls" that Wikia uses, using Title?action=raw instead of index.php?title=Title&action=raw"
"In 1.19, the only way you can do it is through index.php, eg. /index.php?title=Pagename.css&action=raw"

Not true. <-- working just fine for me (w:c:terraria:Special:Version). 20px_Rin_Tohsaka_Avatar.png Mathmagician ƒ(♫) 01:14 UTC, Fri, 13 July 2012

Looks like they finally got around to patching it, then. Matthew2602 Wall 01:25, July 13, 2012 (UTC)

That's a lot of bull

It would take me all of two minutes two minutes to program a RewriteRule that "decodes" pretty URLs. Yes, I suppose doing this Wikia-wide would take quite a bit longer, but please don't assume that this a big deal. :P

It was a big deal because it was a breaking bug that existed sitewide. Matthew2602 Wall 01:31, July 13, 2012 (UTC)
It's a show-stopping bug and most definitely a very big deal. But you made it sound like this is some supercomplicated feature that will never come back. And that's kinda bull :P --  pecoes  01:35, July 13, 2012 (UTC) 
The cause behind why wikia.js/css wasn't working was somewhat complicated, but I did say that Wikia just haven't updated it and I did say that the bug is only temporary. Seems like they took the other route and made /wiki/ work again instead of just using index.php. It's nice that they took into consideration that /wiki/ not working might break things other than just wikia.js/css and Mediawiki:Gadget. (if you know what I mean) Matthew2602 Wall 01:40, July 13, 2012 (UTC)
Sorry about the harsh language yesterday! I get a bit irritable when I'm tired. And I get even more irritable when I have to waste so much time with bugs I could fix myself if only they'd let me. That's not your fault of course. So calling your statements "bull" was uncalled for. --  pecoes  08:52, July 13, 2012 (UTC) 


The issue was actually with the URL paramater action=raw, simply we had some sort of disconnect there when we started adding that URL parameter. This was indeed fixed late last week. Please let us know if you are still having forbidden/404 errors with a JS/CSS page. --daNASCAT @fandom 14:44, July 16, 2012 (UTC)