Call to undefined function PhpOffice\PhpSpreadsheet\Shared\mb_strlen()
Problem:
Fatal error: Uncaught Error: Call to undefined function PhpOffice\PhpSpreadsheet\Shared\mb_strlen() in /var/www/html/labsmart/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/StringHelper.php:451 Stack trace: #0 /var/www/html/labsmart/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Worksheet.php(492): PhpOffice\PhpSpreadsheet\Shared\StringHelper::countCharacters('Worksheet') #1 /var/www/html/labsmart/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Worksheet.php(915): PhpOffice\PhpSpreadsheet\Worksheet\Worksheet::checkSheetTitle('Worksheet') #2 /var/www/html/labsmart/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Worksheet.php(371): PhpOffice\PhpSpreadsheet\Worksheet\Worksheet->setTitle('Worksheet', false) #3 /var/www/html/labsmart/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Spreadsheet.php(491): PhpOffice\PhpSpreadsheet\Worksheet\Worksheet->__construct(Object(PhpOffice\PhpSpreadsheet\Spreadsheet)) #4 /var/www/html/labsmart/export.php(329): PhpOffice\PhpSpreadsheet\Sp in /var/www/html/labsmart/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/StringHelper.php on line 451
Solution:
mbstring
is a non-default extension. This means it is not enabled by default. You must explicitly enable the module with the configure
option.Read more about
mbstring
extension