Fatal error: Uncaught exception 'PHPExcel_Exception' Fatal error: Uncaught exception 'PHPExcel_Exception' codeigniter codeigniter

Fatal error: Uncaught exception 'PHPExcel_Exception'


Opening the Worksheet.php file, I added the following to the top of the public function setTitle($pValue = ‘Worksheet’) method:

$pValue = substr($pValue, 0, 31);


Open your PHPExcel\Worksheet.php file and change the value 31 to some other digit in the following line of code:

if (PHPExcel_Shared_String::CountCharacters($pValue) > 31) {    throw new PHPExcel_Exception('Maximum 31 characters allowed in sheet title.');}


Just go to PHPExcel\Worksheet.php file and comment the following line:

if (PHPExcel_Shared_String::CountCharacters($pValue) > 31) {    throw new PHPExcel_Exception('Maximum 31 characters allowed in sheet title.');}