-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
IOFactory::createReaderForFile throws an exception for xls file #408
Comments
The same code is giving the 500 error on my ubuntu machine. The |
Maybe you can check your php logs and post here as well as the code that you are executing ... |
Here is my code. If I print the $reader object, it is printing but code is giving 500 Error. |
The |
I got the solution. It was issue of the extensions. |
@salman-nadsoft , what's the solution? I have same problem.. thank you.. |
@ipzelhakim , There are some extensions required by this library like xml, mbstring etc. That extensions was not there in my php. I have installed those extensions and it worked. You will get the required extension list here: https://phpspreadsheet.readthedocs.io/en/develop/ |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
@banstola I have the extensions installed and am using require "vendor/autoload.php"; and I still get the same exception thrown. Any idea what I could do to fix this? |
@arya108 Heya, I think I got the same issue as you have (been seeing your username for the last hour or so lol) if you find the answer, would you mind tagging me? I ll do the same of course edit : heya again @arya108, it was an error in my dataset (that comes from a work related app) something went wrong in a line. removing the affected characters solved my issue. hope this helps |
This is:
What is the expected behavior?
Should read the the active sheet into an array
What is the current behavior?
Throws and excpetion with message :
Unable to identify a reader for this file in -[REMOVED]/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/IOFactory.php on line 153
What are the steps to reproduce?
See what is expected behaviour . Use a xls file .
Which versions of PhpSpreadsheet and PHP are affected?
Packages used.
The
canRead
method of Xls class returnsfalse
in the new library while same method returnstrue
in the old library that uses Excel5 class for thexls
files.possibly related to issue #402
The text was updated successfully, but these errors were encountered: