To content | To menu | To search

Nextcloud で You cannot change the session module's ini settings

Nextcloud でログイン時にエラー。

ログをみたら、

ini_set(): Headers already sent. You cannot change the session module's ini settings at this time at /usr/local/www/nextcloud20/lib/base.php#410

というもの。

Nextcloud のバージョンは 20.0.1 。PHP は 7.4.12 。OS は FreeBSD 12.1-RELEASE-p10。Web サーバーは 1.18.0 。SSL で運用。

Workaround としてとりあえず、php.ini で以下を設定。

session.cookie_secure = true

そして問題の起きた行をコメントアウト。

if (self::$server->getRequest()->getServerProtocol() === 'https') {
    //ini_set('session.cookie_secure', true);
}

2020 Nov 18 追記

ini_set('session.cookie_httponly', 'true'); でも起きた。

2020 Nov 25 追記

Nextcloud 20.0.2 でも起きた。

Add a comment

HTML code is displayed as text and web addresses are automatically converted.

They posted on the same topic

Trackback URL : https://www.pseudomoon.jp/dotclear/index.php?trackback/124

This post's comments feed