Tagged: error log
I get the following error log message:
[27-Jun-2013 13:53:28 UTC] PHP Warning: preg_replace() [function.preg-replace]: Compilation failed: regular expression is too large at offset 35192 in /home/…/domains/…/public_html/…/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/template-builder.class.php on line 586
According to the link Dude gave.
That error is not about the performance of the regex, it's about the regex itself. Changing the pcre.backtrack_limit and pcre.recursion_limit isn't going to have any effect because the regex never gets a chance to run. The problem is that the regex is too big, and the solution is to make the regex smaller--much, much smaller.
Actually the last answer refers to the user question. The user describes the error in the first post and the regex stops at the offset 707 830. In your case the offset already stops at 35 192 which seems to be an (uncommonly) low value. We did not receive a similar bug report yet and I guess the reason is because all other users have a better configuration (better pcre.backtrack_limit and pcre.recursion_limit) or your server must cope with a huge amount of data (number of posts, etc.) and 4,384 other users who use this theme don’t reach the limit on their servers…
The topic ‘Error log’ is closed to new replies.