pcre.backtrack_limit ERROR when using multiple map markers!

This forum is for general questions about extensions for Joomla! 2.5.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
anix
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Wed Sep 05, 2007 12:07 pm

pcre.backtrack_limit ERROR when using multiple map markers!

Post by anix » Mon May 23, 2011 1:20 pm

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

anix
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Wed Sep 05, 2007 12:07 pm

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by anix » Tue May 24, 2011 12:46 pm

Can any1 please help????

anix
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Wed Sep 05, 2007 12:07 pm

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by anix » Wed May 25, 2011 10:37 am

I cant believe that I have not got any reply to this as it is a really strange issue??

Thanks

jzlcdh
Joomla! Explorer
Joomla! Explorer
Posts: 467
Joined: Thu Nov 04, 2010 8:09 am

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by jzlcdh » Sat May 28, 2011 9:23 am

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?

jzlcdh
Joomla! Explorer
Joomla! Explorer
Posts: 467
Joined: Thu Nov 04, 2010 8:09 am

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by jzlcdh » Sat May 28, 2011 9:32 am


dovan
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Wed Aug 17, 2011 2:34 pm

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by dovan » Sat Sep 03, 2011 10:47 am

just add after }:
ini_set('pcre.backtrack_limit', 150000);
to your configuration.php file.

abduraja
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sun Jul 24, 2011 12:15 pm

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by abduraja » Wed Sep 14, 2011 7:27 pm

thanks for ur messege its worked me;

Regards
AR

User avatar
Josh Lewis
Joomla! Guru
Joomla! Guru
Posts: 528
Joined: Wed Jun 11, 2008 11:12 pm
Location: Lynnwood,WA
Contact:

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by Josh Lewis » Sat Jan 28, 2012 9:11 pm

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

LiliwoL
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Wed Oct 12, 2011 8:47 pm
Location: Ile d'Oléron
Contact:

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by LiliwoL » Tue Feb 21, 2012 4:26 pm

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

manshoomehra
Joomla! Intern
Joomla! Intern
Posts: 72
Joined: Wed Dec 14, 2011 1:49 pm
Location: Everywhere
Contact:

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by manshoomehra » Mon Jun 25, 2012 11:12 pm

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

revamper
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Jul 03, 2008 3:27 pm
Location: India, Singapore
Contact:

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by revamper » Thu Jan 17, 2013 11:08 am

this can also be solved by using php 5.3 or more.. and no need to make all these changes.

Hiddensausage
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Sep 07, 2013 10:57 am

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by Hiddensausage » Sat Sep 07, 2013 11:09 am

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.

User avatar
idek
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Tue Feb 24, 2009 1:02 am
Location: Poland
Contact:

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by idek » Mon Feb 17, 2014 1:35 pm

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... ;/

rpcarnell
Joomla! Apprentice
Joomla! Apprentice
Posts: 17
Joined: Wed Oct 14, 2009 9:52 pm
Location: Panama
Contact:

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by rpcarnell » Wed Nov 12, 2014 10:53 am

I ran into the same problem while using Chronoforms.

This solved it:

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

Dublin House
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sun Sep 15, 2013 3:24 pm

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by Dublin House » Mon Mar 02, 2015 12:32 pm

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 ??

Dublin House
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sun Sep 15, 2013 3:24 pm

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by Dublin House » Mon Mar 02, 2015 12:34 pm

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

Dublin House
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sun Sep 15, 2013 3:24 pm

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by Dublin House » Mon Mar 23, 2015 3:53 pm

i found a fix to this issue by increasing the memory limit .

piloss
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Sat Apr 11, 2015 11:26 am

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by piloss » Sat Apr 11, 2015 11:56 am

Maybe hosting is not support

Dublin House
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Sun Sep 15, 2013 3:24 pm

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by Dublin House » Fri Apr 17, 2015 5:51 pm

Actually increasing the memory limit apparently didnt do any difference , still struggling with this issue .

podvelde
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Sun May 03, 2009 9:06 pm
Location: Amsterdam
Contact:

Re: pcre.backtrack_limit ERROR when using multiple map marke

Post by podvelde » Mon Dec 28, 2015 2:52 pm

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.


Locked

Return to “Extensions for Joomla! 2.5”