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

Fatal error when loading file #1114

Closed
JulienChavee opened this issue Jul 29, 2019 · 16 comments · Fixed by #2308
Closed

Fatal error when loading file #1114

JulienChavee opened this issue Jul 29, 2019 · 16 comments · Fixed by #2308

Comments

@JulienChavee
Copy link

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 file can be loaded correctly.
If not, produce an elegant error instead an undefined index + fatal error.

What is the current behavior?

The library produce a fatal error :

Undefined offset: 3 in phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls.php in readLabelSst at line 3810

followed by

__clone method called on non-object in phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xls.php in readLabelSst at line 3810

What are the steps to reproduce?

Just reading an XLS file (probably corrupted).
I can't provide this file as it contains sensible informations.

Which versions of PhpSpreadsheet and PHP are affected?

We are actually using version 1.6.0 for PhpSpreadSheet
I'll try a bit later on latest version.

PHP : 7.3.6

@stevemueller-dreamsoft
Copy link

I got the same problem ;)
When I remove row 1 till 6 - it works.

image

@stevemueller-dreamsoft
Copy link

No ideas?

@stale
Copy link

stale bot commented Nov 8, 2019

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 Nov 8, 2019
@JulienChavee
Copy link
Author

This is still an issue.

@stale stale bot removed the stale label Nov 8, 2019
@stale
Copy link

stale bot commented Jan 7, 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 Jan 7, 2020
@JulienChavee
Copy link
Author

This is still an issue

@stale stale bot removed the stale label Jan 7, 2020
@stale
Copy link

stale bot commented Mar 7, 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 7, 2020
@JulienChavee
Copy link
Author

This is still an issue

@stale stale bot removed the stale label Mar 7, 2020
@stale
Copy link

stale bot commented May 6, 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 May 6, 2020
@JulienChavee
Copy link
Author

This is still an issue

@stale stale bot removed the stale label May 9, 2020
@tezrik
Copy link
Contributor

tezrik commented Jun 29, 2020

Can you give the file?

@JulienChavee
Copy link
Author

Hello,

Here an example

0000000000000000000870897 (1).xls.zip

@stale
Copy link

stale bot commented Sep 11, 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 Sep 11, 2020
@JulienChavee
Copy link
Author

This is still an issue

@stale stale bot removed the stale label Sep 11, 2020
@stale
Copy link

stale bot commented Dec 25, 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 Dec 25, 2020
@JulienChavee
Copy link
Author

This is still an issue.

@stale stale bot removed the stale label Dec 26, 2020
@tezrik tezrik mentioned this issue Sep 27, 2021
5 tasks
oleibman pushed a commit that referenced this issue Oct 3, 2021
* fix #1114 issues

* fixed code style

* update for all version

* add test for bag 1114

* remove comment

Co-authored-by: georgio <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants