After updating Magento 2.1 to Magento 2.2 I get the following error when saving a client.

enter image description here

I have seen that in the customer_eav_attribute table the data has not been updated correctly to the new version.

For exemple, I have:


And in version 2.2 it is necessary to have:


How to update this table? without reinstall Magento 2.2

1 Answer 1


you have to convert and update in your database. You can resolve it in file /vendor/magento/framework/Serialize/Serializer/Json.php by using this query:

    public function unserialize($string)
    $result = json_decode($string, true);
    if (json_last_error() !== JSON_ERROR_NONE) {
        $result = @$this->unserialize($string);
            return $result;
        throw new \InvalidArgumentException("Unable to unserialize value. Error: " . json_last_error_msg());
    return $result;

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.