-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "Xlsx::getArrayItem(): Node no longer exists" issue (#931)
- Loading branch information
Showing
1 changed file
with
10 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dfd9c5b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get the following error even with version 1.7 PhpSpreadsheet.
Seems like $clr->alpha can be null. Unfortunately, the sheet this has a problem with, I'm not at liberty to share. Do you think a similar isset($clr->alpha) is warranted?
Fatal error: Uncaught Error: Call to a member function attributes() on null in /var/www/html/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php:1732 Stack trace: #0 /var/www/html/NBUIExcelReader.php(57): PhpOffice\PhpSpreadsheet\Reader\Xlsx->load('/var/www/html/u...') #1 /var/www/html/NBUIExcelReader.php(92): NBUIExcelReader->loadSheetWithoutFilter() #2 /var/www/html/upload-manager.php(61): NBUIExcelReader->readFullFile() #3 {main} thrown in /var/www/html/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php on line 1732