Magento 2.x – fix “Import failed: Unable to unserialize value, string is corrupted.” when app:config:import
If you are trying to import the configuration of your store withing the CLI interface with the app:config:import command, and you are facing the Import failed: Unable to unserialize value, string is corrupted. error message, you should be aware that it’s related due to a large enough configuration file, so, to fix it, you will need to perform the following change on your database:
|
1 2 3 4 5 6 |
mysql -u root -p use <your_database>; ALTER TABLE flag MODIFY flag_data LONGTEXT; UPDATE flag SET flag_data = '{"system":"","scopes":"","themes":""}' WHERE flag_code = 'config_hash'; UPDATE flag SET flag_data = '{}' WHERE flag_code = 'system_config_snapshot'; |