Page 1 of 1

pcre.backtrack_limit ERROR when using multiple map markers!

Posted: Mon May 23, 2011 1:20 pm
by anix
Hi,

I am currently trying to create a map with a very large number of map markers on it (Approx 13,000) and I am using the Phoca Maps component however I believe this issue is more to do with Joomla than the component itself. I have managed to create the map and have been testing with a number of different map markers. I have managed to put around 1500 on the map but anything above that and I get this error:

Error: 500
PHP regular expression limit reached (pcre.backtrack_limit)


This is very annoying as I really need to have all of these map markers on one map and i keep getting this error, I have tried the following methods but it still does not work:

php.ini(settings changed)
pcre.recursion_limit=9000000
pcre.backtrack_limit=9000000


I have tried all these efforts with no joy can any1 please help??

Thanks

Dave

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Tue May 24, 2011 12:46 pm
by anix
Can any1 please help????

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Wed May 25, 2011 10:37 am
by anix
I cant believe that I have not got any reply to this as it is a really strange issue??

Thanks

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Sat May 28, 2011 9:23 am
by jzlcdh
I am getting this error unrelated to maps or any extension. Could a moderator move this post to another forum in the hope of an answer?

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Sat May 28, 2011 9:32 am
by jzlcdh

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Sat Sep 03, 2011 10:47 am
by dovan
just add after }:
ini_set('pcre.backtrack_limit', 150000);
to your configuration.php file.

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Wed Sep 14, 2011 7:27 pm
by abduraja
thanks for ur messege its worked me;

Regards
AR

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Sat Jan 28, 2012 9:11 pm
by Josh Lewis
I had this error for a while myself until I tried the mod above. Does making the number "300000" effect my entire site in any bad ways? Loading time of pages?

Thanks for the mod. :D

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Tue Feb 21, 2012 4:26 pm
by LiliwoL
Hi,

I've encountered the same problem.
#500 PHP REGULAR EXPRESSION LIMIT REACHED (PCRE.BACKTRACK_LIMIT)

Unfortunately, not for the same causes (not multiple map parkers).


Anyway, even if i put these lines in configuration.php:
/* Limite PCRE */
ini_set('pcre.backtrack_limit', 300000);
The problem doesn't solve...

I noticed, that this page works only if i deactive SEF Url.
Of course, i need to keep SEF Url on!

So, does this limit comes from the rewriting rules built-in Joomla core?

Thanks for your help

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Mon Jun 25, 2012 11:12 pm
by manshoomehra
Hello,
I also got this error 500 "PHP regular expression limit reached (pcre.backtrack_limit)" on my website Top iPhone Apps created in Joomla 1.7.3
This occurred when I created so many menu items. After searching forums, I was able to fix it.
How? Here is the solution:
This is some kind of php restriction and you will need to override this php restriction by modifying index.php on your root.

Add following two lines in index.php and you don't need to modify any other file:
ini_set('pcre.backtrack_limit',1000000);
ini_set('pcre.recursion_limit',1000000);

Once it is modified, clear your cache and reopen your website. It worked for me so posting this solution here so that other facing this problem may also get benefited.

Cheers!!!
Manshoo

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Thu Jan 17, 2013 11:08 am
by revamper
this can also be solved by using php 5.3 or more.. and no need to make all these changes.

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Sat Sep 07, 2013 11:09 am
by Hiddensausage
I'm a complete novice and am struggling with the same error message as above [500 - PHP regular expression limit reached (pcre.backtrack_limit)]....I've tried to solve as suggested but to no avail (i.e. adding the lines suggested to php.ini and index.php files - prob in the wrong place?)

I am using: Joomla 2.5.14, PHP 5.3.13, Apache 2.2.22 and running on localhost....the issues came through using mosets tree to build my directory

If someone could give an idiot proof solution that would be great...if I had any hair left it would have been pulled out days ago.

Thank You.

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Mon Feb 17, 2014 1:35 pm
by idek
hi,

i've got this same problem with one site of my client - it was beacause he copy and paste txt from MS Word and paste also images in code... ;/

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Wed Nov 12, 2014 10:53 am
by rpcarnell
I ran into the same problem while using Chronoforms.

This solved it:

/* Limite PCRE */
ini_set('pcre.backtrack_limit', 300000);

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Mon Mar 02, 2015 12:32 pm
by Dublin House
hi
i'm having this same error ''' 0 - PHP regular expression limit reached (pcre.backtrack_limit) ''' i'm using php 5.3 and i need to keep sef url on , tried to add the 2 lines to the index.php with no luck , any suggestions please to how to solve this problem ??

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Mon Mar 02, 2015 12:34 pm
by Dublin House
Hiddensausage wrote:I'm a complete novice and am struggling with the same error message as above [500 - PHP regular expression limit reached (pcre.backtrack_limit)]....I've tried to solve as suggested but to no avail (i.e. adding the lines suggested to php.ini and index.php files - prob in the wrong place?)

I am using: Joomla 2.5.14, PHP 5.3.13, Apache 2.2.22 and running on localhost....the issues came through using mosets tree to build my directory

If someone could give an idiot proof solution that would be great...if I had any hair left it would have been pulled out days ago.

Thank You.
did you find a fix to your problem ? if yes could you please tell me how ! i'm in a similar situation

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Mon Mar 23, 2015 3:53 pm
by Dublin House
i found a fix to this issue by increasing the memory limit .

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Sat Apr 11, 2015 11:56 am
by piloss
Maybe hosting is not support

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Fri Apr 17, 2015 5:51 pm
by Dublin House
Actually increasing the memory limit apparently didnt do any difference , still struggling with this issue .

Re: pcre.backtrack_limit ERROR when using multiple map marke

Posted: Mon Dec 28, 2015 2:52 pm
by podvelde
Same problem with a Joomla 3.4 pristine installation. I'm running a content plugin that inserts a piece of text in articles that cannot be entered in the normal editor due to size (N00k). In such pages this surprise is triggered as well.