Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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

    #126748

    Hey!

    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

    #126749

    Hi Peter,

    I will try this … thanks for the feedback!

    Best regards,

    Jan

    #126750

    Hi,

    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

    #126751

    Hi Ismael,

    So this is a template issue?

    Regards,

    Jan

    #126752

    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…

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Error log’ is closed to new replies.