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
misc/others/api_internal_call.php is broken #8311
Comments
Workaround to avoid this : matomo-org/matomo#8311. Error: Fatal error: Uncaught exception 'Piwik\Container\ContainerDoesNotExistException' with message 'The root container has not been created yet.' No regression test done. I pick corrections here : http://forum.piwik.org/read.php?2,127892.Fully functional in 3 different instances of piwik.
fixed in 47cf782 |
…xample script. Includes new proxy script that will call another script using Piwik's test environment, but w/o actually setting up the test env.
Hi @mattab - I applied the patch, but now I run into this:
Maybe I miss something? This is how I init the FrontController:
I'm not able to get WP-Piwik working again since Piwik 2.14.0. |
i just tested this fix with my problem (api renderer format not valid) and am still seeing the same error in the log:
|
@braekling maybe you need to add same two lines as in 47cf782 ? |
@propertunist what is your problem, the error message seems un-related? what is your script generating this error? |
@propertunist do you have the script source code used to reproduce this bug? |
do you need more than i already provided in the other ticket? e.g.
|
@mattab Adding these lines to my code causes the same issue as reported by @propertunist #8333:
(If I test my current development branch which already uses json, I get the related error message: |
this issue has not been fixed for me in 2.14.1. |
@braekling @propertunist the script api_internal_call.php is working now: http://demo.piwik.org/misc/others/api_internal_call.php please create a new issue for your problem and we will investigate - i'll set it to 2.14.2 milestone (since it looks like we will have another dot release later). thanks |
in the issue, it would really help if you can write a minimal script that we can use to reproduce your issue |
ok, i have provided that info in a new ticket here: #8365 |
To keep this clear, I added my script excerpt to @propertunist new ticket, too. #8365 |
* Several language updates. * Switch to JSON renderer (Piwik 3 compatibility preparation) * Workaround: PHP API will work with Piwik 2.14+, see matomo-org/matomo#8311 for further information. * Feature: Heartbeat timer support * Bugfix: Site duplication fix. * Bugfix: Avoid notice on empty overview response. * Bugfix: Return request error responses. git-svn-id: https://plugins.svn.wordpress.org/wp-piwik/trunk@1202986 b8457f37-d9ea-0310-8a92-e5e31aec5664
* Several language updates. * Switch to JSON renderer (Piwik 3 compatibility preparation) * Workaround: PHP API will work with Piwik 2.14+, see matomo-org/matomo#8311 for further information. * Feature: Heartbeat timer support * Bugfix: Site duplication fix. * Bugfix: Avoid notice on empty overview response. * Bugfix: Return request error responses. git-svn-id: https://plugins.svn.wordpress.org/wp-piwik/trunk@1202989 b8457f37-d9ea-0310-8a92-e5e31aec5664
Reported in forum: http://forum.piwik.org/read.php?2,127892
Error:
Fatal error: Uncaught exception 'Piwik\Container\ContainerDoesNotExistException' with message 'The root container has not been created yet.'
This error can be found in Piwik demo script - http://demo.piwik.org/misc/others/api_internal_call.php
This script is documented in: https://developer.piwik.org/guides/querying-the-reporting-api (and currently broken, see second half of page)
I found the bug report also on WP forum - https://wordpress.org/support/topic/after-update-to-piwik-2140-no-stats-website-broken.
The text was updated successfully, but these errors were encountered: