Getting error on all add to cart links on product listing page.

=> Please assist me. Thanks!

  • No. i have just download magento new version and replace all file on root folder with new version.
    – TheMask
    Commented Jan 24, 2018 at 7:16
  • Than try to check error log. What is it saying ? Commented Jan 24, 2018 at 7:17
  • Try enabling errors logs, and check what errors come Commented Jan 24, 2018 at 7:17
  • Exception message: Unsupported data type N httpdocs/lib/Unserialize/Reader/Arr.php(102): Unserialize_Reader_ArrValue->read('N', ';')
    – TheMask
    Commented Jan 24, 2018 at 7:22

1 Answer 1


It can be because of form key. You need to add following line to add form key just after form tag in give file list

<?php echo $this->getBlockHtml('formkey') ?>

1) For Add to cart in product view app/design/frontend/theme/package/template/catalog/product/view.phtml

2) For login & customer registration app/design/frontend/theme/package/template/persistent/customer/form/login.phtml app/design/frontend/theme/package/template/persistent/customer/form/registration.phtml

3) Update cart app/design/frontend/theme/package/template/checkout/cart.phtml

If this is fine then also possible because of new patches. Please Check: Security Patch SUPEE-10415 - Possible Issues?



Not the answer you're looking for? Browse other questions tagged or ask your own question.