Last modified: 2012-04-16 09:15:57 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 T30348, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28348 - Template weirdness on pl.wiki
Template weirdness on pl.wiki
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Aaron Schulz
http://pl.wikipedia.org/wiki/Break_%2...
: shell
Depends on:
Blocks: 29876
  Show dependency treegraph
 
Reported: 2011-03-31 15:46 UTC by Beau
Modified: 2012-04-16 09:15 UTC (History)
4 users (show)

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


Attachments

Description Beau 2011-03-31 15:46:52 UTC
We have noticed on pl.wiki weird problem with template Klawiaturka (http://pl.wikipedia.org/wiki/Szablon:Klawiatura).

It shows up only for anonymous users, it can be observed on
* http://pl.wikipedia.org/wiki/Break_%28klawisz%29 (parser cache key: plwiki:stable-pcache:idhash:1208619-0!*!0!!*!4 and timestamp 20110331153036)
* http://pl.wikipedia.org/wiki/Insert

There is an issue with image 'File:KB United States.svg', which is not shown on those pages. There is a red warning 'Błąd – grafika jest niepoprawna lub nie istnieje', which informs that file is invalid or does not exist.

Purging the page does not help. Performing a null edit (which does not change the content of article) does not help. Editing the template (should invalidate cached pages) does not help. Only edit changing the article fixes the problem.

Is there a way to find broken pages and drop invalid cache entries automatically? There can be more affected templates.
Comment 1 Mark A. Hershberger 2011-03-31 18:44:36 UTC
seems like something people with shell would be needed for, but I'm open to being proved wrong ;)
Comment 2 Chad H. 2011-04-01 02:54:22 UTC
Perhaps this was transient? I can't seem to replicate while logged in or out.
Comment 3 Aaron Schulz 2011-04-01 19:32:09 UTC
(In reply to comment #2)
> Perhaps this was transient? I can't seem to replicate while logged in or out.

I can. http://pl.wikipedia.org/w/index.php?title=Break_%28klawisz%29&stableid=24737756 has a red link logged in or out.
Comment 4 Aaron Schulz 2011-04-01 20:13:23 UTC
aaron@fenari:~$ php runQuery.php plwiki
object(stdClass)#21 (4) {
  ["fi_rev_id"]=>
  string(8) "24737756"
  ["fi_name"]=>
  string(20) "KB_United_States.svg"
  ["fi_img_timestamp"]=>
  string(14) "20101227075724"
  ["fi_img_sha1"]=>
  string(31) "s2t6ksa4iljchijevo98mj9pbn418dz"
}

aaron@fenari:~$ php runQuery.php commonswiki
object(stdClass)#21 (2) {
  ["img_sha1"]=>
  string(31) "s2t6ksa4iljchijevo98mj9pbn418dz"
  ["img_timestamp"]=>
  string(14) "20101227075725"
}

Somehow the fi_img_timestamp is too small by 1.
Comment 5 Aaron Schulz 2011-04-02 16:52:52 UTC
Should be fixed in r85199.
Comment 6 Aaron Schulz 2011-04-02 16:54:34 UTC
(In reply to comment #5)
> Should be fixed in r85199.

This is not retroactive though. I'll look into a cleanup script. Actually, re-opening as a reminder for that.
Comment 7 Aaron Schulz 2011-04-02 18:00:42 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > Should be fixed in r85199.
> 
> This is not retroactive though. I'll look into a cleanup script. Actually,
> re-opening as a reminder for that.

Script added in r85202. I can't run it now since findFileFromKey() isn't in 1.17.
Comment 8 Aaron Schulz 2011-04-03 00:32:37 UTC
Are there any other known effected files? It should be very unlikely for there to be that many.

Pages can be fixed by de-approving and re-approving again.
Comment 10 Mark A. Hershberger 2011-07-13 19:19:07 UTC
Giving this to Aaron so he can run his script.
Comment 11 Aaron Schulz 2011-10-24 17:29:22 UTC
(In reply to comment #10)
> Giving this to Aaron so he can run his script.

Script is done.

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


Navigation
Links