Topic on Project:Support desk

You are missing a required extension to PHP that MediaWiki requires to run.

14
FriFraCologne (talkcontribs)

I get the following error message:

You are missing a required extension to PHP that MediaWiki requires to run. Please install:

mbstring (more information)

fileinfo (more information)s

Both extensions are enabled in my php ini, the extension directory is correct and the dll's are there.

Any sugestions?

Malyacko (talkcontribs)

Which PHP version? Which MediaWiki version?

Ciencia Al Poder (talkcontribs)

Maybe you need to restart apache/IIS after enabling them in php.ini

Kellyincuse (talkcontribs)

Did this ever get resolved? I just kicked up a new MW 1.32 server running PHP 7.3.1 ... I've tested PHP and Apache to make sure they are configured to run tests ... the MW Index.PHP runs and I get the same two extensions listed above as required. In my php.ini file I have the following two lines ...

extension=php_fileinfo.dll

extension=php_mbstring.dll

and I have checked the variable for the 'ext' folder where the DLLs are located.

I've setup two othe WIKI servers using MW but these two extensions weren't required then but they are now.

Any suggestions?

Ciencia Al Poder (talkcontribs)

Create a php file with a phpinfo call to see what extensions are really enabled, as explained in Manual:Php.ini

71.92.71.34 (talkcontribs)

I've had the same issue since upgrading to 1.32. (running php 7.3.2-1). When I run the update.php script i get the following:

Error: Missing one or more required components of PHP.

You are missing a required extension to PHP that MediaWiki needs.

Please install:

* mbstring <https://secure.php.net/mbstring>


I have mbstring installed and enabled in php.ini. Any suggestions?


Manishkaujalgi (talkcontribs)

Hi,

I had the similar issue (requires extention --> mbstring) when running on EC2 - AMI Linux..

Running this resolved my error:

sudo yum install php70-mbstring.x86_64 php70-zip.x86_64 -y


Remember to restart your apache after that

Ciencia Al Poder (talkcontribs)

Are you sure the phpinfo php script displays mbstring as being enabled?

31.53.123.107 (talkcontribs)

I have the same message. mbstring is definitely enabled in php.ini but it's not showing up in the phpinfo.php. I have restarted all already several times. I have installed


- Apache 2.4.39 (win64 VS16)

- PHP 7.3.8

- MySQL Server 8.0.17

Pyton 3.7.4

- MediaWiki 1.27


Any idea what I am doing wrong?


Thank you


Ciencia Al Poder (talkcontribs)

The php.ini you're editing is not the php.ini being used by the server

The ouptupt of phpinfo tells you what php.ini files are being loaded.

173.197.77.91 (talkcontribs)

I get the same problem, only with iconv rather than mbstring. When I navigate to /localhost/mediawiki/index.php, I see the following:

You are missing a required extension to PHP that MediaWiki requires to run. Please install: iconv

I uncommented the iconv module in /usr/share/php/modules and it still says it's not installed.

Here's my setup:

PHP 7.3.8

Apache2 2.4.39

Linux 4.19.66 (Manjaro; problem also on Arch Linux)

MariaDB 10.4.7

Mediawiki any version > 1.31.1

(i.e., 1.31.1 was the last time it worked; i've been downgrading to it for the last few months to keep it running)

Any suggestions ?

121.219.241.130 (talkcontribs)

Did you restart apache after enabling the module?

108.185.208.51 (talkcontribs)

Yes. And to clarify the above: i uncommented iconv and mbstring in the main php config file, /etc/php/php.ini. Then I checked /usr/share/php/modules and found that iconv is there, with the correct permissions. No idea why wiki can't find it.

Ciencia Al Poder (talkcontribs)

Please check the output of phpinfo (information in Manual:php.ini) to see if PHP knows about that php extension installed. This is not MediaWiki not knowing about the extension, but php