I migrated magento site from 1.7.0.2 to 2.2 clean install.
Migration completed without issues.
However if I attempt to edit a product or add a new product magento displays an error:
Unable to unserialize value.
Does anyone know what im doing wrong here?
Customers, categories and custom attributes all migrated without issue
2
Answers
The problem is in
/vendor/magento/framework/Serialize/Serializer/Json.php
There is a function
unserialize($string)
which gives you a syntax error if a string is serialized (not json but php serialization).Change unserialize to:
And add function to check if string is serialized:
After doing this you solve your problem.
I ran into this problem when doing the migration from 1.9.2.0 to 2.3.2.
My
additional_information
in tablesales_payment_transaction
was empty. The error occurs in class MigrationHandlerSerializeToJson in method handle in string number 73: $unserializeData = unserialize($value);I made preference for this class and changed unserialize() function to json_decode().