You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that there are problems with loading XLSX files edited and saved in Libre Office (on MacBook and Ubuntu). Files saved as XLS are not throwing any errors.
The error displayed: Cell coordinate can not be zero-length string
The stack trace:
...
#0 /.../phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Worksheet.php(1260): PhpOffice\PhpSpreadsheet\Cell\Coordinate::coordinateFromString('') #1 /.../phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Worksheet.php(1220): PhpOffice\PhpSpreadsheet\Worksheet\Worksheet->createNewCell('') #2 /.../phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Worksheet.php(1693): PhpOffice\PhpSpreadsheet\Worksheet\Worksheet->getCell('') #3 /.../phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php(1151): PhpOffice\PhpSpreadsheet\Worksheet\Worksheet->mergeCells('1:1')
.....
I noticed it happened on the $objReader->load($path).
protectedfunctionloadSpreadsheet($path)
{
/** Identify the type of $inputFileName **/$inputFileType = IOFactory::identify($path);
/** Create a new Reader of the type that has been identified **/$objReader = IOFactory::createReader($inputFileType);
/** Load $inputFileName to a PHPExcel Object **/return$objReader->load($path);
}
Files edited and saved on Windows Excel are not throwing any errors too.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this is still an issue for you, please try to help by debugging it further and sharing your results.
Thank you for your contributions.
I noticed that there are problems with loading XLSX files edited and saved in Libre Office (on MacBook and Ubuntu). Files saved as XLS are not throwing any errors.
The error displayed: Cell coordinate can not be zero-length string
The stack trace:
...
#0 /.../phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Worksheet.php(1260): PhpOffice\PhpSpreadsheet\Cell\Coordinate::coordinateFromString('')
#1 /.../phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Worksheet.php(1220): PhpOffice\PhpSpreadsheet\Worksheet\Worksheet->createNewCell('')
#2 /.../phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/Worksheet.php(1693): PhpOffice\PhpSpreadsheet\Worksheet\Worksheet->getCell('')
#3 /.../phpspreadsheet/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php(1151): PhpOffice\PhpSpreadsheet\Worksheet\Worksheet->mergeCells('1:1')
.....
I noticed it happened on the $objReader->load($path).
Files edited and saved on Windows Excel are not throwing any errors too.
The text was updated successfully, but these errors were encountered: