-
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
Error from dependency zipstream-php MyCLabs\Enum\Enum #3786
Comments
Our unit test suite runs with both ZipStream3 (nightly) and ZipStream2 (8.0, 8.1, 8.2), and none of those report a problem. It sounds like there is a problem in your environment, possibly due to Composer caching. Please see #3615 (comment) and other comments in that thread for suggestions. |
Tahnk you very much, I am going to check that. |
No update in 9 months, closing. |
Hi all, I'm having exactly the same propblem. Using 3.3.0 I get the same issue. The current dependency in your JSON file is set to: Here's the error:
Many thanks! :) |
PhpSpreadsheet can handle either version of ZipStream. You have a problem with your composer cache. Please see #3615 (comment) |
Yup - I had already tried that but to no avail. Can you please explain HOW your code can use bother versions when your code calls a file that no longer exists in Zipstream version 3?? You code calls: |
Sure, you can tell by looking at your stack trace. The code calls |
This is a bug report:
It seems there is an issue in
zipstream-php/src/Option/Archive.php
In line 7 they write: use MyCLabs\Enum\Enum;
This dependecy does not match with any calsspath.
I checked the zipstream library out and I see they fixed this issue, do you maybe need to upgrade your dependency to the latest version?
Stack trace:
[ERROR] NOTICE: PHP message: PHP Fatal error: Uncaught Error: Class "MyCLabs\Enum\Enum" not found in /home/site/wwwroot/vendor/maennchen/zipstream-php/src/Option/Method.php:18
[ERROR] Stack trace:
[ERROR] #0 /home/site/wwwroot/vendor/composer/ClassLoader.php(444): include()
[ERROR] #1 /home/site/wwwroot/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/home/site/wwwr...')
[ERROR] #2 /home/site/wwwroot/vendor/maennchen/zipstream-php/src/Option/Archive.php(131): Composer\Autoload\ClassLoader->loadClass('ZipStream\Optio...')
[ERROR] #3 /home/site/wwwroot/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/ZipStream2.php(15): ZipStream\Option\Archive->__construct()
[ERROR] #4 /home/site/wwwroot/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/ZipStream0.php(15): PhpOffice\PhpSpreadsheet\Writer\ZipStream2::newZipStream(Resource id #27)
[ERROR] #5 /home/site/wwwroot/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php(548): PhpOffice\PhpSpreadsheet\Writer\ZipStream0::newZipStream(Resource id #27)
[ERROR] #6 /home/site/wwwroot/src/Controllers/UnitExcelExporter.php(169): PhpOffice\PhpSpreadsheet\Writer\Xlsx->save('php://output')
[ERROR] #7 /home/site/wwwroot/vendor/fabiomattei/uglyduckling/src/Common/Controllers/Controller.php(255): Fabiom\UDDemo\Controllers\UnitExcelExporter->getRequest()
[ERROR] #8 /home/site/wwwroot/index_saml.php(161): Fabiom\UglyDuckling\Common\Controllers\Controller->showPage()
[ERROR] #9 /home/site/wwwroot/index.php(11): require('/home/site/wwwr...')
[ERROR] #10 {main}
[ERROR] thrown in /home/site/wwwroot/vendor/maennchen/zipstream-php/src/Option/Method.php on line 18
The text was updated successfully, but these errors were encountered: