[pmwiki-users] Long tekst

Petko Yotov 5ko at 5ko.fr
Tue Apr 7 12:14:50 CDT 2009


On Tuesday 07 April 2009 11:23:40 Merijn Hofland wrote:
> Hi,
> I got a text of 6877 lines
> added 2 lines [@ at begin and @] at end
> pmwiki refuses to display it and cleans my whole code
> What can it be?
> is there a maximum of lines?

PmWiki tries to set a large limit - 1 MB - of text that could be processed in 
the markup engine, and if your text is larger, you have two options:

1. Add to config.php this line

   ini_set('pcre.backtrack_limit', 1000000*2); # *2 = twice the PmWiki default

   This may be impossible in some PHP installations. (In that case, the limit
   might be even lower than 1MB, and you may see some error messages.)

2. You could place several [@...@] around a number of smaller chunks of your
   text, with each chunk hopefully staying below the limit of your system.

Thanks,
Petko



More information about the pmwiki-users mailing list