I cannot remove the item form shopping cart after I upgrade the php version form 7.1.24 to 7.1.28.
The shopping cart didn't have any problem before the php upgrade.
Any idea?
Many thanks!
Solved! Go to Solution.
Hello @cheung_hoi ching2
seems like form key issue
if you go to https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Checkout/Controller/Sidebar/Re...
and
if (!$this->getFormKeyValidator()->validate($this->getRequest())) { return $this->resultRedirectFactory->create()->setPath('*/cart/'); }
remove this code and check it.
if works then form key issue
if works then mark as solution,
Hello @cheung_hoi ching2
can you please check log file for same?
There are no error msg when I click the delete button.
The problem is the item cannot remove after I click the delete button.
Also the "remove all ite in cart" is not work too.
And there is no log about those problem.
Many thanks!
Hello @cheung_hoi ching2
can you check with luma theme, may be your theme does not contain form key so that's why happen
Thanks.
But how to check the theme form key.
Also, why the problem happen after the php upgrade.
Many thanks!
Something like JSON.stringify(error) in Console
Below msg showed in console when I click delete item which is not find before php upgrade
Hello @cheung_hoi ching2
have you did any customize into minicart.js?
try to enable luma theme and check it
I'm trying to use luma
but there another error when I add item to cart
Many thanks!!
I have find below error when I click delete.
The 302 not found of remove item.
Any solve idea?
Many thanks!!!