It was necessary to change the location of already downloaded files. Before that, all files were located in folders by dates, now I have transferred everything to the uploads folder. Further in the database I changed all the paths to the files. uploads / 2017/01 / file.doc to uploads / file.doc Everything worked out in the media library of files everything was displayed as it should be. But later I noticed that all my files were missing from the products (woocommerce). I have downloadable products with attached files. In the database, I see that by ID they remained attached, but for some reason they are no longer connected. For example:
(18370, 1358, '_downloadable_files', 'a:1:{s:32:\"cf099301da794922b99eb1ef2cb9c0d7\";a:2:{s:4:\"name\";s:0:\"\";s:4:\"file\";s:99:\"https://site.com/wp-content/uploads/file.doc\";}}'), What could be the problem? How to decrypt this code? Is it possible to somehow link files with products without hooking everything from zero manually?