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

alex_hill's avatar

Undefined internal function mb_internal_encoding()

I have been developing on a laragon server at home, pushing to Git and using a cloud IDE when I am away. Recently I pulled from Git and did a hard reset to make sure that my home version was up to date.

Since that time, trying to run tinker gives the following error:

Fatal error: Call to undefined function Illuminate\Foundation\Bootstrap\mb_internal_encoding() in C:\laragon\www\site_name\vendor\laravel\framework\src\Illuminate\Foundation\Bootstrap\LoadConfiguration.php on line 43

The strange thing is that the site seems to be running fine in the browser. Any idea what could be causing this?

0 likes
3 replies
mstnorris's avatar

@alex_hill if you're having such issues, I'd suggest deleting your vendor directory and running composer install/update again and see what happens.

alex_hill's avatar

I gave that a shot, and have the following error:

Problem 1
    - Installation request for danielstjules/stringy 1.10.0 -> satisfiable by danielstjules/stringy[1.10.0].
    - danielstjules/stringy 1.10.0 requires ext-mbstring * -> the requested PHP extension mbstring is missing from your system.

I think I have narrowed it down to mbstring not being available for the CLI version of PHP, but is available in the browser. I can't seem to get it to load in the CLI version, even when I create a new php.ini file

Snapey's avatar

from the command line do php -v; php --ini

and in your routes.php call phpinfo();

compare php version and path to ini file

Please or to participate in this conversation.