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 everyone, has anyone of you had this error message before? We've updated our composer depende

UQ958DA4U
UQ958DA4U Posts: 232 🧑🏻‍🚀 - Cadet

Hello everyone,

has anyone of you had this error message before? We've updated our composer dependencies and now we're getting this when at least one item is in the cart:

YVES Exception
Twig\Error\RuntimeError - An exception has been thrown during the rendering of a template ("Field "_token" has already been rendered, save the result of previous render call to a variable and output that instead.").

in /data/vendor/spryker-shop/cart-page/src/SprykerShop/Yves/CartPage/Theme/default/views/remove-from-cart-form/remove-from-cart-form.twig (22)

I've tried commenting out the specified file and that works well, however, of course this can't stay that way. I don't see the field being defined multiple times so I really don't get the issue.

Thanks for any tips.

Comments

  • UQ958DA4U
    UQ958DA4U Posts: 232 🧑🏻‍🚀 - Cadet

    We just fixed it... There was a project specific "deleteButton" macro that was putting in many of those fields, now we're using the appropriate widget and it works.