diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-09-30 10:11:35 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-09-30 16:05:47 +0400 |
commit | 494d826ab4874ea85d55ce7e47b432abe35a4a5d (patch) | |
tree | 82d65784b0a509539022d559a45754bcb2f1f208 /core/Session.php | |
parent | e2de21361ae1a858e3b339fdb3b040b0429dac4f (diff) |
Refs #4133
Diffstat (limited to 'core/Session.php')
-rw-r--r-- | core/Session.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/Session.php b/core/Session.php index 221c62bac2..5f3c765a7a 100644 --- a/core/Session.php +++ b/core/Session.php @@ -128,9 +128,11 @@ class Session extends Zend_Session we recommend that you <a href='http://piwik.org/faq/how-to-install/#faq_133' target='_blank'>enable database session storage</a>."; } + $pathToSessions = Filechecks::getErrorMessageMissingPermissions(Filesystem::getPathToPiwikRoot() . '/tmp/sessions/'); + $pathToSessions = SettingsPiwik::rewriteTmpPathWithHostname($pathToSessions); $message = sprintf("Error: %s %s %s\n<pre>Debug: the original error was \n%s</pre>", Piwik_Translate('General_ExceptionUnableToStartSession'), - Filechecks::getErrorMessageMissingPermissions(Filesystem::getPathToPiwikRoot() . '/tmp/sessions/'), + $pathToSessions, $enableDbSessions, $e->getMessage() ); @@ -146,6 +148,7 @@ class Session extends Zend_Session */ public static function getSessionsDirectory() { + //tmp return PIWIK_USER_PATH . '/tmp/sessions'; } } |