MyBB Community Forums
Warning [2] preg_replace() [function.preg-replace]: Compilation failed - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.4 (https://community.mybb.com/forum-80.html)
+------ Forum: MyBB 1.4 General Support (https://community.mybb.com/forum-81.html)
+------ Thread: Warning [2] preg_replace() [function.preg-replace]: Compilation failed (/thread-54321.html)



Warning [2] preg_replace() [function.preg-replace]: Compilation failed - pahko - 2009-08-06

i have this problem:

Warning [2] preg_replace() [function.preg-replace]: Compilation failed: number too big in {} quantifier at offset 28 - Line: 3751 - File: inc/functions.php PHP 5.2.9 (Linux)
File 	Line 	Function
[PHP] 	  	errorHandler->error
/inc/functions.php 	3751 	preg_replace
/inc/class_parser.php 	183 	my_wordwrap
/portal.php 	518 	postParser->parse_message
Warning [2] preg_replace() [function.preg-replace]: Compilation failed: number too big in {} quantifier at offset 28 - Line: 3751 - File: inc/functions.php PHP 5.2.9 (Linux)

what can i do to fix it?

thank you!!


RE: Warning [2] preg_replace() [function.preg-replace]: Compilation failed - User 2877 - 2009-08-06

Is there some giant line that won't wrap? Maybe spam?

my_wordwrap appears to be the issue...find the post and delete it.


RE: Warning [2] preg_replace() [function.preg-replace]: Compilation failed - pahko - 2009-08-07

(2009-08-06, 11:56 PM)labrocca Wrote: Is there some giant line that won't wrap? Maybe spam?

my_wordwrap appears to be the issue...find the post and delete it.


i don`t understand i have to find my_wordwarp in code or in post?


RE: Warning [2] preg_replace() [function.preg-replace]: Compilation failed - User 2877 - 2009-08-07

What's your forum? Can you link to a page with that error?

In admincp what is this setting at:

"Number of Characters before Word Wrapping Occurs"


RE: Warning [2] preg_replace() [function.preg-replace]: Compilation failed - pahko - 2009-08-07

http://juackersillos.org/mybb/portal.php

thank you
i got solution uploaded a backup

the problem was the plugin ipcountry

do you have a plugin like that in mybbcentral???


RE: Warning [2] preg_replace() [function.preg-replace]: Compilation failed - User 2877 - 2009-08-07

It's not viable as a mybb plugin imho. You can do country blocking the same way via htaccess and it's more effective.