View Issue Details

IDProjectCategoryView StatusLast Update
0006990OXID eShop (all versions)4.02. Session handlingpublic2022-03-23 09:40
Reporter[email protected] Assigned To 
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionunable to reproduce 
Summary0006990: On ever page, I get an error "Warning: ini_set(): A session is active. You cannot change the session module's ini settings at.."
Description( ! ) Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time in /var/www/oxideshop/source/bootstrap.php on line 204
Call Stack
# Time Memory Function Location
1 0.0013 362328 {main}( ) .../index.php:0
2 0.0027 363096 require_once( '/var/www/oxideshop/source/bootstrap.php' ) .../index.php:7
3 0.2124 1404600 ini_set ( ) .../bootstrap.php:204
TagsNo tags attached.
ThemeFlow
BrowserFirefox
PHP Version7.1
Database VersionNot defined

Activities

QA

2019-05-31 11:59

administrator   ~0012902

Hi,

I couldn't reproduce this case. But I guess, a modification of a file is the reason for this message.
On a original bootstrap file of the latest version the line 204 is empty: https://github.com/OXID-eSales/oxideshop_ce/blob/master/source/bootstrap.php#L204
Furthermore, the shop will start the session by calling the Method OxidEsales\EshopCommunity\Core\Oxid::run(); which is called after including the bootstrap file.
So something will start the session before executing the file bootstrap, which causes this error message.

It is also possible, that the PHP ini file was adapted and the session is started on the very beginning of the request: https://github.com/php/php-src/blob/master/php.ini-production#L1345
This should also off.

Else I need further information how to reproduce the case on a default system.

-MK

QA

2022-03-23 09:40

administrator   ~0013807

No feedback, not able to reproduce.
- MK