Page MenuHomePhabricator

warning during installation
Closed, DeclinedPublic

Description

Author: sutter

Description:
while installing i got following error
Checking environment...

  • PHP 4.4.0: ok
  • PHP server API is apache2handler; ok, using pretty URLs (index.php/Page_Title)
  • Have XML / Latin1-UTF-8 conversion support.

[...]

  1. Initializing data...
  2. Granting user permissions...

Warning: mb_strpos(): Unknown encoding or conversion error. in
/data1/htdocs/mediawiki/includes/User.php on line 46


Version: 1.4.x
Severity: normal
OS: Linux
Platform: PC

Details

Reference
bz3782

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 8:54 PM
bzimport set Reference to bz3782.
bzimport added a subscriber: Unknown Object (MLST).

That line is:
if ( $wgUseLatin1 && ! ( strpos( $name, chr( 0xAD ) ) === false ) ) {

strpos(), *not* mb_strpos(), is being used. Probably you have the
mbstring.func_overload option in PHP on; this option is very likely to cause data
corruption and various problems and should never be used ever by anyone. Turn this
off if at all possible.

(Additionally, you're installing an out of date version of MediaWiki which contains
known security problems. Please install a current release; the most recent 1.4.x is
1.4.11; 1.5.1 is the current recommended version.)

I've added a fatal warning to the installation when this option is active, so it's
extra obvious things are going badly.