Renamer leaves bad references in wp_postmeta
-
here’s an example from wp_postmeta
Image file has been renamed from img_4547.jpg to silk-glasses-case-red-open.jpg, however in the metadata, 4 image size references are renamed and 5 are left with the old reference which no longer works.While this leaves broken images for example in wooCommerce product variations, I don’t believe this is specifically a wooCommerce issue.
(26209, 2027, ‘_wp_attached_file’, ‘2016/07/silk-glasses-case-red-open.jpg’),
(26210, 2027, ‘_wp_attachment_metadata’, ‘
a:6:{s:5:”width”;i:1280;s:6:”height”;i:960;s:4:”file”;s:38:”2016/07/silk-glasses-case-red-open.jpg”;s:5:”sizes”;
a:9:{s:9:”thumbnail”;
a:4:{s:4:”file”;s:38:”silk-glasses-case-red-open-150×150.jpg”;s:5:”width”;i:150;s:6:”height”;i:150;s:9:”mime-type”;s:10:”image/jpeg”;}s:6:”medium”;
a:4:{s:4:”file”;s:38:”silk-glasses-case-red-open-300×225.jpg”;s:5:”width”;i:300;s:6:”height”;i:225;s:9:”mime-type”;s:10:”image/jpeg”;}s:12:”medium_large”;
a:4:{s:4:”file”;s:38:”silk-glasses-case-red-open-768×576.jpg”;s:5:”width”;i:768;s:6:”height”;i:576;s:9:”mime-type”;s:10:”image/jpeg”;}s:5:”large”;
a:4:{s:4:”file”;s:20:”img_4547-768×576.jpg”;s:5:”width”;i:768;s:6:”height”;i:576;s:9:”mime-type”;s:10:”image/jpeg”;}s:13:”alm-thumbnail”;
a:4:{s:4:”file”;s:20:”img_4547-150×150.jpg”;s:5:”width”;i:150;s:6:”height”;i:150;s:9:”mime-type”;s:10:”image/jpeg”;}s:14:”shop_thumbnail”;
a:4:{s:4:”file”;s:20:”img_4547-150×150.jpg”;s:5:”width”;i:150;s:6:”height”;i:150;s:9:”mime-type”;s:10:”image/jpeg”;}s:12:”shop_catalog”;
a:4:{s:4:”file”;s:38:”silk-glasses-case-red-open-300×300.jpg”;s:5:”width”;i:300;s:6:”height”;i:300;s:9:”mime-type”;s:10:”image/jpeg”;}s:11:”shop_single”;
a:4:{s:4:”file”;s:20:”img_4547-768×576.jpg”;s:5:”width”;i:768;s:6:”height”;i:576;s:9:”mime-type”;s:10:”image/jpeg”;}s:14:”post-thumbnail”;
a:4:{s:4:”file”;s:20:”img_4547-300×300.jpg”;s:5:”width”;i:300;s:6:”height”;i:300;s:9:”mime-type”;s:10:”image/jpeg”;}}s:10:”image_meta”;
- The topic ‘Renamer leaves bad references in wp_postmeta’ is closed to new replies.