What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hello, Having problems with Spryker installation, can someone help me with this error.

2Β»

Comments

  • Posts: 140 πŸ§‘πŸ»β€πŸš€ - Cadet

    Its really surprising to see when am trying to download b2c-demo-shop, why is it redirecting to suite.

  • Posts: 140 πŸ§‘πŸ»β€πŸš€ - Cadet

    I have removed the vagrants pid that were running and did an new install, its getting the right git repo.

  • Posts: 140 πŸ§‘πŸ»β€πŸš€ - Cadet
    edited September 2020

    Finished Installation, on url www.de.b2c-demo-shop.local load, getting this error:

  • Posts: 140 πŸ§‘πŸ»β€πŸš€ - Cadet

    Symfony\Component\HttpFoundation\Exception\SuspiciousOperationException thrown with message β€œUntrusted Host β€œwww.de.b2c-demo-shop.local”.”

    Stacktrace:

    23 Symfony\Component\HttpFoundation\Exception\SuspiciousOperationException in /data/shop/development/current/vendor/symfony/http-foundation/Request.php:1206

    22 Symfony\Component\HttpFoundation\Request:getHost in /data/shop/development/current/vendor/symfony/routing/RequestContext.php:58

    21 Symfony\Component\Routing\RequestContext:fromRequest in /data/shop/development/current/vendor/spryker/router/src/Spryker/Yves/Router/Router/ChainRouter.php:54

    20 Spryker\Yves\Router\Router\ChainRouter:addRequestContext in /data/shop/development/current/vendor/spryker/router/src/Spryker/Yves/Router/Router/ChainRouter.php:26

    19 Spryker\Yves\Router\Router\ChainRouter:__construct in /data/shop/development/current/vendor/spryker/router/src/Spryker/Yves/Router/RouterFactory.php:43

    18 Spryker\Yves\Router\RouterFactory:createRouter in /data/shop/development/current/vendor/spryker/router/src/Spryker/Yves/Router/Plugin/Application/RouterApplicationPlugin.php:61

    17 Spryker\Yves\Router\Plugin\Application\RouterApplicationPlugin:Spryker\Yves\Router\Plugin\Application{closure} in /data/shop/development/current/vendor/spryker/container/src/Spryker/Service/Container/Container.php:421

    16 Spryker\Service\Container\Container:Spryker\Service\Container{closure} in /data/shop/development/current/vendor/spryker/container/src/Spryker/Service/Container/Container.php:273

    15 Spryker\Service\Container\Container:getService in /data/shop/development/current/vendor/spryker/container/src/Spryker/Service/Container/Container.php:210

    14 Spryker\Service\Container\Container:get in /data/shop/development/current/vendor/spryker/router/src/Spryker/Yves/Router/Plugin/EventDispatcher/RouterListenerEventDispatcherPlugin.php:84

    13 Spryker\Yves\Router\Plugin\EventDispatcher\RouterListenerEventDispatcherPlugin:getChainRouter in /data/shop/development/current/vendor/spryker/router/src/Spryker/Yves/Router/Plugin/EventDispatcher/RouterListenerEventDispatcherPlugin.php:70

    12 Spryker\Yves\Router\Plugin\EventDispatcher\RouterListenerEventDispatcherPlugin:addSubscriber in /data/shop/development/current/vendor/spryker/router/src/Spryker/Yves/Router/Plugin/EventDispatcher/RouterListenerEventDispatcherPlugin.php:42

    11 Spryker\Yves\Router\Plugin\EventDispatcher\RouterListenerEventDispatcherPlugin:extend in /data/shop/development/current/vendor/spryker/event-dispatcher/src/Spryker/Yves/EventDispatcher/Plugin/Application/EventDispatcherApplicationPlugin.php:116

    10 Spryker\Yves\EventDispatcher\Plugin\Application\EventDispatcherApplicationPlugin:extendEventDispatcher in /data/shop/development/current/vendor/spryker/event-dispatcher/src/Spryker/Yves/EventDispatcher/Plugin/Application/EventDispatcherApplicationPlugin.php:46

    9 Spryker\Yves\EventDispatcher\Plugin\Application\EventDispatcherApplicationPlugin:Spryker\Yves\EventDispatcher\Plugin\Application{closure} in /data/shop/development/current/vendor/spryker/container/src/Spryker/Service/Container/Container.php:421

    8 Spryker\Service\Container\Container:Spryker\Service\Container{closure} in /data/shop/development/current/vendor/spryker/container/src/Spryker/Service/Container/Container.php:273

    7 Spryker\Service\Container\Container:getService in /data/shop/development/current/vendor/spryker/container/src/Spryker/Service/Container/Container.php:210

    6 Spryker\Service\Container\Container:get in /data/shop/development/current/vendor/spryker/security/src/Spryker/Yves/Security/Plugin/Application/SecurityApplicationPlugin.php:1401

    5 Spryker\Yves\Security\Plugin\Application\SecurityApplicationPlugin:getDispatcher in /data/shop/development/current/vendor/spryker/security/src/Spryker/Yves/Security/Plugin/Application/SecurityApplicationPlugin.php:1386

    4 Spryker\Yves\Security\Plugin\Application\SecurityApplicationPlugin:addSubscriber in /data/shop/development/current/vendor/spryker/security/src/Spryker/Yves/Security/Plugin/Application/SecurityApplicationPlugin.php:1373

    3 Spryker\Yves\Security\Plugin\Application\SecurityApplicationPlugin:boot in /data/shop/development/current/vendor/spryker/application/src/Spryker/Shared/Application/Application.php:181

    2 Spryker\Shared\Application\Application:bootPlugins in /data/shop/development/current/vendor/spryker/application/src/Spryker/Shared/Application/Application.php:97

    1 Spryker\Shared\Application\Application:boot in /data/shop/development/current/vendor/spryker-shop/shop-application/src/SprykerShop/Yves/ShopApplication/Bootstrap/YvesBootstrap.php:32

    0 SprykerShop\Yves\ShopApplication\Bootstrap\YvesBootstrap:boot in /data/shop/development/current/public/Yves/index.php:21

  • SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    There are two possibilities.
    First one is to run vagrant provision (maybe you'll need to run vagrant halt first and then up again), second one is to add this into config_default.php.

    // ---------- Trusted hosts
    $config[ApplicationConstants::YVES_TRUSTED_HOSTS] = $config[HttpConstants::YVES_TRUSTED_HOSTS] = [
        $config[ApplicationConstants::HOST_YVES],
        $config[ApplicationConstants::HOST_ZED],
        'localhost',
        '',
    ];
    
  • Posts: 140 πŸ§‘πŸ»β€πŸš€ - Cadet

    I tried first option it worked. Where to find the config_default.php file ?

  • SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    edited September 2020
  • Posts: 140 πŸ§‘πŸ»β€πŸš€ - Cadet

    Thanks.

  • Posts: 140 πŸ§‘πŸ»β€πŸš€ - Cadet

    For http://glue.de.b2c-demo-shop.local/: {β€œerrors”:[{β€œstatus”:404,β€œdetail”:β€œNot Found”}]} is this right?

  • SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    edited September 2020

    Sure, you need to specify an endpoint.
    For example http://glue.de.b2c-demo-shop.local/catalog-search?q=

  • Posts: 140 πŸ§‘πŸ»β€πŸš€ - Cadet

    aahso, Thanks πŸ™‚

  • SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    edited September 2020

    have any idea why is happening?

    I found why.
    https://github.com/spryker/devvm/blob/develop/Vagrantfile#L29

    Here if you run vagrant up without parameters it will set default project suite and then it will be used here https://github.com/spryker/devvm/blob/develop/Vagrantfile#L34 for setting spryker-shop/suite.git as a repository.

  • Posts: 140 πŸ§‘πŸ»β€πŸš€ - Cadet

    Aah so, nice. Thanks πŸ™‚

  • Posts: 140 πŸ§‘πŸ»β€πŸš€ - Cadet

    Are there any changes in YvesBootstrap.php file? Am trying to do the bootcamp hello-world my page is not loading it anymore and its giving me 404 error.

  • Posts: 140 πŸ§‘πŸ»β€πŸš€ - Cadet

  • SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice

    I would recommend to post this question to so more people could see it.

  • Posts: 140 πŸ§‘πŸ»β€πŸš€ - Cadet

    done

Welcome!

It looks like you're new here. Sign in or register to get started.