?
avatar jsanchezgr
jsanchezgr
30 May 2017

After upgrading to 3.7.2 in my dev environment, it seems that session does not work on nginx + phpbrew

Steps to reproduce the issue

  1. In the configuration.php file set public $session_handler = 'none';
  2. Try to load any page / login

Expected result

Normal behavior

Actual result

Error displaying the error page

System information (as much as possible)

Ubuntu 16.04 LTS
nginx 1.10.0
php 7.1.5 + fpm

Additional comments

The error happens when Joomla! tries to start the session with no success in /libraries/joomla/session/handler/native.php

if (!session_start())
{
      throw new RuntimeException('Failed to start the session');
}

In configuration.php if I set public $session_handler = 'database'; everything works fine.

avatar jsanchezgr jsanchezgr - open - 30 May 2017
avatar joomla-cms-bot joomla-cms-bot - change - 30 May 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 30 May 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 30 May 2017
Category Administration
avatar tonypartridge
tonypartridge - comment - 2 Jun 2017

Why is session handler set to none? This is not possible in the Joomla! configuration page. It should always be database or file.
screen shot 2017-06-02 at 16 01 52

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Jun 2017
Status New Information Required
avatar andrepereiradasilva
andrepereiradasilva - comment - 3 Jun 2017

i have nginx and cannot confirm the issue

anyway the session handler doesn't have nothing to do with nginx. nginx does not process the sessions.

The session handler "PHP" (the config public $session_handler = 'none';), get the session handler and save path from the values configured in the php environment: php.ini (or in some cases in php-fpm pools config files).

Check your log files for errors.
Check your php.ini configs session.save_handler = xxxxx and session.save_path = xxxxx

See #8565 (comment) for more info

@franz-wohlkoenig imho this can be closed

avatar franz-wohlkoenig franz-wohlkoenig - change - 3 Jun 2017
Status Information Required Closed
Closed_Date 0000-00-00 00:00:00 2017-06-03 12:27:23
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - close - 3 Jun 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 Jun 2017

closed as suggested.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16364.

avatar joomla-cms-bot
joomla-cms-bot - comment - 3 Jun 2017

Add a Comment

Login with GitHub to post a comment