-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Excel2007 Without Styles throws warning #1134
Comments
We recently merged a commit for a similar issue in PHPOffice/PhpSpreadsheet#95, so I think it would make sense to also solve this one. Would you create a PR against PhpSpreadsheet develop branch ? |
Hi, i did solve by putting a try{}catch{} at line 555 of Excel2007.php (located at /vendor/phpoffice/phpexcel/Classes/PHPExcel/Reader/Excel2007.php) file where the
starts. The xlsx style xml does not contain cellStyleXfs tag. The issue is caused by a wrong interpretation of ISO/IEC 29500-1 standard. The minOccurs="0" for cellStyleXfs which indicates that this element is not required. The application should handle a non-existent cellStyleXfs element. My file was created by fileMaker. |
@filipposisti how exactly you resolved did you just put try catch and didn't modified the for loop code, i am getting this bug, thanks for your time. |
Hi, the foreach loop is inside a try{}catch{} block
just manage the catch part as you want. Sorry for the bad indenting of the code. |
Same thing for me (using phpoffice/phpspreadsheet), generated a file in FileMaker and got this error. Just open and save in Excel and you're good to go. |
Similar to this: #558
Line in question is:
Some debugging output:
I opened the xlsx file in question, resaved it and the error is gone. Assuming this error is related to some minor issue in the file. Would still be good to resolve - perhaps just a simple check against the property in question would suffice.
The text was updated successfully, but these errors were encountered: