8000 Symfony 6.3 Test Environment incompatibility `ini_set` issue · Issue #7086 · sulu/sulu · GitHub
[go: up one dir, main page]

Skip to content
Symfony 6.3 Test Environment incompatibility ini_set issue #7086
@alexander-schranz

Description

@alexander-schranz
Q A
Sulu Version 2.5 / 2.6
Symfony Version 6.3
Related Issue symfony/symfony#49387
Unrelated Issue  other 6.3 Issue: sulu/SuluArticleBundle#641
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:

Bildschirmfoto 2023-06-01 um 11 53 45
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

No one assigned

    Labels

    BugError or unexpected behavior of already existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0