Update: it appears that both WordPress Reader and the Jetpack “Photon” module (image CDN) first attempt to use the GUID to access media. Since the GUID is the path+filename of the media file for attachments, this obviously fails when the media item is moved and the GUID isn’t updated to reflect the new location.
(the same happens when using Media File Renamer without updating the GUID)
Hi @antermoia,
Only happens with JetPack Photon? And are you sure they are using the GUID? It sounds odd… officially, the GUID is only a unique identifier. Since WP usually set the filename has the identifier (as it’s unique), some old plugins used the GUID in the past, but not anymore (I don’t think). That’s why I would be surprised JetPack does this too.
media item is moved
Actually, the media is never moved by WP/LR Sync 🙂 So you mean when it’s created too?
Hello Jordy,
both WordPress.com Reader (RSS reader) and Photon try to use the GUID first to access the media, that’s just how it is. I don’t use Photon on my site, but it’s used for some features like the Jetpack “Related Posts” nevertheless (to resize the photos to thumbnails, on the fly).
The GUID that WordPress creates appears to be always based on the CURRENT upload date but in the last update (v6.0.9) you changed the existing feature that, if the DATE of the photo is set to the capture date, it’ll now ALSO end up in the date-based folder in the media library (if that’s not a move operation then I made the wrong assumption).
As a result, neither WP.com Reader nor Photon find the file at the location specified in the GUID. They do find the file by falling back from using the GUID, but it creates plenty of 404 errors.
For example, upload from today with a photo shot five years ago, the GUID is url.tld/wp-content/uploads/2021/07/somefile.jpg
But, with the new combined option, WP/LR Sync puts the file into url.tld/wp-content/uploads/2016/07/somefile.jpg
If I upload a photo from 2016 today, then logic dictates that it ends up in the 2021/07/ folder, and nowhere else (this is useful for a number of reasons to me: US copyright registrations, copyright disputes, image optimization).
Therefore, it would be nice if the option to adjust the media date to the capture date and the storage folder used were SEPARATE options and not tied together.
I hope it’s clearer now.
Thanks.
Just to keep the information here; this has been fixed with a new option in Upload & Sync 🙂
Thank you very much for implementing this new option Jordy, that’s great! 👍🏻