-
Notifications
You must be signed in to change notification settings - Fork 349
Closed
Labels
BugError or unexpected behavior of already existing functionalityError or unexpected behavior of already existing functionality
Description
Q | A |
---|---|
Sulu Version | 2.5 / 2.6 |
Symfony Version | 6.3 |
Related Issue | symfony/symfony#49387 |
Unrelated Issue | |
PHP Version | |
DB Version | |
Browser Version |
Actual Behavior
The current test environment is not compatible with Symfony 6.3 and ends up in this error:

PHP Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /home/runner/work/SuluContentBundle/SuluContentBundle/vendor/symfony/http-foundation/Session/Storage/Handler/NativeFileSessionHandler.php on line 49
PHP Warning: ini_set(): Session ini settings cannot be changed after headers have already been sent in /home/runner/work/SuluContentBundle/SuluContentBundle/vendor/symfony/http-foundation/Session/Storage/Handler/NativeFileSessionHandler.php on line 49
EEEE..........E..............................ESSSSSSESFSSSSSS.. 504 / 510 ( 98%)
...... 510 / 510 (100%)
Time: 00:08.519, Memory: 255.00 MB
There were 7 errors:
1) Sulu\Bundle\ContentBundle\Tests\Functional\Content\Infrastructure\Doctrine\DimensionContentQueryEnhancerTest::testGroupContentAdmin
ini_set(): Session ini settings cannot be changed after headers have already been sent
Expected Behavior
It should not error.
Steps to Reproduce
Run sulu/sulu tests on 6.3.
Workaround
Stay on Symfony 6.2 currently with adding following to composer.json
file:
"extra": {
"symfony": {
"require": "6.2.*"
}
}
Background
The issue happens because of gedmo
extensions. Calling: https://github.com/doctrine-extensions/DoctrineExtensions/blob/55e949979ae61f62378759bf50e0cea42767fba7/src/Tree/Hydrator/ORM/TreeObjectHydrator.php#L258 instance a service which tries todo something unexpectly.
Metadata
Metadata
Assignees
Labels
BugError or unexpected behavior of already existing functionalityError or unexpected behavior of already existing functionality