Just wanted to share an error I came across, and a possible solution. Being my ignorance so great, I probably made some nonsense, but oh well... Maybe the bugtracker is the place for it, but I can't be bother to make another registration there (as my registration here doesn't seem to work there). Anyway...
Everytime I saved a page, the following error would be repetead a dozen times in the browser window:
Warning: preg_match() [function.preg-match]: Compilation failed: repeated subpattern is too long at offset 17093 in /usr/share/dokuwiki/inc/common.php on line 391
I read the PHP manual for the preg_match function (
http://es.php.net/function.preg_match), and turns out preg_match does choke on long strings. They also say that if one only tries to see if a substring is present in a string, the substr function is more efficient. So I opened the /usr/share/dokuwiki/inc/common.php file, went to line 391, commented it out, and put subst instead of it, like that:
/*if( preg_match('#('.join('|',$re).')#si',$TEXT, $match=array()) ) {*/
if( strpos('#('.join('|',$re).')#si',$TEXT, $match=array()) ) {
Now it seems to work like a charm... but I still don't know if I broke something...
Hope it helps.