Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

davy_yg's avatar
Level 27

Call to undefined function Illuminate\Support\mb_strimwidth()

I am getting this error message:

Call to undefined function Illuminate\Support\mb_strimwidth()

on my online shop. I thought it first it must be the php version. Already change it to php version 7.2 which is the same like my offline version. But the error still remains.

ref: https://codersatellite.com/question-with-identifier-39825131

Any idea why?

0 likes
5 replies
Sinnbeck's avatar

You need to install the mb_string extension for php

Assuming linux

sudo apt install php7.2-mbstring
davy_yg's avatar
Level 27

On the server terminal I type:

[advancew@sjc02 victoryshop.advance-web-studio.com]$ sudo apt install php7.2-mbstring bash: sudo: command not found

What did I do wrong?

Sinnbeck's avatar

If your user is already admin (root), you can try it without sudo

apt install php7.2-mbstring

There also just might be a control panel where you can enable it (you said you enabled php 7.2, so maybe in the same location)

davy_yg's avatar
Level 27

[advancew@sjc02 victoryshop.advance-web-studio.com]$ apt install php7.2-mbstring bash: apt: command not found

Sinnbeck's avatar

Maybe contact your hosting company and ask them to help installing it? :)

Please or to participate in this conversation.