Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Critical error release 2.7.17 #6226

Closed
Niiph opened this issue Mar 16, 2024 · 7 comments
Closed

Critical error release 2.7.17 #6226

Niiph opened this issue Mar 16, 2024 · 7 comments

Comments

@Niiph
Copy link

Niiph commented Mar 16, 2024

API Platform version(s) affected: 2.7.17

Description
After yesterday's release I cant start php container:

In DebugClassLoader.php line 350:
php         | !!                                                                                 
php         | !!    The autoloader expected class "ApiPlatform\Core\Bridge\Symfony\Bundle\Depen  
php         | !!    dencyInjection\ApiPlatformExtension" to be defined in file "/srv/sylius/ven  
php         | !!    dor/composer/../api-platform/core/src/Core/Bridge/Symfony/Bundle/Dependency  
php         | !!    Injection/ApiPlatformExtension.php". The file was found but the class was n  
php         | !!    ot in it, the class name or namespace probably has a typo.  

this is how said file looks like:

<?php

/*
 */

declare(strict_types=1);

namespace ApiPlatform\Core\Bridge\Symfony\Bundle\DependencyInjection;

class_exists(\ApiPlatform\Symfony\Bundle\DependencyInjection\ApiPlatformExtension::class);

if (false) {
    final class ApiPlatformExtension extends \ApiPlatform\Symfony\Bundle\DependencyInjection\ApiPlatformExtension
    {
    }
}

Also, tests for this release failed, with the same exception:
https://github.com/api-platform/core/actions/runs/8298539077/job/22712127997

@farram
Copy link

farram commented Mar 17, 2024

I have the same problem since this morning ...

@algorun77
Copy link

Hello, same issue for my coworker and I since this morning, after a composer update upgrading api-platform/core from 2.7.16 to 2.7.17.
We temporarily resolved it by restoring the version to it's previous version:

symfony composer require api-platform/core 2.7.16

@toar86
Copy link

toar86 commented Mar 18, 2024

the same here, after updating get this error

@CaptainFry
Copy link

CaptainFry commented Mar 18, 2024

We face the same issue after a composer update

@michaljusiega
Copy link

Same issue. Looks like #6227 will fix this.

@Niiph
Copy link
Author

Niiph commented Mar 18, 2024

@michaljusiega it won't, there's the same exception in tests in this PR https://github.com/api-platform/core/actions/runs/8314885732/job/22752593386?pr=6227

lazka added a commit to digital-blueprint/relay-core-bundle that referenced this issue Mar 18, 2024
@soyuka
Copy link
Member

soyuka commented Mar 19, 2024

Really thought I would help by merging #6217 and as our 2.7 version is not maintained I didn't take a closer look at the CI as it's red for more then a year now. I reverted everything and won't be merging anything to the 2.7 branch anymore, please upgrade to 3.x and sorry for the inconvenience.

@soyuka soyuka closed this as completed Mar 19, 2024
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

No branches or pull requests

7 participants