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

latest php-di seems to break piwik #7664

Closed
arunpersaud opened this issue Apr 12, 2015 · 8 comments
Closed

latest php-di seems to break piwik #7664

arunpersaud opened this issue Apr 12, 2015 · 8 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@arunpersaud
Copy link

Hi

just upated to 2.12.1 and I get the following error:

Fatal error: Class 'DI\Definition\Source\ChainableDefinitionSource' not found in /home/arun /stats.nubati.net/core/Container/IniConfigDefinitionSource.php on line 20

Seems that php-di removed 'DI\Definition\Source\ChainableDefinitionSource'
in commit f54d3e8ac72a3cc60c31c4081f931495172d6766 [https://github.com/mnapoli/PHP-DI/commit/f54d3e8ac72a3cc60c31c4081f931495172d6766].

Don't really understand the code, but it seems that piwik needs to be updated for this, since
"composer update" is using php-di 5.0.x-dev, which seems to be the latest git-version with that file removed.

@arunpersaud
Copy link
Author

doing a "git checkout 56ac462" (e.g. before the above mentioned commit) in vendor/mnapoli/php-di seems to fix the issue

@mnapoli
Copy link
Contributor

mnapoli commented Apr 12, 2015

Hi @arunpersaud, yes I worked on PHP-DI this week end and was planning to update Piwik today ;)

However this problem shouldn't happen on your end because you shouldn't run composer update to install dependencies, instead you should use composer install which installs a specific version of PHP-DI (and the other dependencies). Do you have a custom setup that requires composer update?

@arunpersaud
Copy link
Author

no, I guess I have been using composer the wrong way and got lucky that it worked for the last years;) Will make sure that I run "composer install" in the future. Thanks

@mnapoli
Copy link
Contributor

mnapoli commented Apr 12, 2015

No worries thanks!

@mnapoli mnapoli closed this as completed Apr 12, 2015
@mnapoli mnapoli added the answered For when a question was asked and we referred to forum or answered it. label Apr 12, 2015
@quba
Copy link
Contributor

quba commented Apr 13, 2015

@mnapoli why are we not using fixed versions of dependencies? It's really hard to maintain, especially when using dev-master versions. It's also confusing for the end users.

@mnapoli
Copy link
Contributor

mnapoli commented Apr 13, 2015

@quba it shouldn't affect end users so it's not really a problem.

It's really hard to maintain

What is hard to maintain?

We are using the currently version in development because it's a development of the next major version based on the experience we have in Piwik. If we don't do that, then I would have to imagine some features needed for Piwik and release a 5.0 beforehand (some feature require BC breaks), and then if I was wrong Piwik is screwed and PHP-DI is screwed. The current situation is some sort of joint development (it's been working great for the past 5 months, I've only seen twice people doing composer update instead of composer install by mistake).

FYI I've worked intensely on PHP-DI the last week-end and I'm closing in on a 5.0 release, so hopefully it shouldn't be much longer. But again, I don't see where the problem is?

@saleemkce
Copy link
Contributor

@mnapoli I cloned a fresh Piwik copy yesterday and I got error in PHP-DI class not found error. I tried "composer install", it didn't work. Then removed vendor files and gave "composer udpate". It still doesn't work. Piwik is now broken; could you clarify what's the issue with new git clone?

@mnapoli
Copy link
Contributor

mnapoli commented Apr 24, 2015

@saleemkce this is a different issue, I have created a new ticket: #7759

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

4 participants