Skip to content

Call to undefined function mb_strcut() #40449

Answered by boutghatoua
bahiensed asked this question in Q&A
Discussion options

You must be logged in to vote

So after some inspections, it turns out that my server had two php versions installed 8.0 and 8.1
mbstring was installed on 8.1 while my laravel app was using php8.0

In my case to solve this I just removed all versions of php and only kept 8.1 and used it as default
( another problem I ran to was that pdo_mysql wasn't enabled so to enable it I used phpenmod pdo_mysql then restart apache2

Hope this helps

Replies: 9 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@Galihzen97
Comment options

Comment options

You must be logged in to vote
1 reply
@Galihzen97
Comment options

Comment options

You must be logged in to vote
1 reply
@brayleB
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by bahiensed
Comment options

You must be logged in to vote
2 replies
@bahiensed
Comment options

@rajeshtva
Comment options

Comment options

You must be logged in to vote
1 reply
@bigraja
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@henzeb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #40433 on January 17, 2022 07:53.