Topic on Project:Support desk

PCRE UTF8 problem when upgrading from 1.15.4 to 1.17.0

9
149.77.175.25 (talkcontribs)

Hi,

I am upgrading from 1.15.4 to 1.17.0 and am running into a problem. I first upgraded php to 5.3.6 and then ran the web installer after renaming LocalSettings.php.

Thanks in advance!

problem: Fatal: PHP's PCRE module seems to be compiled without PCRE_UTF8 support. MediaWiki requires UTF-8 support to function correctly.

mw: 1.15.4


php: PHP 5.3.6


mysql: Server version: 5.0.77

Bawolff (talkcontribs)

Its an issue with the version of php you have (well not the version actually but how it was compiled). Try getting php from a different place.

195.12.20.34 (talkcontribs)

As well as the Fatal message (above) it also gives a Warning message which states: "Warning: The intl PECL extension is not available to handle Unicode normalization, falling back to slow pure-PHP implementation."

So how can it be fatal and at the same time just a warning?

The web installer won't let you proceed even though it is possible to use the falling back position. How can we make it use this fall back position?

😂 (talkcontribs)

These are two different messages. You do not have to have php-intl for Unicode normalization (that's why it's a warning). However, you /must/ have PCRE compiled with utf8 support for MediaWiki to function properly.

195.12.20.34 (talkcontribs)

Thanks (me again 195.12.20.34).

I'm on CentOS 5 with php 5.3.3. It had been compiled with "--with-pcre-regex=/usr" but it wasn't working. I did a "yum update pcre" which upgraded my pcre from version pcre-6.6-2.el5_1.7 to pcre-6.6-6.el5_6.1. The installation no longer gives me the fatal error, so I carried on with the update of MediaWiki.

There was no need to recompile PHP.

83.22.119.220 (talkcontribs)

Just open includes/installer/Installer.php and find envCheckPCRE() method (line 738). Add 'return true' on the top and it should work.

Bawolff (talkcontribs)

Don't do that. Those checks are there for a reason. If you disable them in that manner, other things will break subtly, and badness will occur.

Snowfalcon cu (talkcontribs)

Hello, I too have the same issue, but, unfortunately I am very novice at computers. I only know as much as HTML markup, transferring files via FTP, and modifying some PHP files to test issues. Can someone recommend how to fix the problem? I do not really have the choice to look for PHP elsewhere. I set a `test' page following another form, and see this, http://yeogang.org/wiki/test.php (my own test page). They claim everything is `okay,' and that I should not have gotten the above message. Well, I did and I do not know the next immediate step. (Original error: http://yeogang.org/wiki/mw-config/index.php?page=Welcome).

Snowfalcon cu (talkcontribs)

I was forced to go elsewhere (PHP from a different place). Please disregard my earlier message.

Reply to "PCRE UTF8 problem when upgrading from 1.15.4 to 1.17.0"