{"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":"closed","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":3,"closed_issues":6,"state":"open","created_at":"2015-07-16T21:22:07Z","updated_at":"2015-07-21T10:51:37Z","due_on":"2015-07-29T22:00:00Z","closed_at":null},"comments":17,"created_at":"2015-07-16T21:37:11Z","updated_at":"2015-07-21T19:16:05Z","closed_at":"2015-07-21T10:51:37Z","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/123450447","html_url":"https://github.com/piwik/piwik/issues/8365#issuecomment-123450447","issue_url":"https://api.github.com/repos/piwik/piwik/issues/8365","id":123450447,"user":{"login":"diosmosis","id":125140,"avatar_url":"https://avatars.githubusercontent.com/u/125140?v=3","gravatar_id":"","url":"https://api.github.com/users/diosmosis","html_url":"https://github.com/diosmosis","followers_url":"https://api.github.com/users/diosmosis/followers","following_url":"https://api.github.com/users/diosmosis/following{/other_user}","gists_url":"https://api.github.com/users/diosmosis/gists{/gist_id}","starred_url":"https://api.github.com/users/diosmosis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diosmosis/subscriptions","organizations_url":"https://api.github.com/users/diosmosis/orgs","repos_url":"https://api.github.com/users/diosmosis/repos","events_url":"https://api.github.com/users/diosmosis/events{/privacy}","received_events_url":"https://api.github.com/users/diosmosis/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T19:16:05Z","updated_at":"2015-07-21T19:16:05Z","body":"@propertunist Can you add an echo to the script before `$request = new Request(` and load a page in your website to see how many times it is being executed?"}}