Hi
I'm sure I've seen somewhere the parameter for the number of template call in one page (default is 5)... I need to set it to a greater number on my personal wiki, but can't find where I have to change that.
Thanks the solution
Fxparlant (françois)
On Fri, May 27, 2005 at 08:59:41PM +0200, FxParlant wrote: # Hi # # I'm sure I've seen somewhere the parameter for the number of template # call in one page (default is 5)... I need to set it to a greater number # on my personal wiki, but can't find where I have to change that.
IIRC versions >=1.4 will allow you to repeat as many times as you want.
HTH, -Sam
Sam Rowe wrote in gmane.org.wikimedia.mediawiki:
On Fri, May 27, 2005 at 08:59:41PM +0200, FxParlant wrote: # I'm sure I've seen somewhere the parameter for the number of template # call in one page (default is 5)... I need to set it to a greater number # on my personal wiki, but can't find where I have to change that.
IIRC versions >=1.4 will allow you to repeat as many times as you want.
yes. if you are still using 1.3, it's at the top of includes/Parser.php, but you should really upgrade...
HTH, -Sam
kate.
On 27/05/05, FxParlant f-x.p@laposte.net wrote:
I'm sure I've seen somewhere the parameter for the number of template call in one page (default is 5)... I need to set it to a greater number on my personal wiki, but can't find where I have to change that.
I had thought this limit had been abolished some time ago due to better protection against abuse of recursive templates and the like, but it looks like it's just been increased to 100 so that it's no longer likely to be reached in practice.
As I'm sure you're bored of being told, I don't think 1.3.x is "supported" any more, so an upgrade to 1.4 would be a way of getting this fix and much more.
But anyway, the answer is that it's a constant called 'MAX_INCLUDE_REPEAT' defined at the top of includes/Parser.php.
Happy Hacking!
Rowan Collins wrote:
On 27/05/05, FxParlant f-x.p@laposte.net wrote:
I'm sure I've seen somewhere the parameter for the number of template call in one page (default is 5)... I need to set it to a greater number on my personal wiki, but can't find where I have to change that.
I had thought this limit had been abolished some time ago due to better protection against abuse of recursive templates and the like, but it looks like it's just been increased to 100 so that it's no longer likely to be reached in practice.
As I'm sure you're bored of being told, I don't think 1.3.x is "supported" any more, so an upgrade to 1.4 would be a way of getting this fix and much more.
But anyway, the answer is that it's a constant called 'MAX_INCLUDE_REPEAT' defined at the top of includes/Parser.php.
Note that there were good reasons for limiting inclusions to a small number in 1.3. Changing the constant won't remove those reasons, it'll just cause performance problems and leave you open to DoS attacks. Upgrading to 1.4 will fix the problem entirely.
-- Tim Starling
Thanks to all,
But I've so much hacked the wiki (especially allowing html and xml, and so many things http://www.fxparlant.net/Category:Mediawiki ) that I'm waiting for 1.5 to come to start the herculian job of upgrading... Hope I'm not virused before :-)
Thanks François
mediawiki-l@lists.wikimedia.org