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

Compatibility issue with PHPExcel and PHPWord. #1036

Open
EKovalevich opened this issue Apr 3, 2017 · 3 comments
Open

Compatibility issue with PHPExcel and PHPWord. #1036

EKovalevich opened this issue Apr 3, 2017 · 3 comments

Comments

@EKovalevich
Copy link

EKovalevich commented Apr 3, 2017

Hello.
Error loading class ZipArchive:

Attempted to load class "ZipArchive" from the global namespace.
Did you forget a "use" statement for e.g. "PHPExcel_Shared_ZipArchive" or "PhpOffice\PhpWord\Shared\ZipArchive"

Code referenced by the error:

in vendor/phpoffice/phpword/src/PhpWord/Shared/ZipArchive.php at line

$zip = new \ZipArchive();

Composer version, relatively solve my problem:

"liuggio/excelbundle": "^2.1",
"psliwa/pdf-bundle": "^1.0",
"zendframework/zend-stdlib": "2.4.9",
"phpoffice/phpword": "^0.13.0"

Please tell me how to solve this conflict?


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Slavenin
Copy link

Slavenin commented Apr 7, 2017

http:https://php.net/manual/en/zip.installation.php

@troosan
Copy link
Contributor

troosan commented Jul 13, 2017

If you are running on linux, was your php version compiled with zip support?
Can you post your code so we can try to reproduce?

@FBnil
Copy link

FBnil commented Oct 8, 2017

Maybe a composer dump-autoload ?

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

No branches or pull requests

4 participants