Hi,
I've just installed the wikimedia engine on our apache server; all works fine, except the CSS stuff isn't rendered in Firefox 1.0.5 for the Mac, and Firefox 1.0.7 for Windows. Firefox 1.0.6 for Windows works fine, as does Safari and IE.
We already have the line "text/css css" in mime.types, and just to be safe I added the line "AddType text/css .css" to httpd.conf.
Here's where it gets weird. There's a developer toolbar in Firefox that lets you play with the CSS info for a page; when I load the page into that (using the "edit css" menu option), the style info suddenly appears.
Any help would be appreciated for this somewhat minor but still annoying problem!
Thanks, Chris Braiotta Systems Engineer Network Operations Center Harvard University
Chris Braiotta wrote:
I've just installed the wikimedia engine on our apache server; all works fine, except the CSS stuff isn't rendered in Firefox 1.0.5 for the Mac, and Firefox 1.0.7 for Windows. Firefox 1.0.6 for Windows works fine, as does Safari and IE.
1) Clear caches and double-check.
2) Install the Live HTTP Headers extension for Firefox, and confirm that the correct content-type is sent.
-- brion vibber (brion @ pobox.com)
I accidentally deleted the message from the guy who responded, but he got me on the right track and I wanted to acknowledge it. In case anyone comes across the same problem, I thought I'd pass along my fix.
I did, indeed, have the server set to send .css files as test/css. Unfortunately, I also had apache set up to parse all .css files through the PHP engine for various reasons. This had the effect of overriding the AddType directive. The fix I applied was to add the following statement to the very top of the problem CSS file
<?php header('Content-type: text/css') ?>
mediawiki-l@lists.wikimedia.org