2

I am uploading a laravel 5.4 project to cpanel server. And i am serve with

PHP Fatal error:  Call to undefined function Symfony\Polyfill\Mbstring\iconv_strpos()

on server.

I have done

composer require symfony/polyfill-iconv

However, it does not change the error message. What thing i might miss out?

Brian Ruchiadi
  • 331
  • 1
  • 13
  • 29
  • use composer dump in your console – Sid Heart May 19 '17 at 08:03
  • This might help: http://cyberpersons.com/2016/10/21/install-missing-php-extensions-cpanelwhm/ – Rwd May 19 '17 at 08:05
  • 1
    Cpanel will inevitably cause problems. I would recommend picking up a $5 vps from [linode](http://linode.com) or [DigitalOcean](http://digitalocean.com) – Ian May 19 '17 at 08:10
  • 2
    Possible duplicate of [Call to undefined function Symfony\Polyfill\Mbstring\iconv\_strlen()](http://stackoverflow.com/questions/40800616/call-to-undefined-function-symfony-polyfill-mbstring-iconv-strlen) – Jerodev May 19 '17 at 08:19

1 Answers1

3

Be sure that you have php-iconv and php-mbstring installed on the server. Then check again. By default, mbstring is not installed on cPanel/WHM servers

Bogdan Stoica
  • 4,349
  • 2
  • 23
  • 38