PHP Regular Expression Limit Reached (pcre.backtrack_limit) - Question | JoomShaper

PHP Regular Expression Limit Reached (pcre.backtrack_limit)

BA

Black Business Association

SP Page Builder 20 hours ago

One of our pages show this error everytime we try to open the frontend editor. Others seem to work just fine when we open them. https://bbala.org/ https://bbala.org/edit/32

0
1 Answers
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 19 hours ago #212977

Hi,

The PHP error “Regular Expression Limit Reached (pcre.backtrack_limit)” in Joomla means that the PCRE (regex) engine in PHP has exceeded the backtracking limit while processing a very complex or long regular expression. This is not a Joomla or component bug itself, but a limitation of PHP settings.

Imcrease limit PCRE in PHP by (3 methods):

  1. In php.ini file

    pcre.backtrack_limit = 5000000
    pcre.recursion_limit = 500000
  2. In .htaccess file

    php_value pcre.backtrack_limit 5000000
    php_value pcre.recursion_limit 500000
  3. In cPanel / DirectAdmin

Go to PHP Settings / PHP Options

find pcre.backtrack_limit and set higher value.

Those are system solutions, if above will not work or you prefer this way: contact with Hosting Support they know where & how.


Otherwise, you have to use a back-end editor that uses fewer resources than a front-end editor.

0