Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Zend Framework 1 installed via Composer causes problems


Go to End


1062 Views

Avatar
x75

Community Member, 43 Posts

6 February 2016 at 4:14am

I have a PHP Library installed via composer that requires zendframework/zendframework1.
That causes composer to install "zendframework/zendframework1" into the vendor folder.

Since SilverStripe Framework already has Zend in "framework/thirdparty/Zend" I run into errors:

PHP message: PHP Fatal error:  Cannot redeclare class Zend_Locale in /framework/thirdparty/Zend/Locale.php on line 30

These errors only happen in a different module installed via composer that has no dependency for zendframework.

Any Ideas how to fix this?

Thanks
Johannes