Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Piwik class is not available in tracking mode and whenever a plugin fails to load we should log this. For now I just disable and comment out the line.
- Loading branch information
d534d4f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, created ticket at: http://dev.piwik.org/trac/ticket/3824
To fix properly, if one day we rewrite the logging mechanism, we should include KISS, and include it Tracker as well (this would deprecate the printDebug() calls)
d534d4f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@halfdan
Please note that there's another call to Piwik::log (which was the cause of the error in the forum post), in loadPlugin().
This should get commented also.
d534d4f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@blueyed, good catch. Fixed it! Thank you for the report.
d534d4f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@halfdan I am not sure, if this is intended, but while the commit above returns, the new one throws an Exception..
Does the new commit (384e248) break tracking, in case the code path gets hit? That should not happen (i.e. Piwik should not completely bail out).
d534d4f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the way it worked before my initial change to Piwik::log - see https://github.com/piwik/piwik/blob/f419aca5cae09792f879e5570c51da699d658599/core/PluginsManager.php#L371
There are also a few other exceptions that will cause tracking to stop. I agree though, that a missing plugin should not cause tracking to fail. I'll look into it.
d534d4f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A fix would be VERY nice. I ran into the same problem. I walked through my config and searched for the non-existing plugin which breaks tracking and removed it from the configs -> works now again. BTW: running 1.11.1
👍