samedi 2 septembre 2017

Undefined variable: contents in ZipArchive.php line 173

I wanted to import xls file in laravel and export the data in database. But I am getting following error while importing

at HandleExceptions->handleError(8, 'Undefined variable: contents', 'C:\Users\Kuldeeo\Downloads\app\vendor\phpoffice\phpexcel\Classes\PHPExcel\Shared\ZipArchive.php', 174, array('fileName' => '_rels/.rels', 'list' => 0, 'listCount' => 1, 'list_index' => -1, 'i' => 1, 'extracted' => 0, 'filename' => 'rels/.rels'))

I have tried adding

$zipClass = PHPExcel_Settings::getZipClass();

in Reader/Excel2007.php and Writer/Excel2007.php

even updated the composer several times. Downloading the xls file is working but importing it, is producing the error. Kindly help.....



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire