Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

CyberSEO Lite not changing all image srcset URLs to local versions

$
0
0

Replies: 0

Hi there,

I have a bunch of clients who syndicate content I provide for them, and many use CyberSEO Lite to bring all my content from tcn.tidbits.com into their sites from a custom RSS feed. Just recently, several of them said that the option to store images locally wasn’t working, and that their posts were loading images from my site instead. When I checked the page source closely, I discovered that CyberSEO Lite was storing the images locally and was linking to them correctly… in part.

You can see the HTML from a sample post brought in by CyberSEO Lite here on my test site:

<img class="aligncenter wp-image-7054" src="https://foobar.tidbits.com/wp-content/uploads/2019/04/photos-not-syncing-between-devices-properly-via-icloud-photos.png" sizes="(max-width: 300px) 100vw, 300px" srcset="https://foobar.tidbits.com/wp-content/uploads/2019/04/photos-not-syncing-between-devices-properly-via-icloud-photos.png 1004w, https://tcn.tidbits.com/wp-content/uploads/2019/04/Photos-Resume-294x300.png 294w, https://tcn.tidbits.com/wp-content/uploads/2019/04/Photos-Resume-768x784.png 768w, https://tcn.tidbits.com/wp-content/uploads/2019/04/Photos-Resume-1080x1102.png 1080w, https://tcn.tidbits.com/wp-content/uploads/2019/04/Photos-Resume.png 1127w" alt="" width="300" height="306" />

Problem #1: Notice that the domain used for the src attribute and the first srcset attribute is correct: foobar.tidbits.com (the test site). However, the next four srcset URLs are wrong: tcn.tidbits.com (that’s my main site that everyone is feeding from and should not be referenced anywhere).

Problem #2: I’m not quite sure what’s going on here, but even though I have images set to be stored locally, only the featured image for each post appears in the Media Library in WordPress. All the other images—including multiple sizes, though not the sizes referenced by the last four srcset URLs—are present in /public/wp-content/uploads/2019/04 and can be viewed via FTP. I don’t know why they aren’t showing up in the Media Library, but other people are having this problem too. Here’s the full list of the photos mentioned above that has been copied locally:

www/foobar_html/public/wp-content/uploads/2019/04/photos-not-syncing-between-devices-properly-via-icloud-photos-150x150.jpg
www/foobar_html/public/wp-content/uploads/2019/04/photos-not-syncing-between-devices-properly-via-icloud-photos-300x188.jpg
www/foobar_html/public/wp-content/uploads/2019/04/photos-not-syncing-between-devices-properly-via-icloud-photos-768x480.jpg
www/foobar_html/public/wp-content/uploads/2019/04/photos-not-syncing-between-devices-properly-via-icloud-photos-825x510.jpg
www/foobar_html/public/wp-content/uploads/2019/04/photos-not-syncing-between-devices-properly-via-icloud-photos-1024x640.jpg
www/foobar_html/public/wp-content/uploads/2019/04/photos-not-syncing-between-devices-properly-via-icloud-photos.jpg
www/foobar_html/public/wp-content/uploads/2019/04/photos-not-syncing-between-devices-properly-via-icloud-photos.png

I’ve created a test RSS feed for you for testing. The post that has the sample HTML above is the first one.

https://tcn.tidbits.com/category/apple-pros/feed?memberkey=28f434109080d73863c1b4eadb0b6cc6

Thanks for looking into these two issues with the srcset URLs and the Media Library!

cheers… -Adam

  • This topic was modified 46 minutes ago by adamengst.
  • This topic was modified 45 minutes ago by adamengst.

Viewing all articles
Browse latest Browse all 59525

Trending Articles