diff --git a/piwik.php b/piwik.php index 271825f81a6693c56492d610c6cf1c718c6d615d..edce11447e4bd9f8a9eaf58201ff4b405e15a4ec 100644 --- a/piwik.php +++ b/piwik.php @@ -67,11 +67,15 @@ require_once PIWIK_INCLUDE_PATH . '/core/Tracker/Cache.php'; require_once PIWIK_INCLUDE_PATH . '/core/Tracker/Request.php'; require_once PIWIK_INCLUDE_PATH . '/core/Cookie.php'; -Tracker::loadTrackerEnvironment(); - session_cache_limiter('nocache'); @date_default_timezone_set('UTC'); +try { + Tracker::loadTrackerEnvironment(); +} catch (Exception $e) { + // eg. Piwik is not installed yet +} + $tracker = new Tracker(); $requestSet = new RequestSet();