Sage: Call to undefined function Illuminate\Support\mb_strpos()

Created on 6 Jul 2017  路  1Comment  路  Source: roots/sage

Submit a feature request or bug report


Bug report

I install sage the recommended way with Composer and Bedrock but when I activate the theme I get the following message

Fatal error: Uncaught Error: Call to undefined function Illuminate\Support\mb_strpos() in /var/www/html/web/app/themes/crafted-themes/vendor/illuminate/support/Str.php:72 Stack trace: #0 /var/www/html/web/app/themes/crafted-themes/vendor/illuminate/view/Compilers/BladeCompiler.php(285): Illuminate\Support\Str::contains('extends', '@') #1 /var/www/html/web/app/themes/crafted-themes/vendor/illuminate/view/Compilers/BladeCompiler.php(272): Illuminate\View\Compilers\BladeCompiler->compileStatement(Array) #2 [internal function]: Illuminate\View\Compilers\BladeCompiler->Illuminate\View\Compilers\{closure}(Array) #3 /var/www/html/web/app/themes/crafted-themes/vendor/illuminate/view/Compilers/BladeCompiler.php(273): preg_replace_callback('/\\B@(@?\\w+(?:::...', Object(Closure), '@extends('layou...') #4 /var/www/html/web/app/themes/crafted-themes/vendor/illuminate/view/Compilers/BladeCompiler.php(240): Illuminate\View\Compilers\BladeCompiler->compileStatements('@extends('layou...') #5 /var/www/html/web/app/themes/crafted-themes/ve in /var/www/html/web/app/themes/crafted-themes/vendor/illuminate/support/Str.php on line 72

Please describe your local environment:

WordPress version: 4.8

OS: macOX

NPM/Node version: v6.10.3

Where did the bug happen? Development or remote servers?

Development Server

Most helpful comment

Wait close this issue - turns out I did not have php-mbstring installed on my server

>All comments

Wait close this issue - turns out I did not have php-mbstring installed on my server

Was this page helpful?
0 / 5 - 0 ratings