Hey there,
I've got a substantial issue and I can't seem to find a solution.
I had a site on domain1.com/ which has been moved to subdomain.domain2.com/domain1title/. On the original host the media settings specified an absolute path for the uploads folder (even though it was in the default wp-content/uploads location). On moving the site I updated the media settings to use the default location (just deleted the absolute path from the box).
I just found out that all pre-move image uploads are only showing the "Full Size" image option when going to insert an image. Any images I have uploaded post-move are correctly showing the various thumbnail sizes as appropriate.
I have checked:
- Permissions/ownership of wp-content/uploads and sub-dirs: these are correct
- The files physically exist
- The wp_options table doesn't show any value for upload_path option
- wp_postmeta appears to show that the database has the correct listing for all thumbnail sizes on each attachment, and no mention within the attachment metadata of anything that, I think, would influence WP into not seeing the thumbnails eg
| 535 | 1026 | _wp_attachment_metadata | a:6:{s:5:"width";s:3:"659";s:6:"height";s:3:"527";s:14:"hwstring_small";s:23:"height='96' width='120'";s:4:"file";s:22:"2009/12/dutch_kyak.jpg";s:5:"sizes";a:3:{s:18:"topper-world-thumb";a:3:{s:4:"file";s:22:"dutch_kyak-180x180.jpg";s:5:"width";s:3:"180";s:6:"height";s:3:"180";}s:14:"home-box-thumb";a:3:{s:4:"file";s:21:"dutch_kyak-215x95.jpg";s:5:"width";s:3:"215";s:6:"height";s:2:"95";}s:13:"nyc-cat-thumb";a:3:{s:4:"file";s:22:"dutch_kyak-150x150.jpg";s:5:"width";s:3:"150";s:6:"height";s:3:"150";}}s:10:"image_meta";a:10:{s:8:"aperture";s:1:"0";s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";s:1:"0";s:9:"copyright";s:0:"";s:12:"focal_length";s:1:"0";s:3:"iso";s:1:"0";s:13:"shutter_speed";s:1:"0";s:5:"title";s:0:"";}} - I tried regenerate thumbnails which appears to have successfully recreated all thumbnails (plus some additional sizes I needed) and still it's not showing up thumbnails on pre-move image uploads.
- I've tried entering the absolute path on the new hosting platform but again no change
- I've done repair/optimise database function in WP, no change
- I've searched full db for any other old mentions of the absolute path that was set when WP was on the old host, and found no mention
- GD lib is installed on server. New uploads work correctly.
Any thoughts? How do I get WP to recognise that those original thumbnails do exist. This is causing me much confusion.