php - phpexcel exception with upload file -


i using phpexcel upload xls files. when upload file

(https://drive.google.com/file/d/0b9hz_h5ht4slblfrslljtdnwwe0/view?usp=sharing), have error in $objphpexcel = phpexcel_iofactory::load($this->file_path); line

public function read() {      $cachemethod = phpexcel_cachedobjectstoragefactory::cache_to_phptemp;     $cachesettings = array('memorycachesize' => '100mb');     phpexcel_settings::setcachestoragemethod($cachemethod, $cachesettings);              $objphpexcel = phpexcel_iofactory::load($this->file_path);     $objphpexcel->setactivesheetindex($this->sheet_number);     $this->data = $objphpexcel->getactivesheet()->toarray(null, true, true, true);      return $this; } 

exception log:

undefined offset: 15  /home/importer/vendor/phpoffice/phpexcel/classes/phpexcel/reader/excel5.php:3554  /home/importer/vendor/phpoffice/phpexcel/classes/phpexcel/reader/excel5.php:814  /home/importer/vendor/phpoffice/phpexcel/classes/phpexcel/iofactory.php:192 

how can fix error?


Comments