simple-excel-php icon indicating copy to clipboard operation
simple-excel-php copied to clipboard

Undefined index: Type in Parser/XMLParser.php

Open vimruler opened this issue 9 years ago • 1 comments

Tried to import Excel XML and received an error:

Severity: Notice Message: Undefined index: Type Filename: Parser/XMLParser.php Line Number: 65

In line 65 of Parser/XMLParser.php the following code :

    $cell_datatype = $data_attrs['Type'];

Error disappeared when corrected code like this:

    $cell_datatype = $data_attrs[0]['@attributes']['Type'];

PS: I used SimpleExcel 0.4.0-beta

vimruler avatar Mar 14 '15 08:03 vimruler

What version of Excel and what version of XML did you export as?

davidjeddy avatar Apr 26 '16 14:04 davidjeddy