{"action":"created","issue":{"url":"https://api.github.com/repos/piwik/piwik/issues/8365","labels_url":"https://api.github.com/repos/piwik/piwik/issues/8365/labels{/name}","comments_url":"https://api.github.com/repos/piwik/piwik/issues/8365/comments","events_url":"https://api.github.com/repos/piwik/piwik/issues/8365/events","html_url":"https://github.com/piwik/piwik/issues/8365","id":95535878,"number":8365,"title":"renderer format is not valid - fatal php error after 2.14.0","user":{"login":"propertunist","id":513903,"avatar_url":"https://avatars.githubusercontent.com/u/513903?v=3","gravatar_id":"","url":"https://api.github.com/users/propertunist","html_url":"https://github.com/propertunist","followers_url":"https://api.github.com/users/propertunist/followers","following_url":"https://api.github.com/users/propertunist/following{/other_user}","gists_url":"https://api.github.com/users/propertunist/gists{/gist_id}","starred_url":"https://api.github.com/users/propertunist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/propertunist/subscriptions","organizations_url":"https://api.github.com/users/propertunist/orgs","repos_url":"https://api.github.com/users/propertunist/repos","events_url":"https://api.github.com/users/propertunist/events{/privacy}","received_events_url":"https://api.github.com/users/propertunist/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/piwik/piwik/milestones/85","html_url":"https://github.com/piwik/piwik/milestones/2.14.2","labels_url":"https://api.github.com/repos/piwik/piwik/milestones/85/labels","id":1211939,"number":85,"title":"2.14.2","description":"","creator":{"login":"mattab","id":466765,"avatar_url":"https://avatars.githubusercontent.com/u/466765?v=3","gravatar_id":"","url":"https://api.github.com/users/mattab","html_url":"https://github.com/mattab","followers_url":"https://api.github.com/users/mattab/followers","following_url":"https://api.github.com/users/mattab/following{/other_user}","gists_url":"https://api.github.com/users/mattab/gists{/gist_id}","starred_url":"https://api.github.com/users/mattab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattab/subscriptions","organizations_url":"https://api.github.com/users/mattab/orgs","repos_url":"https://api.github.com/users/mattab/repos","events_url":"https://api.github.com/users/mattab/events{/privacy}","received_events_url":"https://api.github.com/users/mattab/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":5,"state":"open","created_at":"2015-07-16T21:22:07Z","updated_at":"2015-07-20T13:06:51Z","due_on":"2015-07-29T22:00:00Z","closed_at":null},"comments":3,"created_at":"2015-07-16T21:37:11Z","updated_at":"2015-07-20T13:40:00Z","closed_at":null,"body":"as requested, here is the source code for this issue (https://github.com/piwik/piwik/issues/8333) that has persisted beyond the recent release of piwik - 2.14.0. \r\n\r\nthis code includes the workaround that appeared in the forum that i have mentioned several times already. without the workaround, there is a fatal error relating to a container not being available yet (or similar error) and with the workaround, i see a fatal error of this form:\r\n\r\nrenderer format 'json' not valid. try any of the following instead.\r\n\r\nmy code here worked fine before the 2.14.0 upgrade.\r\n\r\n```\r\n define('PIWIK_INCLUDE_PATH', $piwik_local_path);\r\n\r\n    define('PIWIK_ENABLE_DISPATCH', false);\r\n    define('PIWIK_ENABLE_ERROR_HANDLER', false);\r\n    define('PIWIK_ENABLE_SESSION_START', false);\r\n\r\n    // if you prefer not to include 'index.php', you must also define here PIWIK_DOCUMENT_ROOT\r\n    // and include \"libs/upgradephp/upgrade.php\" and \"core/Loader.php\"\r\n    require_once PIWIK_INCLUDE_PATH . \"/index.php\";\r\n    require_once PIWIK_INCLUDE_PATH . \"/core/API/Request.php\";\r\n\r\n    // Workaround for 2.14.0 bug\r\n    $environment = new \\Piwik\\Application\\Environment('tracker');\r\n    $environment->init();\r\n    \r\n    FrontController::getInstance()->init();\r\n    $current_IP = \\Spam\\LoginFilter\\get_ip();\r\n    if (($current_IP) && ($piwik_secret))\r\n    {\r\n        // This inits the API Request with the specified parameters\r\n        $request = new Request('\r\n                                module=API\r\n                                &method=UserCountry.getLocationFromIP\r\n                                &ip=' . $current_IP . '\r\n                                &format=Json\r\n                                &token_auth=' . $piwik_secret\r\n        );\r\n\r\n\r\n        // Calls the API and fetch XML data back\r\n        $result = $request->process();\r\n```"},"comment":{"url":"https://api.github.com/repos/piwik/piwik/issues/comments/122887351","html_url":"https://github.com/piwik/piwik/issues/8365#issuecomment-122887351","issue_url":"https://api.github.com/repos/piwik/piwik/issues/8365","id":122887351,"user":{"login":"propertunist","id":513903,"avatar_url":"https://avatars.githubusercontent.com/u/513903?v=3","gravatar_id":"","url":"https://api.github.com/users/propertunist","html_url":"https://github.com/propertunist","followers_url":"https://api.github.com/users/propertunist/followers","following_url":"https://api.github.com/users/propertunist/following{/other_user}","gists_url":"https://api.github.com/users/propertunist/gists{/gist_id}","starred_url":"https://api.github.com/users/propertunist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/propertunist/subscriptions","organizations_url":"https://api.github.com/users/propertunist/orgs","repos_url":"https://api.github.com/users/propertunist/repos","events_url":"https://api.github.com/users/propertunist/events{/privacy}","received_events_url":"https://api.github.com/users/propertunist/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T13:40:00Z","updated_at":"2015-07-20T13:40:00Z","body":"i have already performed a manual update - so that is not the issue here.\r\nthe code i have already provided is the only relevant code i have. the IP address is grabbed by an external function and the piwik 'secret' is grabbed from my app in an earlier line - but other than that the code is all here.\r\nto link you to a page on my test server where the code is running would result in nothing other than you seeing an error page and would require my server to be offline, since the code in question runs on all pages and breaks the page.\r\nin my case, i thought the request was an internal one, so there is no URL request, exactly.. afaik."}}