PDA

View Full Version : Quick editor do not works & error message


postcd
02-17-2012, 08:25 PM
When editing any post, there is quick editor at first and when i hit Save, it only shows working wheel and does nothing.

When i Go into Advanced editor, and Save post, in redirection page it return an error and post is saved:


Warning: preg_replace() [function.preg-replace]: Compilation failed: lookbehind assertion is not fixed length at offset 223 in [path]/includes/functions_newpost.php on line 247
Redirecting...
The post has been successfully edited. You are now being taken to the post.
Click here if your browser does not automatically redirect you.


functions_newpost.php on line 247, there is:

247 $text = preg_replace($urlSearchArray, $urlReplaceArray, $messagetext);
248 if (strpos($text, "@"))
{
$text = preg_replace($emailSearchArray, $emailReplaceArray, $text);
}

$text = convert_url_to_bbcode_parenreplace($text);

return $prepend . $text;
}


List of vBulletin plugins: http://pastebin.com/LQiNK8J3

Please what can be the cause?

// EDIT: Post is saved thru Advanced editor, but all text is removed permanently!...

kh99
02-17-2012, 08:36 PM
I think this is a problem with the PCRE library version 8.21, as described here: https://www.vbulletin.com/forum/showthread.php/393530-VBulletin-4-1-0-and-PCRE-8-21-bug

postcd
02-17-2012, 09:09 PM
Thank you for help fixing my forum. That was probably the reason. I decided to upgrade PHP to 5.3.8 via easyapache (cpanel) instead of doing any tweaks with PCRE.

Now it just works after upgrade and apache restart! :)