Error uploading site

2

Personally I just uploaded a site of mine made in Laravel 5.2 with pho 5.6 locally. I uploaded to a shared hosting in Locaweb that I have. I configured PHP 5.6 correctly and uploaded the site to this giving me the following error message.

  

Fatal error: Call to undefined function Symfony \ Polyfill \ Mbstring \ iconv_strpos () in /home/storage/b/71/41/supra/public_html/vendor/symfony/polyfill-mbstring/Mbstring.php on line 351

This is the first site I upload in version 5.2 of Laravel. In version 5.1 I never had any problems. See if you can help me. Thank you very much

    
asked by anonymous 16.05.2016 / 15:23

1 answer

1

This function that is giving error is not PHP's MBSTRING .

Notice that there is a namespace before:

Symfony\Polyfill\Mbstring\icon_strpos()

This is a library of Symfony that provides functions if it does not exist in the system.

Maybe this could be a version error that was installed from this library.

You can try to run composer update before sending the files to the server.

Another problem I noticed for people having this problem is when php5-mbstring is not installed.

Here's how to install it:

 sudo yum install php55-mbstring

Source: Laravel: Call to undefined function Symfony \ Component \ Console \ mb_convert_variables ()?

If it is a shared server, contact technical support to see if they can enable this extension (depending on the change, even if they are shared servers, they change).

    
16.05.2016 / 15:53