Skip to content

Get a notice while try to load import file #602

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

Closed
SimonJan opened this issue Jul 15, 2018 · 6 comments
Closed

Get a notice while try to load import file #602

SimonJan opened this issue Jul 15, 2018 · 6 comments
Labels

Comments

@SimonJan
Copy link

While I'm trying to load import file (xlsx) I get a notice:

Notice: Undefined index: in ../phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php on line 1757

It's only happen if the import's file have a image column - that inserted by "Pickture from file"

Thanks

@stale
Copy link

stale bot commented Sep 13, 2018

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 13, 2018
@SimonJan
Copy link
Author

test-with-image.xlsx
Sorry, not yet. This is file I used to import. When I tried to read the file:
$reader = \PhpOffice\PhpSpreadsheet\IOFactory::createReader($inputFileType); $spreadsheet = $reader->load($import_file);
( I tested on v1.3, 1.3.1 and 1.4)

I got these errors:
`( ! ) Notice: Undefined index: in /homectl/wmec/live/..../vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php on line 1702

( ! ) Warning: PhpOffice\PhpSpreadsheet\Reader\Xlsx::getArrayItem(): Node no longer exists in /homectl/wmec/live/.../vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php on line 2328

( ! ) Warning: PhpOffice\PhpSpreadsheet\Reader\Xlsx::getArrayItem(): Node no longer exists in /homectl/wmec/live/.../vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php on line 2328

( ! ) Fatal error: Uncaught Error: Call to a member function attributes() on null in /homectl/wmec/live/.../vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php on line 1724

( ! ) Error: Call to a member function attributes() on null in /homectl/wmec/live/.../vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Reader/Xlsx.php on line 1724
`
Thanks

@stale stale bot removed the stale label Sep 14, 2018
@damijanc
Copy link

This file is super strange. It contains links to other files. I believe this is not supported in the library.

@SimonJan
Copy link
Author

SimonJan commented Sep 14, 2018

Ok thanks @damijanc.
But in that case, can we agree with null value (or skip/pass it ) without errors?
If yes, can you update on the new version?

Thanks

@damijanc
Copy link

damijanc commented Sep 17, 2018

I am not a maintainer of the library, just a user. The best way to get it fixed is to provide a pull request.

@stale
Copy link

stale bot commented Nov 16, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants