Skip to content

NativePHP error undefined function mb_split() #662

@seunex17

Description

@seunex17

What were you trying to do?

II am trying to serve the development server using native:serve

What happened?

After running the serve command on window it first pop out a flash electron app icon and wen back so it log some error in my terminal saying

It throws an error Undefined function mb_split

How to reproduce the bug

Install native php on window laptop windows 11
and try to serve the app on Laravel Herd

Debug Output

PHP Server started on port:  8100
[Wed Jul 23 07:44:27 2025] 127.0.0.1:52388 [POST] URI: /_native/api/booted
Process [queue_default] spawned!

Please check your log files:
  C:\Users\seune\AppData\Roaming\laravel-dev\storage\logs

Error in PHP:
  Call to undefined function Illuminate\Support\mb_split() (0) in C:\workspace\desktop\test-app\vendor\laravel\framework\src\Illuminate\Support\Str.php:1700
[Wed Jul 23 07:44:27 2025] 127.0.0.1:52392 [POST] URI: /_native/api/events

Please check your log files:
  C:\Users\seune\AppData\Roaming\laravel-dev\storage\logs

Error in PHP:
  Call to undefined function Illuminate\Support\mb_split() (0) in C:\workspace\desktop\test-app\vendor\laravel\framework\src\Illuminate\Support\Str.php:1700
[Wed Jul 23 07:44:28 2025] 127.0.0.1:52396 [POST] URI: /_native/api/events

Please check your log files:
  C:\Users\seune\AppData\Roaming\laravel-dev\storage\logs

Error in PHP:
  Call to undefined function Illuminate\Support\mb_split() (0) in C:\workspace\desktop\test-app\vendor\laravel\framework\src\Illuminate\Support\Str.php:1700

Which operating systems have you seen this occur on?

Windows

Notes

I started this project on my Macbook and runs fine but i need to test on window OS so i move the same project to my window and now i am finding it hard to serve the project on window laptop.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions