Call to undefined function Illuminate\View\Compilers

sage9

#1

Site I develop is working fine without errors on my local machine, but when I moved it to server the front end of site doesn’t work. I’ve never seen this error before. Any ideas where I should look for a solution?

Fatal error: Uncaught Error: Call to undefined function Illuminate\View\Compilers\token_get_all() in /srv/mysite2018/site/wp-content/themes/mysite/vendor/illuminate/view/Compilers/BladeCompiler.php:166 Stack trace: #0 /srv/mysite2018/site/wp-content/themes/mysite/vendor/illuminate/view/Compilers/BladeCompiler.php(120): Illuminate\View\Compilers\BladeCompiler->compileString('{{--\n Template...') #1 /srv/mysite2018/site/wp-content/themes/mysite/vendor/illuminate/view/Engines/CompilerEngine.php(51): Illuminate\View\Compilers\BladeCompiler->compile('/srv/mysite...') #2 /srv/mysite2018/site/wp-content/themes/mysite/vendor/illuminate/view/View.php(137): Illuminate\View\Engines\CompilerEngine->get('/srv/mysite...', Array) #3 /srv/mysite2018/site/wp-content/themes/mysite/vendor/illuminate/view/View.php(120): Illuminate\View\View->getContents() #4 /srv/mysite2018/site/wp-content/themes/mysite/vendor/illuminate/view/View.php(85): Illuminate\View\View->renderContents() #5 /srv in /srv/mysite2018/site/wp-content/themes/mysite/vendor/illuminate/view/Compilers/BladeCompiler.php on line 166


#2

Is your production environment running the same version of PHP as your local?


#3

This is resolved. Something went wrong while uploading the files. Reuploading fixed it.