Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#2717 closed Bug (fixed)

Error "unable to start session" instead of a proper error message

Reported by: matt Owned by:
Priority: major Milestone: 1.7 Piwik 1.7
Component: Core Keywords:
Cc: Sensitive: no

Description

After upgrade to Piwik 1.6 many users are reporting "Unable to start session" messages. It seems to happen when the piwik/tmp/sessions directory is not writable.
INstead we should detect this before trying to start the session and if the directory is not writable, return the standard piwik error message showing the "chmod" help command.

Change History (5)

comment:1 Changed 2 years ago by matt (mattab)

See also a report in: http://forum.piwik.org/read.php?2,82920

Maybe the whole tmp/ folder should be checked more often?

comment:2 Changed 2 years ago by matt (mattab)

  • Priority changed from normal to major

Definitely a problem across the board...

problem writing temporary file '/var/www/vhosts/..../piwik/tmp/templates_c/wrt4ebc5ba68a6af'

http://forum.piwik.org/read.php?5,82929

comment:3 Changed 2 years ago by matt (mattab)

  • Resolution set to fixed
  • Status changed from new to closed

(In [5587]) Fixes #2717

  • Now displaying better error message including commands to type to fix the problem
  • Suggesting to enable db session when piwik is already installed (in case the of webhost /user changed directory permissions)

comment:4 Changed 2 years ago by matt (mattab)

(In [5588]) Refs #2717 - typo

comment:5 Changed 2 years ago by matt (mattab)

Solution to problem "session has already been started by session.auto-start or session_start()"

Set session.auto_start = Off in php.ini

Source: post

Note: See TracTickets for help on using tickets.