Open namespacebrian opened 2 years ago
We are also seeing a similar message: `Warning: ini_set(): Session ini settings cannot be changed when a session is active in Drupal\pantheon_domain_masking\Middleware\DomainMaskingMiddleware->handle() (line 88 of /code/web/modules/contrib/pantheon_domain_masking-master/src/Middleware/DomainMaskingMiddleware.php)
A customer is reporting this warning being thrown a lot:
Warning: ini_set(): A session is active. You cannot change the session module's ini settings at this time en Drupal\\pantheon_domain_masking\\Middleware\\DomainMaskingMiddleware->handle() (línea 88 de /code/docroot/modules/contrib/pantheon_domain_masking/src/Middleware/DomainMaskingMiddleware.php)
Line in the code here: https://github.com/pantheon-systems/pantheon_domain_masking/blob/master/src/Middleware/DomainMaskingMiddleware.php#L88
Would it be possible to wrap this
ini_set()
in a check to see if a session has already been started?This is just an idea/suggestion. This ticket can be closed if it's not helpful.