Calling Developers!
We are reenergizing our code contribution process! Learn More

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

Errors when running any command in Docker

Options
U0500RK40NR
U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
edited June 2023 in Slack General

hey , i am running any command in docker . I am getting this error
Error - Exception: Undefined constant Orm\Zed\Acl\Persistence\Map\SpyAclGroupArchiveTableMap::TABLE_PHP_NAME
in /data/vendor/propel/propel/src/Propel/Runtime/Map/DatabaseMap.php (193)

Command: /data/vendor/bin/console transfer:generate

Tagged:

Comments

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,016 βš–οΈ - Guardians (admin)
    Options
  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    i have setup new project

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,016 βš–οΈ - Guardians (admin)
    Options

    seems to be something cached maybe…. have you shut down the other one and deleted the docker containers etc?

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,016 βš–οΈ - Guardians (admin)
    Options

    you could try docker/sdk clean && docker/sdk up --build --assets --data --jobs

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    and i was doing setup up for data export and run some commands like composer require spryker/data-export
    after that i am getting error .

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,016 βš–οΈ - Guardians (admin)
    Options

    maybe you did also composer update as well?

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    yes

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    composer require spryker/data-export spryker/data-export-extension spryker/sales-data-export --update-with-dependencies

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    this command i have run

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,016 βš–οΈ - Guardians (admin)
    Options

    likely it installed the latest propel module as well then.

    does the following fix it for you?

    find ./src/Orm/Zed/ -type d -name "Map" | xargs rm -rf && find ./data/cache/propel/ -type f -name "loadDatabase.php" | xargs rm -rf && find ./src/Orm/Propel/ -type f -name "loadDatabase.php" | xargs rm -rf && console propel:model:build --no-post
    
  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    i didnot get your point

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,016 βš–οΈ - Guardians (admin)
    Options

    what does docker/sdk composer show propel/propel return?

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options
  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,016 βš–οΈ - Guardians (admin)
    Options

    sry, then this does not work… please go inside the cli with docker/sdk cli and then execute composer show propel/propel i thought spryker have a shortcut there as well

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options
  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,016 βš–οΈ - Guardians (admin)
    Options

    yeah… as expected. your composer update updated propel and therefore you need to execute

    find ./src/Orm/Zed/ -type d -name "Map" | xargs rm -rf && find ./data/cache/propel/ -type f -name "loadDatabase.php" | xargs rm -rf && find ./src/Orm/Propel/ -type f -name "loadDatabase.php" | xargs rm -rf && console propel:model:build --no-post
    

    its not your fault… its more about a problem with propel not using proper tags for their php8 support

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    so i have to run this command in docker cli ?

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,016 βš–οΈ - Guardians (admin)
    Options

    yes

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,016 βš–οΈ - Guardians (admin)
    Options

    this fixed it for me last time

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,016 βš–οΈ - Guardians (admin)
    Options

    it deletes some files which are not working anymore after the propel update.

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    now it is working file . Can you help me to data export

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    or give any refrence for that please

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,016 βš–οΈ - Guardians (admin)
    Options

    I cant, sry. please have a look at the docs

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    ok . Thank you sir .

  • U0500RK40NR
    U0500RK40NR Posts: 57 πŸ§‘πŸ»β€πŸš€ - Cadet
    Options

    hey . Is there any documentation for Two factor authentication ?