-
-
Notifications
You must be signed in to change notification settings - Fork 632
error in reading ziparchive through xmlreader #66
Comments
This seems like this issue is similar to what was fixed in #42. But this fix is part of the 1.0.10 version... |
@samirhshaikh Did you get this issue resolved with the new version of Spout? |
Thanks for response. And apologies for delayed reply. I updated to the latest version. But I am still getting the same error. It happens with all xlsx files. Even with the test files which comes with spout class. E.g. attact_billion_laughs.xlsx |
It's actually normal that it fails with the "attack_biliion_laughs.xlsx" but it should work with "one_sheet_with_shared_strings.xlsx" for instance. Thanks! |
Its giving same error with one_sheet_with_shared_strings.xlsx as well. Following are the environment details: Thanks. |
So I just tried and successfully managed to read a XLSX file on a config with:
I don't think the CentOS version makes any difference. Same for PHP as it's almost similar. Also, in your first message, you mentioned that you were using a "Debian Linux configuration". What did you mean by that? Were you talking about the OS? |
Debian Linux was the mistake. Sorry for that. I will upgrade LibXML version and try it out. Thanks. |
@samirhshaikh Is it working better after upgrading libxml? |
My system admin on vacation. So cannot upgrade libxml. It will be a while before he comes back. Will update you after upgrading it. Hopefully it should work. Thanks. |
Sounds good! |
@samirhshaikh Any update? |
Fixed with #126 |
I am getting following error when system tries to read ziparchive through xmlreader.
XLSX Error: Could not open <file_location> for reading! (Could not open "xl/sharedStrings.xml".)
Error occurs in extractSharedStrings() function in /Reader/Helper/XLSX/SharedStringsHelper.php file in the line where it tries to read the shared string file.
if ($xmlReader->open($sharedStringsFilePath, null....
In my system, I first upload the file in a temporary location (which is /tmp folder) and then give that location to spout class for reading.
We are using Debian Linux configuration. I checked and we have got php_zip, php_xmlreader, and php_simplexml installed. I am using 1.0.10 version of spout class.
Please help.
The text was updated successfully, but these errors were encountered: