preg_replace() SYSTEM WARNING

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
sators
Posts: 1
Joined: 29 Mar 2010, 16:22

preg_replace() SYSTEM WARNING

Post by sators »

Just installed 1.2.0 straight from Sourceforge, completely fresh install. However, I'm seeing these errors all throughout the control panel/interface:

SYSTEM WARNING: preg_replace() [function.preg-replace]: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 98

Attached is a screenshot. See the errors in both Chrome/Firefox.

I also notice that the control panel is not displaying the Summary, Description, and Steps to Reproduce fields of any issue, this makes everything useless for me. I do see the text submitted in the email notifications though...

HELP?!
Image
cmattmiller
Posts: 1
Joined: 13 May 2010, 14:06

Re: preg_replace() SYSTEM WARNING

Post by cmattmiller »

I'm getting the same problem after upgrading from 1.2.0 to 1.2.1
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: preg_replace() SYSTEM WARNING

Post by atrol »

Please use Search before posting and read the Manual
maxxemm
Posts: 3
Joined: 23 Feb 2011, 20:25

Re: preg_replace() SYSTEM WARNING

Post by maxxemm »

I had to do the research myself, since the links given are no longer valid or do not point to the reasonable answer. I hope to be more helpful, so here it is:

PHP is using Perl's Compatible Regular Expressions or PCRE. If the version of PCRE that your php is using is something less of 5 (I have 4.5.x), than you might get that error. Use phpinfo() to see what version you have.

The problem appears in MantisFormattingPlugin, a plugin that formats text to look nice. And to be exact in URL Processing (which is not a Mantis or plugin error, just the old version of PCRE not handling utf8 strings correctly).

To solve the problem you can either update PCRE to the newest version or if that's not possible (like in my case - my php is hosted by a hosting company), turn off URL Processing in a plugin "MantisBT Formatting 1.0a" (that's the version I'm using) from Manage/Manage Plugins.

Hope that helped.

PS.
Don't you love it when you ask a question on a forum, and you get only one response to google it, and when you do you get whole bunch of search results of answers telling you to google it?
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: preg_replace() SYSTEM WARNING

Post by atrol »

Thank you for telling the solution
maxxemm wrote: PS.
Don't you love it when you ask a question on a forum, and you get only one response to google it, and when you do you get whole bunch of search results of answers telling you to google it?
Why are you writing this at this place? I don't have the impression that this is typical for MantisBT forum.
Please use Search before posting and read the Manual
maxxemm
Posts: 3
Joined: 23 Feb 2011, 20:25

Re: preg_replace() SYSTEM WARNING

Post by maxxemm »

atrol wrote:Why are you writing this at this place? I don't have the impression that this is typical for MantisBT forum.
You are right, my appologies. I shouldn't have release my frustration here. Trying to get the answer was a puzzle, as no one was able to provide an answer, even though this problem is quite common among other php software. The links you provided are no longer valid, hence my recollection of the "google it" closed circle.
Post Reply