8000 Cannot redeclare class Symfony\Component\HttpKernel\HttpKernel on 3.4.x-dev · Issue #25059 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Cannot redeclare class Symfony\Component\HttpKernel\HttpKernel on 3.4.x-dev #25059
Closed
@ibasaw

Description

@ibasaw
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.4.x-dev
php -v
PHP 5.6.30-0+deb8u1 (cli) (built: Feb  8 2017 08:50:21)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    with Xdebug v2.2.5, Copyright (c) 2002-2014, by Derick Rethans

composer.json
...

    "require": {
        "php": ">=5.5.9",
        "doctrine/doctrine-bundle": "^1.6",
        "doctrine/orm": "^2.5",
        "incenteev/composer-parameter-handler": "^2.0",
        "sensio/distribution-bundle": "^5.0.19",
        "sensio/framework-extra-bundle": "^5.0.0",
        "symfony/monolog-bundle": "^3.1.0",
        "symfony/polyfill-apcu": "^1.0",
        "symfony/swiftmailer-bundle": "^2.6.4",
        "symfony/symfony": "3.4.x-dev",
        "twig/twig": "^1.0||^2.0",
        "symfony/assetic-bundle": "^2.8"
    },

...

On fresh install, when i browse the homepage / and hit refresh on browser, i got this error, only work once the first time load.

(1/1) FatalErrorExceptionCompile Error: Cannot redeclare class Symfony\Component\HttpKernel\HttpKernel
--
in HttpKernel.php (line 39)
in getHttpKernelService.php (line 10)
in appDevDebugProjectContainer.php (line 695)
at appDevDebugProjectContainer->load()in classes.php (line 3372)
at Container->get()in Kernel.php (line 215)
at Kernel->getHttpKernel()in Kernel.php (line 202)
at Kernel->handle()in app_dev.php (line 14)
at {main}()in app_dev.php (line 0)

console not loading

if i replace "symfony/symfony": "3.4.x-dev", to "symfony/symfony": "3.3.x-dev", it works.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0