Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fatal error: Call to undefined function mb_strtolower() even if mbstring is enabled [duplicate]

Tags:

php

multibyte

I have just done an Os reload of my server and i've restored every thing and all data is correct but I am getting this:

Fatal error: Call to undefined function mb_strtolower()

I have done some searching around and I have found that its the mbstring exstention for php not being installed, that doesn't seem to be my case as i've checked and its installed and enabled for all phpversion.

Anyone got any ideas?

like image 601
StorytellingMedia Avatar asked Sep 30 '17 08:09

StorytellingMedia


1 Answers

If you really have to use mb_-functions, you have to check if the multibyte string extension is installed on your system.

Check if the extension is installed?

<?php phpinfo(); ?>

Extension is not displayed?

Install the extension:

But therefore you have to reveal on which OS your PHP is running. So for example, in Ubuntu this can be achieved by running one of the following commands:

sudo apt-get install php-mbstring
sudo apt-get install php7.0-mbstring
sudo apt-get install php7.1-mbstring

Of course, this depends on the installed version of PHP.

Don´t forget to restart PHP after the extension was installed.

like image 86
BenRoob Avatar answered Sep 22 '22 08:09

BenRoob