The center for all Wikitravel images!

Tech:NumberOfArticles magic word doesn't work on pl:

From Wikitravel Shared
Jump to: navigation, search

Moved from en:Wikitravel:Bug reports by Evan

What happens[edit]

{{[NUMBEROFARTICLES}} on pl: is still insistently stuck on -1. Specjalna:Statistics seems to work fine though...? Jpatokal 11:45, 13 April 2006 (EDT)

Bump. Still broken, would be nice to fix because correcting this by hand is kinda painful. Jpatokal 06:02, 20 April 2006 (EDT)
Yeah, I wish I could figure out why it does that. --Evan
This appears to be broken in it: also. Jpatokal 14:08, 13 June 2006 (EDT)
OK, I'll look at it. I'll admit I'm stymied; my guess is that it's some kind of interaction with the caching system. Is StatScript still using this, or have you swapped in the action=raw stuff yet? --Evan 14:42, 13 June 2006 (EDT)
I'm still using it. I tested the action=raw thing earlier, but it seemed to require rendering the string "Special:" in the correct locale — but when I just retested it, it now works even when using the English string?! Will try my luck again. Jpatokal 22:25, 13 June 2006 (EDT)
Yay! I fixed it for real! It was a problem with the site_stats table -- it has an ID field, which is by default zero. But the function to do the magic work NUMBEROFARTICLES looks for a row with ID = 1. Updating all the tables to have ID = 1 seems to fix the problem. --Evan 11:42, 22 October 2006 (EDT)
Hoorray!!! Thanks man, now we see that we have already 8 articles in Hungarian Wikitravel. :) - Bujatt 15:27, 22 October 2006 (EDT)

When it happens[edit]

What should happen[edit]

How to fix it[edit]

This seems to have magically fixed itself. Jpatokal 05:23, 29 September 2006 (EDT)