pm-netti wrote:True, changing data (serialize> json_encode) will cause unnecessary headaches to upgrading aspiring.
These "unnecessary headaches" can be solved by just one line in each index.php file.
Catalog:
Insert
Code: Select all
if (!json_decode($result['value'], true)) $config->set($result['key'], unserialize($result['value']));
After
Code: Select all
$config->set($result['key'], json_decode($result['value'], true));
Admin:
Insert
Code: Select all
if (!json_decode($setting['value'], true)) $config->set($setting['key'], unserialize($setting['value']));
After
Code: Select all
$config->set($setting['key'], json_decode($setting['value'], true));
Then just open and re-save all your settings, modules, totals etc. These 2 lines could save a lot of time and nerves to many people.
There's also another place, where similar check can be added, but once you've reopened and saved all your settings, it's not necessary to add anything.