Tagged: error log
-
AuthorPosts
-
June 28, 2013 at 10:24 am #25387
Hi,
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
June 29, 2013 at 7:00 am #126748Hey!
You can increase the pcre.backtrack_limit and pcre.recursion_limit value in the php.ini – see: http://stackoverflow.com/questions/8268624/php-preg-match-all-limit
Best regards,
Peter
June 29, 2013 at 1:28 pm #126749Hi Peter,
I will try this … thanks for the feedback!
Best regards,
Jan
June 30, 2013 at 6:38 am #126750Hi,
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.Regards,
Ismael
July 1, 2013 at 12:16 pm #126751Hi Ismael,
So this is a template issue?
Regards,
Jan
July 1, 2013 at 3:55 pm #126752Actually 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…
-
AuthorPosts
- The topic ‘Error log’ is closed to new replies.
