Call to undefined function mb_strcut() #40449
-
Description:Call to undefined function mb_strcut() (View: /var/www/application/vendor/laravel/framework/src/Illuminate/Mail/resources/views/html/layout.blade.php) Steps To Reproduce:When creating a new user on route /register the error occurs. It creates the user in the database, but don't send the confirmation e-mail. It works on Ubuntu 20.04.3 LTS (staging server), but not on Debian 11 (bullseye)(production server). live system on: http://app.bahien.se/register shows the error. |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 7 replies
-
you need mbstring extension: |
Beta Was this translation helpful? Give feedback.
-
it's already installed, as all other dependencies... |
Beta Was this translation helpful? Give feedback.
-
Whats your output on:
Honestly sounds extension-related and not Laravel - seems to be working fine with everything else 👍 |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue with the same parameters OS and Laravel/PHP versions and database; note that this occures when visiting routes that should send emails |
Beta Was this translation helpful? Give feedback.
-
So after some inspections, it turns out that my server had two php versions installed 8.0 and 8.1 In my case to solve this I just removed all versions of php and only kept 8.1 and used it as default Hope this helps |
Beta Was this translation helpful? Give feedback.
-
@dbahiense |
Beta Was this translation helpful? Give feedback.
-
how about using it on windows? |
Beta Was this translation helpful? Give feedback.
-
Thank you verymuch
Pada tanggal Sen, 1 Mei 2023 11.31, bigraja ***@***.***>
menulis:
… extension=mbstring enable
—
Reply to this email directly, view it on GitHub
<#40449 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXJBCLSU7BMLEPH3DC66DQLXD44DVANCNFSM5NX3BMSQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
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 apache2Hope this helps