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

ZedError-Call to undefined method Generated\Shared\Transfer\StoreTransfer::setDefaultLocaleIsoCode()

Options
shlok.sharma
shlok.sharma IT Analyst Spryker Solution Partner Posts: 22 🧑🏻‍🚀 - Cadet
edited October 2023 in Spryker Development

Hello,

Recently i updated spryker using composer update command.

Now i am facing this error while opening the backoffice.

Can anyone tell me how can i fix this??

Comments

  • Alberto Reyer
    Alberto Reyer Lead Spryker Solution Architect / Technical Director Posts: 690 🪐 - Explorer
    Options

    Either by running docker/sdk console transfer:generate(assuming you recently updated the store module) or by updating to the newest store module version ( docker/sdk cli composer update spryker/store) followed by generating all transfers again (docker/sdk console transfer:generate).

  • shlok.sharma
    shlok.sharma IT Analyst Spryker Solution Partner Posts: 22 🧑🏻‍🚀 - Cadet
    Options

    Thanks @Alberto Reyer the docker/sdk console transfer:generate worked.

  • Alberto Reyer
    Alberto Reyer Lead Spryker Solution Architect / Technical Director Posts: 690 🪐 - Explorer
    Options

    When ever the error messages involves a missing field in an object in the Generated\Transfer namespace, either solve it by console transfer:generate (thats why the namespace is Generated\Transfer ;) ) or add the missing field in a transfer definition

  • fsmeier
    fsmeier Senior Software Engineer & Developer Enablement Advocate Sprykee Posts: 1,029 ⚖️ - Guardians (admin)
    Options

    Heyhey,
    glad this could be solved already!

    I'll move this topic out of the development environment sub-category :)

    All the best,

    Florian