1

I am using Joomla and getting this error on a page of my site

Error Message :

0 - PHP regular expression limit reached (pcre.backtrack_limit)

I have searched on google and found few solutions like add these two lines on joomla's root index.php file or on configuration.php file

ini_set('pcre.backtrack_limit',1000000);
ini_set('pcre.recursion_limit',1000000);

but didn't work for me. So can you please help me ? Thanks.

Atul Soni
  • 11
  • 3
  • Welcome to StackOverflow! please read [how to ask](http://stackoverflow.com/help/how-to-ask) – Pedro Lobito Oct 10 '15 at 18:24
  • Hello Pedro, Sorry but i am getting second time this thing "How to Ask". Sorry for that. But can you please help me to resolve this issue ? – Atul Soni Oct 10 '15 at 18:26
  • I think question's format is OK :) – Eray Oct 10 '15 at 18:27
  • Question doesn't have the error or any code. – chris85 Oct 10 '15 at 18:29
  • I have no knowledge about Joomla so I need to ask. You are adding thene ini_set() lines to top of your bootstrap file (it's probably configuration.php file) right? Also if you have any caching plugin, disable it or flush cache – Eray Oct 10 '15 at 18:30
  • i have added a screenshot as well as url of site where i am getting the error – Atul Soni Oct 10 '15 at 18:31
  • You realize that we can't access that page right? Most likely it's because we're not members of that site. – frosty Oct 10 '15 at 18:31
  • @AtulSoni, please copy that error message and add to you question. chris85 is right about that. Everyone should see the error message without clicking anything. – Eray Oct 10 '15 at 18:32
  • Yes Eray i have added these lines in configuration.php file as well as joomla's root folder index.php file and i am not using any cache plugin and default cache plugin is disabled. – Atul Soni Oct 10 '15 at 18:32
  • Try modifying your php.ini file instead of using ini_set() – Eray Oct 10 '15 at 18:33
  • @AtulSoni http://stackoverflow.com/questions/29520019/php-regular-expression-limit-reached-pcre-backtrack-limit – Eray Oct 10 '15 at 18:35
  • You may want to take into consideration that it's an extension you possibly have installed on your Joomla site. Try disabling any recently installed extensions one by one to try and find the culprit. @frosty - As per your first comment, it's not Joomla that's the issue – Lodder Oct 10 '15 at 18:37
  • @Lodder i have checked the extensions and found no extension is causing this issue – Atul Soni Oct 10 '15 at 18:49
  • Maybe you should modify your regex pattern this is what they are suggesting in same question : http://stackoverflow.com/questions/29520019/php-regular-expression-limit-reached-pcre-backtrack-limit – Eray Oct 10 '15 at 18:55
  • Please turn error reporting to "development" and turn on debugging, both done in global configuration. Is this happening on every page or only some pages? Also check your apache error log and copy and paste any message there into your question. – Elin Oct 11 '15 at 00:40
  • Can you turn on error reporting and debugging? It's definitely not Joomla, it's a regex function on that specific page. – Hans Wassink Oct 12 '15 at 15:23
  • Yes you are right i am getting this only on a single page not on all pages – Atul Soni Oct 12 '15 at 18:19

2 Answers2

0

Can you update your version of PHP?

Talk to your ISP

Read: http://forum.joomla.org/viewtopic.php?t=622839

Jose Luis Algara
  • 175
  • 4
  • 15
-1

The most important question is, are you getting the error requesting a page that's larger than average?? If so, this most likely is a SEF error. Then switch off SEF in the Joomla Configuration and try again; if things work, then you are the next victim of the problem described in this Joomla page: :http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=24865 In other words, it's a known Joomla problem, but apparently the Joomla people think it's not important, and in any case have closed the issue. My guess is the SEF plugin should be re-written not to use PCRE in scanning the content page the way it does. This is a frustrating issue that has existed for years !!

There's one other tip: when you want to keep SEF switched on: try disabling the SEF system plugin this is reported to solve the issue with no or very limited side effects (e.g. SEF will still work as the plugin only provides a few extras for SEF).

Peter
  • 21
  • 3