0

I am getting an error {"0":"Notice: unserialize(): Error at offset 0 of 94 bytes in. \Model\Item.php When update wishlist from wishlist page. I am using Magento 2.2.5

I already try this solution and this solution worked for add all cart from wishlist. but not working when update list.

Tried solution Link: Notice: unserialize(); Error at offset in Magento 2.2

1 Answer 1

0

It might be because values of array got corrupted. You can use this though

//to serialize array/string
$arrayvalue = base64_encode(serialize($multidimensional_array));

//to unserialize encoded array/string
$getoriginalarrayvalue = unserialize(base64_decode($arrayvalue));
2
  • Not working mY code is foreach ($options as $option) { if ($option['code'] == 'info_buyRequest') { $optionValue = $this->serializer->unserialize(trim($option['value'])); $optionValue['qty'] = $qty; $unserializeOption['value'] = $optionValue; Commented Oct 26, 2018 at 6:03
  • I also used you code but not worling Commented Oct 26, 2018 at 6:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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