Last modified: 2013-02-20 21:28:51 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T44858, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 42858 - Vector CSS rule for behavior points to a non-existent file due to versioned path - $wgLocalStylePath misconfigured?
Vector CSS rule for behavior points to a non-existent file due to versioned p...
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Site requests (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Sam Reed (reedy)
http://en.wikipedia.org/wiki/?useskin...
: shell
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-12-08 11:43 UTC by Jesús Martínez Novo (Ciencia Al Poder)
Modified: 2013-02-20 21:28 UTC (History)
6 users (show)

See Also:
Web browser: Internet Explorer
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Jesús Martínez Novo (Ciencia Al Poder) 2012-12-08 11:43:59 UTC
Viewing Wikipedia with vector skin has the following HTML right before the end of the ending </head> tag:

 <!--[if lt IE 7]><style type="text/css">body{behavior:url("/w/skins-1.21wmf5/vector/csshover.min.htc")}</style><![endif]-->

That points to http://en.wikipedia.org/w/skins-1.21wmf5/vector/csshover.min.htc which responds with a HTTP 404/Not found error

This HTML is inserted at function initPage in Vector.php:

 // Append CSS which includes IE only behavior fixes for hover support -
 // this is better than including this in a CSS fille since it doesn't
 // wait for the CSS file to load before fetching the HTC file.
 $min = $this->getRequest()->getFuzzyBool( 'debug' ) ? '' : '.min';
 $out->addHeadItem( 'csshover',
 	'<!--[if lt IE 7]><style type="text/css">body{behavior:url("' .
 		htmlspecialchars( $wgLocalStylePath ) .
 		"/{$this->stylename}/csshover{$min}.htc\")}</style><![endif]-->"
 );


So maybe $wgLocalStylePath is misconfigured in WMF.

That "behavior:..." in the CSS rule only affects Internet Explorer, but if the problem is $wgLocalStylePath then the problem can affect other parts of the site.

Note that if instead of http://en.wikipedia.org/w/skins-1.21wmf5/vector/csshover.min.htc we get http://en.wikipedia.org/w/skins/vector/csshover.min.htc , the file exists there. Other MediaWiki installations outside WMF has the correct location of that file
Comment 1 Andre Klapper 2013-01-04 16:46:05 UTC
Confirming for http://en.wikipedia.org/wiki/?useskin=vector
Comment 2 Sam Reed (reedy) 2013-02-03 17:58:47 UTC

*** This bug has been marked as a duplicate of bug 44570 ***
Comment 3 Jesús Martínez Novo (Ciencia Al Poder) 2013-02-03 18:43:12 UTC
(In reply to comment #2)
> 
> *** This bug has been marked as a duplicate of bug 44570 ***

Sam, could you please confirm if it's really a duplicate of bug 44570 ?

bug 44570 happens on cached content (if I haven't understood it wrong). What happens on Wikipedia doesn't seem a cache problem. The report was from nearly 2 months now and is still reproducible, even with action=purge, debug=true and logged in.

I doubt caching takes too long (and if it takes, then we have a big problem here).

Reopening for now.
Comment 4 Sam Reed (reedy) 2013-02-20 19:05:02 UTC
reedy@fenari:~$ mwscript eval.php enwiki
> echo $wgLocalStylePath;
/w/skins-1.21wmf9


<script src="//bits.wikimedia.org/geoiplookup"></script><link rel="dns-prefetch" href="//meta.wikimedia.org" /><!--[if lt IE 7]><style type="text/css">body{behavior:url("/w/skins-1.21wmf9/vector/csshover.min.htc")}</style><![endif]--></head>

It's the same bug. Loading the main page logged in or logged out, I don't get any wmf5 resources

Just because a page isn't served directly from a higher up cache (squid), doesn't mean lower stuff (e.g parser cache) aren't cached either.

*** This bug has been marked as a duplicate of bug 44570 ***
Comment 5 Sam Reed (reedy) 2013-02-20 20:58:47 UTC
Yup, you're right, sorry.

Fixed in https://gerrit.wikimedia.org/r/50048

The problem is now a caching issue, with squid caching the 404s
Comment 6 Jesús Martínez Novo (Ciencia Al Poder) 2013-02-20 21:28:51 UTC
Looks resolved now. on en.wikipedia.org and mediawiki.org the generated HTML points to static- instead of skins-

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links