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

PayumExtension: The storage factory with such name filesystem already registered #10284

Closed
itinance opened this issue Apr 2, 2019 · 4 comments
Labels
DX Issues and PRs aimed at improving Developer eXperience. Stale Issues and PRs with no recent activity, about to be closed soon.

Comments

@itinance
Copy link
Contributor

itinance commented Apr 2, 2019

Sylius version affected: 1.2.2

Description

After deployment of my Sylius application on Heroku i get the following exception on startup:

The storage factory with such name filesystem already registered

Happening on PayumExtension.php line 288.

Steps to reproduce

php bin/console debug:container

composer.json:

{
    "name": "sylius/sylius-standard",
    "description": "Starting point for projects powered by Sylius eCommerce.",
    "keywords": ["symfony", "symfony2", "sylius", "distribution", "ecommerce", "cart", "shopping"],
    "type": "project",
    "license": "MIT",
    "homepage": "http://sylius.org",
    "authors": [
        {
            "name": "Paweł Jędrzejewski",
            "homepage": "http://pjedrzejewski.com"
        },
        {
            "name": "Sylius project",
            "homepage": "http://sylius.org"
        },
        {
            "name": "Community contributions",
            "homepage": "http://github.com/Sylius/Sylius/contributors"
        }
    ],
    "require": {
        "php": "7.2.*",
        "ext-exif": "*",
        "ext-gd": "*",
        "ext-intl": "*",
        "beberlei/DoctrineExtensions": "^1.2",
        "cocur/slugify": "^3.2",
        "drewm/mailchimp-api": "^2.5",
        "endroid/qr-code-bundle": "^3.2",
        "gedmo/doctrine-extensions": "^2.4",
        "geocoder-php/google-maps-provider": "^4.3",
        "itinance/tinygeo": "^0.2.0",
        "mailjet/mailjet-apiv3-php": "^1.3",
        "ramsey/uuid": "^3.8",
        "stripe/stripe-php": "^6.17",
        "sylius/sylius": "1.2.2",
        "symfony/symfony": "^3.4|^4.1",
        "willdurand/geocoder": "^4.2",
        "willdurand/geocoder-bundle": "^5.3"
    },
    "require-dev": {
        "behat/behat": "^3.4",
        "behat/mink": "^1.7@dev",
        "behat/mink-browserkit-driver": "^1.3",
        "behat/mink-extension": "^2.2",
        "behat/mink-selenium2-driver": "^1.3",
        "friends-of-behat/context-service-extension": "^1.2",
        "friends-of-behat/cross-container-extension": "^1.1",
        "friends-of-behat/service-container-extension": "^1.0",
        "friends-of-behat/suite-settings-extension": "^1.0",
        "friends-of-behat/symfony-extension": "^1.2.1",
        "friends-of-behat/variadic-extension": "^1.1",
        "lakion/api-test-case": "^3.0",
        "lakion/mink-debug-extension": "^1.2.3",
        "phpspec/phpspec": "^4.0",
        "phpunit/phpunit": "^6.5",
        "sylius-labs/coding-standard": "^2.0",
        "symfony/maker-bundle": "^1.11",
        "symfony/var-dumper": "^4.2",
        "heroku/heroku-buildpack-php" : "dev-master"
    },
    "prefer-stable": true,
    "autoload": {
        "psr-4": {
            "AppBundle\\": "src/AppBundle/"
        },
        "classmap": ["app/AppKernel.php", "app/AppCache.php"]
    },
    "config": {
        "platform": {
            "php": "7.2.0"
        },
        "bin-dir": "bin",
        "sort-packages": true
    },
    "scripts": {
        "post-install-cmd": [
            "# chmod -R ug+w $APP_DIR/var"
        ]
    },
    "extra": {
        "symfony-app-dir": "app",
        "symfony-bin-dir": "bin",
        "symfony-var-dir": "var",
        "symfony-web-dir": "web",
        "symfony-tests-dir": "tests",
        "symfony-assets-install": "relative",
        "incenteev-parameters": {
            "file": "app/config/parameters.yml"
        },
        "branch-alias": {
            "dev-master": "1.2-dev"
        }
    }
}

@vvasiloi
Copy link
Contributor

vvasiloi commented Apr 3, 2019

What's your payum configuration?

@itinance
Copy link
Contributor Author

itinance commented Apr 3, 2019

Nothing :) I don't use it. I have not a single Payum-related line in config files. But maybe some pre-defined configs are running behind out of Sylius directly.

Running in Docker-based environment it was not an issue. Deploying to Heroku gives the exception.

Is there a way to complete disable it? It is even not a part of my AppKernel.

    public function registerBundles(): array
    {
        $bundles = [
            new \Sylius\Bundle\AdminBundle\SyliusAdminBundle(),
            new \Sylius\Bundle\ShopBundle\SyliusShopBundle(),

            new \FOS\OAuthServerBundle\FOSOAuthServerBundle(), // Required by SyliusAdminApiBundle.
            new \Sylius\Bundle\AdminApiBundle\SyliusAdminApiBundle(),

            new \Endroid\QrCodeBundle\EndroidQrCodeBundle(),

            //new \Sylius\RbacPlugin\SyliusRbacPlugin(),
            new \Prooph\Bundle\ServiceBus\ProophServiceBusBundle(),

            new \AppBundle\AppBundle(),
        ];

        if (in_array($this->getEnvironment(), ['dev', 'test', 'test_cached'], true)) {
            $bundles[] = new \Fidry\AliceDataFixtures\Bridge\Symfony\FidryAliceDataFixturesBundle();
            $bundles[] = new \Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle();
        }

        return array_merge(parent::registerBundles(), $bundles);
    }

@vvasiloi
Copy link
Contributor

vvasiloi commented Apr 3, 2019

Try to run the app with the same env on both Docker and Heroku.

@CoderMaggie CoderMaggie added DX Issues and PRs aimed at improving Developer eXperience. Potential Bug labels Apr 11, 2019
@stale
Copy link

stale bot commented Jul 10, 2019

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale Issues and PRs with no recent activity, about to be closed soon. label Jul 10, 2019
@stale stale bot closed this as completed Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DX Issues and PRs aimed at improving Developer eXperience. Stale Issues and PRs with no recent activity, about to be closed soon.
Projects
None yet
Development

No branches or pull requests

3 participants