On Wed, 09 Feb 2005 20:16:11 +0100, Daniel K. DKml@xs4all.nl wrote:
Perhaps I hit another one here: I have used this template about 10 times in one page. After the fifth time it suddenly stops working, end then it echos just _Template:Cmd_ , but it does not expand.
Versions of MediaWiki prior to 1.4 use[d] an arbitrary constant (MAX_INCLUDE_REPEAT, with the default value 5, at the top of includes/Parser.php) to limit the number of times the same template could appear on a page. This was primarily a kludge to avoid the possibility of someone including a template in itself and thus causing infinite recursion. Version 1.4 includes proper protection against such an attack, and therefore has no such arbitrary limit.
A somewhat rambling bug report which tracked this issue is at http://bugzilla.wikimedia.org/show_bug.cgi?id=95
Workaround: increase the constant; true solution: upgrade to version 1.4 (still officially in beta, but happily running all Wikimedia sites for many weeks now).