Call to undefined function mb_strimwidth() Hello guys,
I'm having an error with Laravel. I currently have Laravel 5.5 installed through Docker, and when I'm trying to run str_limit() it throws:
ErrorException (E_ERROR)
Call to undefined function Illuminate\Support\mb_strimwidth()
Do you have any idea what it might be going wrong?
It sounds like you don't have the Multibyte String (php-mbstring) PHP extension installed.
Running this command should install it on your server:
sudo apt-get install php-mbstring
I don’t have PHP at all on my machine. I’m running it on docker and it has PHP 7.0.
See if the module is activated by either <?php echo phpinfo(); or run the command: php -i | grep mbstring?
Supposedly when you use composer install Laravel pulls a package Symfony/Polyfill-mbstring which an extension from mbstring.
That's why I'm wondering what's going on.
I am having the same issue.
I checked my phpinfo() and couldn't find php-mbstring.
So, I did
sudo apt-get install php-mbstring
sudo service apache2 restart
php-mbstring is already there in my machine and the problem still persists.
Any help?
change in the file NewCommand.php
where you can find it at C:\Users**\AppData\Roaming\Composer\vendor\laravel\installer\src
from $name = mb_rtrim($input->getArgument('name'), '/\');
into
$name = rtrim($input->getArgument('name'), '/\');
Please sign in or create an account to participate in this conversation.