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
Display safe mode when a third party plugin triggers error such as "Call to undefined method Piwik\Menu\MenuTop::add()" #10876
Comments
Where, in which file and line? |
Same here after update from 3.0.0-b2 to 3.0.0-b3: That screen appears after installing it with auto-update. |
Stack trace is empty in my server logs :( |
Any third party plugins installed? |
Found it, took me some Sorry for not getting back sooner, didn't have time. |
Thank you very much. Was also the BotTracker-Module here on my server. |
Maybe it would be useful for the plugin developer to know that. Could you create issues in their repos? |
Bottracker is already updated for Piwik 3, but somehow not showing up as an update. So completely uninstall and remove, then upload a zip from the repository fixes the issue as well. PerformanceMonitor seems to be unmaintained. |
I added the following content to the file ( piwik/core/Menu/MenuAdmin.php ):
|
@huye That kinda defies the whole idea of deprecating and removing the method, doesn't it? |
FYI: The plugin BotTracker doesn't show up for Piwik 3 because it currently requires a fixed PHP version of "5.3.10". I will send a PR to fix this |
I'm leaving this issue opened as maybe our Safe mode should have been displayed to let user disable easily plugin. Haven't tried to reproduce but I suspect Safe mode wasn't displayed for you? Safe mode looks like this: https://media.githubusercontent.com/media/piwik/piwik/3.x-dev/tests/UI/expected-screenshots/UIIntegrationTest_fatal_error_safemode.png |
@mattab Safe mode isn't displayed for me too. I disabled all of my optional plugins and I found that the plugin |
You can prevent this issue by disabling the PerformanceMonitor before you update Piwik. Leave it disabled until PerformanceMonitor gets an update, which fixes this issue. Otherwise, you need to comment out the line |
in the next Piwik version, the safe mode will be displayed for such errors (done in #11082 ). Closing as it's caused by a third party plugin |
After updating to beta 3, I get this error message. Nothing more.
The text was updated successfully, but these errors were encountered: