After upgrade I'm getting below error in my local :
Exception #0 (InvalidArgumentException): Unable to unserialize value.
#0 myPath/vendor/magento/module-theme/Controller/Result/MessagePlugin.php(157): Magento\Framework\Serialize\Serializer\Json->unserialize('[{\\"type\\":\\"su...')
Tried solutions in below link but none of them helped 🙁
Best Answer
You can try by adding a line in function
unserialize
of classMagento\Framework\Serialize\Serializer\Json
.This does happen when magento send some invalid string to parse or add string with multiple slashes to the string.
Even you can check exact error from this
json_last_error()
method.So for now add
stripslashes
at the very first line of method body.so your function should look like this: