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 guys. Again a problem. Now I can't add product to the cart. I updated module `spryker-shop/car
Hello guys. Again a problem. Now I can't add product to the cart. I updated module spryker-shop/cart-page (3.16.0 => 3.18.2)
and I see that you've changed the \SprykerShop\Yves\CartPage\Controller\CartController::addAction
functionality.
You've added this lines
$form = $this->getFactory()->createCartPageFormFactory()->getAddToCartForm()->handleRequest($request); if (!$form->isSubmitted() || !$form->isValid()) { $this->addErrorMessage(static::MESSAGE_FORM_CSRF_VALIDATION_ERROR); return $this->redirectResponseInternal(CartControllerProvider::ROUTE_CART); }
When in goes to \Symfony\Component\Form\Extension\HttpFoundation\HttpFoundationRequestHandler::handleRequest
it checks if the form name add_to_cart_form
is present in \Symfony\Component\HttpFoundation\InputBag::$parameters
property. But it doesn't. Therefore method \Symfony\Component\Form\Form::isSubmitted
always returns false
and it shows error message.
Am I doing smth wrong? Or is it a bug again?
Comments
-
There are project level changes in between these versions.
Does this look like the solution?0 -
no. still the same error
0 -
So should I just update mentioned module in the current b2b demoshop to reproduce the problem?
0 -
I even don't have the last three widgets from your screenshot. I mean that were added before the new widgets. Line 246 -248
0 -
yes. i did just composer update
0 -
Ok, checking.
0 -
thanks
0 -
The error is something like
form.csrf.error...
, right?0 -
yes yes
0 -
Seems like it needs investigation. Will create a support and internal ticket in your favor.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 75 Spryker News
- 924 Developer Corner
- 783 Spryker Development
- 88 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 25 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random