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

Trouble with "check system": Entry Piwik\Plugins\Diagnostics\DiagnosticService cannot be resolved: #8014

Closed
simpleuser99 opened this issue May 28, 2015 · 18 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@simpleuser99
Copy link

Hello!
When I click on "check system" I see next messages:

Entry Piwik\Plugins\Diagnostics\DiagnosticService cannot be resolved: The parameter 'mandatoryDiagnostics' of Piwik\Plugins\Diagnostics\DiagnosticService::__construct has no value defined or guessableFull definition:Object ( class = Piwik\Plugins\Diagnostics\DiagnosticService scope = singleton lazy = false __construct( $mandatoryDiagnostics = #UNDEFINED# $optionalDiagnostics = #UNDEFINED# $disabledDiagnostics = #UNDEFINED# ))

Please,help me. How can I fix it?
P.S. I use piwik version 2.13.1

@mnapoli
Copy link
Contributor

mnapoli commented May 28, 2015

Is it during the installation or in the admin section? In any case this looks like a classic error of files that were not all uploaded, could you try uploading the latest Piwik version manually?

@mnapoli
Copy link
Contributor

mnapoli commented May 28, 2015

Closing preemptively, we'll reopen if there is indeed a bug.

@mnapoli mnapoli closed this as completed May 28, 2015
@mnapoli mnapoli added the answered For when a question was asked and we referred to forum or answered it. label May 28, 2015
@simpleuser99
Copy link
Author

Is it happen in the admin section. I uploaded the latest Piwik version manually by the http://piwik.org/docs/update/ instruction "The Manual Three-Step Update" and I have the same problem.

@mnapoli
Copy link
Contributor

mnapoli commented May 29, 2015

Could you check that the Diagnostics plugin is activated in the administration? Maybe the upgrade to 2.13.1 (which should have activated this plugin) failed somehow. You can activate the plugin manually with the following command: ./console plugin:activate Diagnostics (or manually in your config.ini.php)

@simpleuser99
Copy link
Author

Thank you! Diagnostics plugin was deactivated. I activate it and i don't have problem already

@mattab
Copy link
Member

mattab commented Jun 8, 2015

Maybe we can make Piwik core work when the Diagnostics plugin is disabled?

@mattab mattab reopened this Jun 8, 2015
@simpleuser99
Copy link
Author

I use Piwik without problem, except "check system" on admin panel

@mnapoli
Copy link
Contributor

mnapoli commented Jun 8, 2015

@mattab the system check is the first step of the installation

@mattab
Copy link
Member

mattab commented Jun 8, 2015

maybe user had the warning message in the other place: Administration > System check?

@mnapoli
Copy link
Contributor

mnapoli commented Jun 8, 2015

I think we are discussing about different things. The diagnostics plugin provide the system check feature. That plugin is mandatory and enabled by default.

What was most probably experienced here (see the comments above) is that the upgrade to Piwik 2.13 was done but somehow the upgrade script didn't run correctly and didn't active the diagnostics plugin, leaving Piwik in a corrupted state.

@mattab
Copy link
Member

mattab commented Jun 8, 2015

That plugin is mandatory and enabled by default.

Ok, if Piwik breaks when this plugin is deactivated, we can enforce it being always activated by adding it to: $pluginToAlwaysActivate array in Plugin\Manager. likely we missed this in the review?

@mnapoli
Copy link
Contributor

mnapoli commented Jun 8, 2015

OK I thought that adding it to global.ini.php was enough. I'm adding it to $pluginToAlwaysActivate then.

@mnapoli mnapoli closed this as completed in d800b57 Jun 8, 2015
@jmaupetit
Copy link

Hi there. This problem still occurs during installation phase with 2.14.1 How can I help you to debug this?

@mnapoli
Copy link
Contributor

mnapoli commented Jul 20, 2015

@jmaupetit could you check that everything was uploaded correctly? If you are installing Piwik from scratch, the "system check" should show a warning if some files were not uploaded correctly (if you have no warning there, it's good).

If you are updating Piwik, it sometimes fails to overwrite all files. What you can do is reupload Piwik manually.

If after that you still have the problem let me know

@jmaupetit
Copy link

Thank you for the reply. I was upgrading Piwik inside a Docker container and the container cache trapped me! Sorry for the noise.

@larsen0815
Copy link

I am experiencing this error with 2.14.2 (manually updated via SSH using latest.zip) when I go to "Administration > Diagnostic > System Check".

The console command tells me "The plugin is already activated."
In "config/config.ini.php" 'there is "PluginsInstalled[] = "Diagnostics"'.

@mnapoli
Copy link
Contributor

mnapoli commented Jul 30, 2015

@larsen0815 Could you trying reuploading the latest version of Piwik manually? (there are often issues with the updater). If the issue is still there, could you create a separate issue? (and try to run the command diagnostics:run and tell us what happen?)

@larsen0815
Copy link

Created ticket #8479

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

5 participants