Failed loading of an Excel2007 file

Topics: User Forum
Mar 17, 2014 at 6:01 PM
Edited Mar 20, 2014 at 10:10 AM
Hi all !

Using last version (1.8.0), i'm trying to load an Excel file, but the reading fails.
Here are the messages :

( ! ) Notice: Trying to get property of non-object in .../PHPExcel/Classes/PHPExcel/Reader/Excel2007.php on line 1378
( ! ) Warning: Invalid argument supplied for foreach() in .../PHPExcel/Classes/PHPExcel/Reader/Excel2007.php on line 1378
( ! ) Notice: Undefined offset: 0 in .../PHPExcel/Classes/PHPExcel/Reader/Excel2007.php on line 1394
( ! ) Fatal error: Call to a member function attributes() on a non-object in .../PHPExcel/Classes/PHPExcel/Reader/Excel2007.php on line 1396

The first notice seems to be the result of an error in simplexml_load_string, thus returning false instead of an object that can be parsed below...

If you have any idea on what the problem might be, do not hesitate :)

Thank you !
Mar 28, 2014 at 3:37 PM
Any ideas ?
Apr 7, 2014 at 2:22 PM
Hum... Something "stuck" when PHPExcel tries to read the link to images of a header or footer. We should learn more about what he seeks. See the guilty sheet .rels file would help, so to know if targets exist. (or xlsx file complete if there is no confidential data, or a redacted file has the same problem).
Note: If you can use readDataOnly, the problem should not occur.