Open joseph-sabido opened 7 years ago
I'm having this exact same issue. I've had no problems reading files with images previously, and now I'm getting these errors.
On one of my worksheets, in Excel I went to "View > Header and Footer..." and displayed the headers/footers. The header had an image in it. When I removed the image this error went away.
Calling $phpexcel_reader->load() on a Excel2007 file fails with the following errors:
Upon investigating it looks like the XLSM file is lacking some of the .rels files, which is causing the crash. The crash is avoided if the following code (lines 1384-1388 in Excel2007.php) is wrapped in IF statements validating the $relsVML variable:
Before:
After:
Also, the code in lines 1400-1418 needs to be wrapped in a validation:
Before:
After: