Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible loading a XLSX file using a Xlsx Reader #1320

Closed
astronati opened this issue Jan 14, 2020 · 3 comments
Closed

Impossible loading a XLSX file using a Xlsx Reader #1320

astronati opened this issue Jan 14, 2020 · 3 comments

Comments

@astronati
Copy link
Contributor

astronati commented Jan 14, 2020

This is:

- [x] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)

What is the expected behavior?

The reader of the XLSX should load the XLSX file without the error mentioned below.

What is the current behavior?

File: src/File/Reader/Provider/SpreadsheetProvider.php

$reader = new \PhpOffice\PhpSpreadsheet\Reader\Xlsx();
return $reader->load($filename);

I receive following error message:

Notice: Undefined index: $","trace":"#0 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Cell/Coordinate.php(198): PhpOffice\\PhpSpreadsheet\\Cell\\Coordinate::columnIndexFromString('$A')
#1 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Worksheet/AutoFilter.php(108): PhpOffice\\PhpSpreadsheet\\Cell\\Coordinate::rangeBoundaries('$A$1:$BC$77')
#2 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/AutoFilter.php(32): PhpOffice\\PhpSpreadsheet\\Worksheet\\AutoFilter->setRange('$A$1:$BC$77')
#3 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx/AutoFilter.php(25): PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\AutoFilter->readAutoFilter('$A$1:$BC$77', Object(SimpleXMLElement))
#4 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php(783): PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx\\AutoFilter->load()
#5 vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/IOFactory.php(93): PhpOffice\\PhpSpreadsheet\\Reader\\Xlsx->load('/tmp/5e1ee67f17...')
#6src/File/Reader/Provider/SpreadsheetProvider.php(25): PhpOffice\\PhpSpreadsheet\\IOFactory::load('/tmp/5e1ee67f17...')

Which versions of PhpSpreadsheet and PHP are affected?

from 1.7 to 1.10.1

@astronati astronati changed the title Reading a XLSX file generating an error Impossible loading a XLSX file using a Xlsx Reader Jan 14, 2020
@astronati
Copy link
Contributor Author

It will be fixed by #1326

@stale
Copy link

stale bot commented Mar 15, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this is still an issue for you, please try to help by debugging it further and sharing your results.
Thank you for your contributions.

@stale stale bot added the stale label Mar 15, 2020
@stale stale bot closed this as completed Mar 22, 2020
@oleibman
Copy link
Collaborator

Fixed by PR #1326.

@oleibman oleibman removed the stale label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants