[Mediawiki-l] can't get custom css codes to work?

inhahe inhahe at gmail.com
Mon Jun 15 02:15:25 UTC 2009


On Sun, Jun 14, 2009 at 9:20 PM, Platonides <Platonides at gmail.com> wrote:

> inhahe wrote:
> >>> so i looked at the source code of a page to see where common.css is
> >>> included, and tried navigating directly to that link
> >>> the link contains "action=raw", but when i navigate to it i get the
> same
> >>> thing as when i navigate to [[MediaWiki:Common.css]] rather than the
> raw
> >>> text.
> >>> so that might be why the code isn't working, but i don't know why it's
> >> doing
> >>> that.
> >>> i also tried putting the css code at the bottom of shared.css, but
> >> nothing
> >>> happened there either.
>
>
> You're getting the "Raw pages must be accessed through the primary
> script entry point." error, despite using ugly urls.
>
> http://inhahe.kicks-ass.net:8000/index.php?title=Main_Page&action=raw
> should *never* be giving that error.
> Are you doing some kind of url rewriting?
>

ok, so i put this in the first line of index.php:

$fh = fopen("debug.txt","a");
fwrite($fh, $_SERVER['REQUEST_URI'] . "\n");

then i went to http://localhost:8000/index.php?title=Main_Page

here's what went into debug.txt:

/index.php?title=Main_Page
/index.php?title=MediaWiki:Print.css&usemsgcache=yes&ctype=text%2Fcss&smaxage=18000&action=raw&maxage=18000
/index.php?title=MediaWiki:Common.css&usemsgcache=yes&ctype=text%2Fcss&smaxage=18000&action=raw&maxage=18000
/index.php?title=MediaWiki:Monobook.css&usemsgcache=yes&ctype=text%2Fcss&smaxage=18000&action=raw&maxage=18000
/index.php?title=-&action=raw&maxage=18000&smaxage=0&ts=20090614214425&gen=css
/index.php?title=-&action=raw&smaxage=0&gen=js&useskin=monobook

then i went to
http://inhahe.kicks-ass.net:8000/index.php?title=Main_Page&action=raw

and here's what it put in debug.txt

/index.php?title=Main_Page&action=raw

so i guess abyss isn't doing anything weird to it..


More information about the MediaWiki-l mailing list