Support » Plugin: CyberSEO Lite (CyberSyn) » CyberSEO Lite not changing all image srcset URLs to local versions

  • Resolved adamengst

    (@adamengst)


    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 7 months, 2 weeks ago by adamengst.
    • This topic was modified 7 months, 2 weeks ago by adamengst.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author CyberSEO

    (@cyberseo)

    I see the issue and working on it. As about the second one, it’s absolutely normal. The plugin does not add the local hosted images into the media library if they are not used as post thumbnails (featured images).

    Thanks! Good to know about the Media Library not containing locally hosted images. Was that decision made to avoid overwhelming the Media Library with less important images?

    Plugin Author CyberSEO

    (@cyberseo)

    > Was that decision made to avoid overwhelming the Media Library with less important images?

    Yes, there is no need to add them into the library, if they are not used by WordPress somehow.

    As about the first issue. It happened to the images stored as the HTML scrset lists for responsive layouts. I’ve added the ability to store them locally in version 6.13. So please make sure to update your copy of the plugin.

    Plugin Author CyberSEO

    (@cyberseo)

    > Was that decision made to avoid overwhelming the Media Library with less important images?

    Yes, there is no need to add them into the library, if they are not used by WordPress somehow.

    As about the first issue. It happened to the images stored as the HTML scrset lists for responsive layouts. I’ve added the ability to store them locally in version 6.13. So please make sure to update your copy of the plugin.

    Plugin Author CyberSEO

    (@cyberseo)

    > Was that decision made to avoid overwhelming the Media Library with less important images?

    Yes, there is no need to add them into the library, if they are not used by WordPress somehow.

    As about the first issue. It happened to the images stored as the HTML scrset lists for responsive layouts. I’ve added the ability to store them locally in version 6.13. So please make sure to update your copy of the plugin.

    Thanks for the update! I’ve installed the new version, deleted syndicated posts, and repolled the feed to get new ones. We’re getting closer, but not there yet. Some img tags are showing only local URLs, such as this one:

    <img class="aligncenter size-large wp-image-7073" src="https://foobar.tidbits.com/wp-content/uploads/2019/04/whats-with-all-these-dialogs-saying-someapp-is-not-optimized-for-your-mac-4.png" alt="" width="1024" height="635" srcset="https://foobar.tidbits.com/wp-content/uploads/2019/04/whats-with-all-these-dialogs-saying-someapp-is-not-optimized-for-your-mac-4.png 1024w, https://foobar.tidbits.com/wp-content/uploads/2019/04/whats-with-all-these-dialogs-saying-someapp-is-not-optimized-for-your-mac-14.png 300w, https://foobar.tidbits.com/wp-content/uploads/2019/04/whats-with-all-these-dialogs-saying-someapp-is-not-optimized-for-your-mac-15.png 768w, https://foobar.tidbits.com/wp-content/uploads/2019/04/whats-with-all-these-dialogs-saying-someapp-is-not-optimized-for-your-mac-16.png 1080w" sizes="(max-width: 1024px) 100vw, 1024px" />

    However, the next image in that article has two srcset URLs that don’t point locally (foobar.tidbits.com) but instead remotely (tcn.tidbits.com):

    <img class="aligncenter size-large wp-image-7074" src="https://foobar.tidbits.com/wp-content/uploads/2019/04/whats-with-all-these-dialogs-saying-someapp-is-not-optimized-for-your-mac-5.png" alt="" width="1024" height="635" srcset="https://foobar.tidbits.com/wp-content/uploads/2019/04/whats-with-all-these-dialogs-saying-someapp-is-not-optimized-for-your-mac-5.png 1024w, https://foobar.tidbits.com/wp-content/uploads/2019/04/whats-with-all-these-dialogs-saying-someapp-is-not-optimized-for-your-mac-17.png 300w, https://tcn.tidbits.com/wp-content/uploads/2019/04/64-bit-app-System-Information-Legacy-Software-768x476.png 768w, https://tcn.tidbits.com/wp-content/uploads/2019/04/64-bit-app-System-Information-Legacy-Software-1080x670.png 1080w" sizes="(max-width: 1024px) 100vw, 1024px" />

    And the next one has three such URLs:

    <img class="aligncenter size-large wp-image-7070" src="https://foobar.tidbits.com/wp-content/uploads/2019/04/whats-with-all-these-dialogs-saying-someapp-is-not-optimized-for-your-mac-6.png" alt="" width="1024" height="708" srcset="https://foobar.tidbits.com/wp-content/uploads/2019/04/whats-with-all-these-dialogs-saying-someapp-is-not-optimized-for-your-mac-6.png 1024w, https://tcn.tidbits.com/wp-content/uploads/2019/04/64-bit-app-32-bitCheck-300x207.png 300w, https://tcn.tidbits.com/wp-content/uploads/2019/04/64-bit-app-32-bitCheck-768x531.png 768w, https://tcn.tidbits.com/wp-content/uploads/2019/04/64-bit-app-32-bitCheck-1080x747.png 1080w" sizes="(max-width: 1024px) 100vw, 1024px" />

    I can’t offhand see any pattern to the images whose srcset URLs are all stored locally and those that aren’t.

    Plugin Author CyberSEO

    (@cyberseo)

    Fixed.

    adamengst

    (@adamengst)

    Works perfectly now, thank you!

    Plugin Author CyberSEO

    (@cyberseo)

    You are welcome! Don’t forget to vote 😉

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘CyberSEO Lite not changing all image srcset URLs to local versions’ is closed to new replies.