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 with non-installed Piwik #7759
Comments
First step done (fixed the console in de925df) |
if you add the plugin to: |
@mnapoli okay great. But my point is, for a user cloning the piwik repository newly, after updating composer with CLI, it should work, right? or plus using command "git pull upstream master", the piwik site should load without issues because it's a fresh clone. But I kept getting PHP-DI class not found error. Okay, let me check it after a few hours because you have made commits and report it to you later. |
@saleemkce could you restore the original @mattab I've tried this one but it doesn't seem to work. The comment says
|
@mnapoli Do you say that "composer.json" from this https://github.com/piwik/piwik/blob/master/composer.json ? Because now I am confused, because before using "git clone ... " I removed my local piwik folder completely + data base after taking backup. So "git clone ..." have provided only the latest composer.json. Am I right? |
@saleemkce yes use the |
@mnapoli okay, as I am away from home and don't have access to local piwik application, I will report it later today. Thanks. |
@mnapoli Awesome, I replaced the composer.json and ran "composer install". My app is now back. The issue is PHP-DI is fixed by your latest commit. Thanks. Additionally, could you please look into this http://forum.piwik.org/read.php?9,126057 and suggest me? |
Still don't know about that, I'm curious if you have an answer @mattab |
Currently if we download Piwik but don't run the installer, the CLI console will not work. This is because the container doesn't have the config file of the Diagnostics plugin added, so the
DiagnosticService
cannot be created. This is the kind of issues I was trying to avoid in #7175.I will fix this regression by getting the service lazily in the
diagnostic:run
command. However maybe this Diagnostics plugin should be enabled by default (even in noconfig.ini.php
config exists). By the way I have no idea how the installer runs without loading some of the plugins. So the question is how do I make a plugin be loaded by default, even if Piwik is not installed?The text was updated successfully, but these errors were encountered: