Skip to content

fix(core): CLI cookie warning headers already sent - #7

Closed
elcreator wants to merge 1 commit into
3.5.xfrom
fix/cli-headers-already-sent
Closed

fix(core): CLI cookie warning headers already sent#7
elcreator wants to merge 1 commit into
3.5.xfrom
fix/cli-headers-already-sent

Conversation

@elcreator

@elcreator elcreator commented Sep 9, 2026

Copy link
Copy Markdown
Owner

The CLI installer includes index.php after it has already printed, so PHP considers the headers sent by the time the session settings are applied. Every CLI install (including the sqlite build that produces the nightly zip) emitted four warnings:

Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /var/www/html/index.php on line 86
Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /var/www/html/index.php on line 87
PHP Warning:  ini_set(): Session ini settings cannot be changed after headers have already been sent in /var/www/html/core/functions/session_proxy.php on line 61
PHP Warning:  session_id(): Session ID cannot be changed after headers have already been sent in /var/www/html/core/functions/session_proxy.php on line 67

The CLI installer includes index.php after it has already printed, so PHP
considers the headers sent by the time the session settings are applied.
Every CLI install therefore emitted four warnings:

  Warning: ini_set(): Session ini settings cannot be changed after headers
  have already been sent in index.php on line 86
  Warning: ini_set(): Session ini settings cannot be changed after headers
  have already been sent in core/functions/session_proxy.php on line 61
  Warning: session_id(): Session ID cannot be changed after headers have
  already been sent in core/functions/session_proxy.php on line 67

All of them address cookies and headers, which do not exist on CLI. Skip
them there; $_SESSION is still filled by the merge that follows in
EvoSessionProxy::init(), so nothing else changes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RYzFvo3wBzPhLzhG4Dkzk2
@elcreator elcreator closed this Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant