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..

Has anyone been able to update php version from 7.2 to 7.3 in b2b-demo-app and run the app successfu

U025NDD2QNA
U025NDD2QNA Posts: 42 πŸ§‘πŸ»β€πŸš€ - Cadet

Has anyone been able to update php version from 7.2 to 7.3 in b2b-demo-app and run the app successfully?

Comments

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)

    Yes, that should work. What problem are you facing?

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

    Some modules have missing files: For instance
    namespace Pyz\Yves\ContentProductSetWidget has a file ContentProductSetWidgetFactory which requires the following dependency:
    use SprykerShop\Yves\ContentProductSetWidget\Twig\ContentProductSetTwigFunction as SprykerShopContentProductSetTwigFunction;

    But after updating php version from 7.2 to 7.3 in composer.json and running composer install
    I no longer see this file ContentProductSetTwigFunction

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

    we're on 7.4 without an issues

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)

    just ran the update myself using spryker/php:7.3-alpine3.12 in the deploy.yml and php 7.3 in composer json and i did not see an issue

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

    What were of php platform are you using inside this section of your composer.json file:

    "config": {
        "preferred-install": "dist",
        "platform": {
          "php": "7.2.15"
        },
    
  • U025NDD2QNA
    U025NDD2QNA Posts: 42 πŸ§‘πŸ»β€πŸš€ - Cadet

    in other words are you change that as well?

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)

    "php":Β "7.3"

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)

    yes

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

    silly question. but whats the command youre running for updating?

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)

    there is not really a command for the php update, you change the deploy yml, the composer files

  • Thomas Lehner
    Thomas Lehner Support Engineer @ Spryker Posts: 289 πŸ› - Council (mod)

    after that just dont forget to docker/sdk boot your deploy file again

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

    thanks. let me try it

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

    Hi Thomas so these are the steps I am taking and that leads me to an error:
    1. Clone b2b-demo-app, docker and run docker/sdk up (after running docker/sdk boot deploy.dev.yml
    2. I can open Yves and Zed app.
    3. Change php version in composer.json at line no: 6 and line no: 262
    4. Then go into docker/sdk cli
    5. in cli run the following command: composer require spryker/auth-rest-api:^2.14.0 --with-all-dependencies
    6. once the compser has updated dependencies, I try to run Yves and get the following error:

    YVES Exception
    InvalidArgumentException - The Router does not support the following options: "matcher_base_class".
    in /data/vendor/symfony/routing/Router.php (151)
    
    Url:/
    
    Trace:
    
    #0 /data/vendor/symfony/routing/Router.php(106): Symfony\Component\Routing\Router->setOptions(Array)
    #1 /data/vendor/spryker/router/src/Spryker/Yves/Router/Router/Router.php(44): Symfony\Component\Routing\Router->__construct(Object(Spryker\Yves\Router\Loader\ClosureLoader), Object(Spryker\Yves\Router\RouterResource\RouterResource), Array)
    #2 /data/vendor/spryker/router/src/Spryker/Yves/Router/RouterFactory.php(63): Spryker\Yves\Router\Router\Router->__construct(Object(Spryker\Yves\Router\Loader\ClosureLoader), Object(Spryker\Yves\Router\RouterResource\RouterResource), Array, Array)
    #3 /data/vendor/spryker/router/src/Spryker/Yves/Router/Plugin/Router/YvesRouterPlugin.php(27): Spryker\Yves\Router\RouterFactory->createYvesRouter()
    #4 /data/vendor/spryker/router/src/Spryker/Yves/Router/Router/ChainRouter.php(38): Spryker\Yves\Router\Plugin\Router\YvesRouterPlugin->getRouter()
    #5 /data/vendor/spryker/router/src/Spryker/Yves/Router/Router/ChainRouter.php(27): Spryker\Yves\Router\Router\ChainRouter->addRouterPlugins(Array)
    #6 /data/vendor/spryker/router/src/Spryker/Yves/Router/RouterFactory.php(43): Spryker\Yves\Router\Router\ChainRouter->__construct(Array)
    #7 /data/vendor/spryker/router/src/Spryker/Yves/Router/Plugin/Application/RouterApplicationPlugin.php(61): Spryker\Yves\Router\RouterFactory->createRouter()
    #8 /data/vendor/spryker/container/src/Spryker/Service/Container/Container.php(273): Spryker\Yves\Router\Plugin\Application\RouterApplicationPlugin->Spryker\Yves\Router\Plugin\Application\{closure}(Object(Spryker\Yves\Kernel\Application))
    #9 /data/vendor/spryker/container/src/Spryker/Service/Container/Container.php(210): Spryker\Service\Container\Container->getService('routers')
    #10 /data/vendor/spryker/router/src/Spryker/Yves/Router/Plugin/EventDispatcher/RouterListenerEventDispatcherPlugin.php(84): Spryker\Service\Container\Container->get('routers')
    #11 /data/vendor/spryker/router/src/Spryker/Yves/Router/Plugin/EventDispatcher/RouterListenerEventDispatcherPlugin.php(70): Spryker\Yves\Router\Plugin\EventDispatcher\RouterListenerEventDispatcherPlugin->getChainRouter(Object(Spryker\Yves\Kernel\Application))
    #12 /data/vendor/spryker/router/src/Spryker/Yves/Router/Plugin/EventDispatcher/RouterListenerEventDispatcherPlugin.php(42): Spryker\Yves\Router\Plugin\EventDispatcher\RouterListenerEventDispatcherPlugin->addSubscriber(Object(Spryker\Shared\EventDispatcher\EventDispatcher), Object(Spryker\Yves\Kernel\Application))
    #13 /data/vendor/spryker/event-dispatcher/src/Spryker/Yves/EventDispatcher/Plugin/Application/EventDispatcherApplicationPlugin.php(116): Spryker\Yves\Router\Plugin\EventDispatcher\RouterListenerEventDispatcherPlugin->extend(Object(Spryker\Shared\EventDispatcher\EventDispatcher), Object(Spryker\Yves\Kernel\Application))
    #14 /data/vendor/spryker/event-dispatcher/src/Spryker/Yves/EventDispatcher/Plugin/Application/EventDispatcherApplicationPlugin.php(72): Spryker\Yves\EventDispatcher\Plugin\Application\EventDispatcherApplicationPlugin->extendEventDispatcher(Object(Spryker\Shared\EventDispatcher\EventDispatcher), Object(Spryker\Yves\Kernel\Application))
    #15 /data/vendor/spryker/container/src/Spryker/Service/Container/Container.php(421): Spryker\Yves\EventDispatcher\Plugin\Application\EventDispatcherApplicationPlugin->Spryker\Yves\EventDispatcher\Plugin\Application\{closure}(Object(Symfony\Component\EventDispatcher\EventDispatcher), Object(Spryker\Yves\Kernel\Application))
    #16 /data/vendor/spryker/container/src/Spryker/Service/Container/Container.php(273): Spryker\Service\Container\Container->Spryker\Service\Container\{closure}(Object(Spryker\Yves\Kernel\Application))
    #17 /data/vendor/spryker/container/src/Spryker/Service/Container/Container.php(210): Spryker\Service\Container\Container->getService('dispatcher')
    #18 /data/vendor/spryker/container/src/Spryker/Service/Container/Container.php(617): Spryker\Service\Container\Container->get('dispatcher')
    #19 /data/vendor/spryker/silexphp/src/Silex/Provider/RoutingServiceProvider.php(115): Spryker\Service\Container\Container->offsetGet('dispatcher')
    #20 /data/vendor/spryker/silexphp/src/Silex/Application.php(186): Silex\Provider\RoutingServiceProvider->boot(Object(Spryker\Yves\Kernel\Application))
    #21 /data/vendor/spryker-shop/shop-application/src/SprykerShop/Yves/ShopApplication/YvesBootstrap.php(67): Silex\Application->boot()
    #22 /data/public/Yves/index.php(21): SprykerShop\Yves\ShopApplication\YvesBootstrap->boot()
    #23 {main} 
    
  • U025NDD2QNA
    U025NDD2QNA Posts: 42 πŸ§‘πŸ»β€πŸš€ - Cadet

    Hi Thomas. I’ll open a ticket for this