Clément MARTZLOFF
Clément MARTZLOFF

Reputation: 372

Symfony 3: I can't install ckeditor

When I follow this documentation to "Integrating IvoryCKEditorBundle to Create a WYSIWYG Editor" in my app, I get the following error:

[Symfony\Component\Debug\Exception\ClassNotFoundException] Attempted to load class "ZipArchive" from the global namespace.  Did you forget a "use" statement?

This happens at the step 4. I really have no idea about what could triggers this error. Due to my OS configuration? PHP Version? Symfony config? Etc?

Upvotes: 2

Views: 1141

Answers (2)

Motxila dev
Motxila dev

Reputation: 99

please note that you can also change the php version, for 5.6 use sudo apt-get install php5.6-zip

Upvotes: 2

startstek
startstek

Reputation: 31

I encountered the same issue today and tried the solution proposed in the comments by Malcom (thanks, Malcom - it worked!):

sudo apt-get install php7.0-zip

Upvotes: 3

Related Questions