Last modified: 2004-08-21 23:18:18 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 T2055, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55 - Templates do not get expanded more than 5 times per page
Templates do not get expanded more than 5 times per page
Status: CLOSED DUPLICATE of bug 95
Product: MediaWiki
Classification: Unclassified
Templates (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2004-08-15 15:41 UTC by Alan Barrett
Modified: 2004-08-21 23:18 UTC (History)
0 users

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


Description Alan Barrett 2004-08-15 15:41:33 UTC
If the same template is used many times on the same page, then only the first five 
instances are expanded.  This is especially bad for the [[en:Wikipedia:Vandalism in 
progress]] page, where the {{Vip}} template is used many times.

I believe that the 5-expansions limit is intended to prevent infinite recursion.  
Please replace it with a better method that prevents recursion without placing 
arbitrary limits on the number of template expansions.
Comment 1 Antoine "hashar" Musso (WMF) 2004-08-15 20:08:46 UTC
This is actually working as intended. MediaWiki got a hard limit set to 5
template inclusions (MAX_INCLUDE_REPEAT).

The purpose is to prevent recursive / massive inclusions. A patch should
probably be made to
better fix this security trouble.
Comment 2 SJ 2004-08-16 01:01:00 UTC
A problem, for instnce, on en:ViP (where a bizarrely complex template is
suggested for use with every report).
Comment 3 SJ 2004-08-18 23:02:39 UTC

*** This bug has been marked as a duplicate of 95 ***

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