Laravel Undefined Call to undefined function iconv_strlen()

call to undefined function iconv() joomla
fatal error: call to undefined function symfonypolyfillmbstringiconv

guys do you have some answer on this a strange bug ? I moved my project from another server and i configured all but i watching some bug Laravel give me a this error :

FatalErrorException in /public_html/app/Http/Controllers/GameController.php line 718:
Call to undefined function App\Http\Controllers\iconv_strlen()

In this code:

 public function DepositRedirect()
{
    if(Auth::guest()) return 'You must be authorized!';
    if(!$this->user->trade) return 'You must set trade list in your profile!';
    $bot = DB::table('bots')->first();
    if(is_null($bot)) return "Bot not found!";
    if(iconv_strlen($bot->trade) < 1) return "Admin hasn't set trade link with bot.";
    return redirect($bot->trade);
}

Why ? This is standart php function for returns the character count of string i use php 7.X

I would suggest you use

 if(empty($bot->trade) || iconv_strlen($bot->trade) < 1)

This will skip the second statement if the first is true

php, FatalErrorException in /public_html/app/Http/Controllers/GameController.php line 718: Call to undefined function App\Http\Controllers\iconv_strlen(). In this code  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 found a problem guys , problem is comming from my php i dont know why ,but i using zesleCP and in global php iconv is enable but in account php maybe is not and not working i just replace iconv_strlen() function with mb_strlen() and problem is solved but i will search method how to fixing iconv function :)

Laravel Undefined Call to undefined function iconv_strlen , Laravel Undefined Call to undefined function iconv_strlen() server and i configured all but i watching some bug Laravel give me a this error : 'Call to undefined function iconv_strlen()' Tue 13th Dec '16, 2:18pm. anyone know what this is about? had someone try to register and they hit tab after entering

you should simply add extension=iconv.so in your php.ini

/opt/zesle/zesle-php71/root/etc/php.ini

/opt/zesle/zesle-php56/root/etc/php.ini

Fatal error: Call to undefined function iconv() · Issue #4700 · wp-cli , Fatal error: Call to undefined function iconv() #4700. Closed. holisticnetworking opened this issue on Feb 21, 2018 · 11 comments. Closed  BadMethodCallException in Builder.php line 2437 Call to undefined method Illuminate\Database\Query\Builder::lists() Laravel 5.3,pluck new feature in laravel 5.3

undefined function Symfony\Component\VarDumper\Dumper , FatalErrorException in CliDumper.php line 172: Call to undefined function Symfony\Component\VarDumper\Dumper\iconv_strlen(). Moodle in English. Participants. Welcome to Moodle in English! Installing and upgrading help. General help. Exception - Call to undefined function iconv_strlen() Teaching with Moodle. Moodle research. Usability. Comparisons and advocacy. Hardware and performance. Security and privacy. Moodle Partners. Moodle Users Association. MoodleCloud

Call to undefined function iconv_strlen(), PHP Fatal error: Call to undefined function iconv_strlen() in /home/smtpdepot/​public_html/seotoaster_core/library/Zend/Validate/Hostname.php  Forum Laravel Call to undefined function App\Http\Controllers\Auth\user() Reply Follow All Threads Popular This Week Popular All Time Solved Unsolved No Replies Yet

Call to undefined function Symfony\Polyfill\Mbstring\iconv_strpos , I have solved it. Solved: I'm using Cpanel/WHM STACK then follow: Go to WHM >​> EasyApache4 >> Current Installed Packages >> customize  As I will cover this Post with live Working example to develop Laravel 6 Call to undefined function str_slug() – Solved, so the Laravel – [SOLVED] “Call to undefined function str_slug()” is used for this example is following below.

Comments
  • Can you create a minimal but complete script, that will reproduce the issue?