Viewing 10 replies - 1 through 10 (of 10 total)
  • Thanks for sharing this. I’ll explain the cause…

    The Sirv WordPress CDN plugin syncs images from your WordPress server to your Sirv account. Your example image above is stored on a Microsoft server, not your WordPress server. That’s why it isn’t synchronizing – the plugin cannot copy files from third-party domains.

    To resolve this, you can upload the failed files to your WordPress server, then embed them in your page. The Sirv plugin will automatically detect them on your page and copy them to your Sirv account, from where they will be resized and optimized on-the-fly and served from the CDN.

    Thanks,

    David
    Sirv.com

    Thread Starter etalmadgemc

    (@etalmadgemc)

    Thanks David, I’ll try your suggestion. To embed the images in the posts, I’m hoping to be able to do that by disabling the Azure WordPress plugin, or performing a database find & replace on the image paths. I’ll let you know how that goes.

    Good plan. There are probably 3 solutions:

    1. Find & replace would be a fast solution for updating 100 images. You could upload them to your Sirv account at https://my.sirv.com/, maintaining the existing folder structure, then just replace the domain part of the image URL with your Sirv domain.

    It’s worth noting that all paid Sirv plans include a free SSL certificate and a custom domain, so you could serve your files from something like:

    https://cdn.your-domain.com/

    2. Alternatively, you could use Find & replace and change the domain to your WordPress domain. Upload the the images to your WordPress server, then the Sirv plugin will automatically fetch the images from your WordPress server the next time they’re requested.

    3. If for some reason you can’t easily mimic the WordPress /2019/03/ (yyyy/mm/) folder structure, Find & replace might not be suitable. In that case, you could upload the 100 images to your Sirv account (in any folder structure), then manually remove the existing image from each WordPress post, then add it using the “Add Sirv Media” button.

    If you’d like our help, please use our secure contact form to send us a login to your WordPress admin.

    Thanks!

    David
    Sirv.com

    Thread Starter etalmadgemc

    (@etalmadgemc)

    Thanks David, I think I’ll try your suggestion number 2.
    But, I’m hoping to be able to click the “Sync Images” button to sync all images at once instead of having the Sirv plugin fetch the images as they are requested.

    Once you’ve performed number 2, you can click the “Sync Images” button to sync all images at once.

    Thread Starter etalmadgemc

    (@etalmadgemc)

    Ok, I think I’m getting closer.

    I did a find and replace and my image paths now look like:
    /blog/wp-content/uploads/2019/04/some-image.png

    But, I’m still getting the same “100” error from the Sirv plugin “Sync Images” button for all images.

    Should my image paths be converted to absolute instead of relative? Such as:
    https://www.mywebsite.com/blog/wp-content/uploads/2019/04/some-image.png

    Please try changing the path to:

    /wp-content/uploads/2019/04/some-image.png

    Thread Starter etalmadgemc

    (@etalmadgemc)

    Thanks, I changed the path to /wp-content/uploads/… as you suggested.

    But, still no luck.
    And, now all the images are showing as broken. They were showing correctly after my last find & replace.

    The blog I’m working on is on my dev environment, which is not publicly accessible. Could that be the issue?

    Thread Starter etalmadgemc

    (@etalmadgemc)

    I tried option #1 and that worked. Just in case it helps, here is what I did on my local dev environment.

    1. Used the Microsoft Azure Storage Explorer to download all blog images.

    2. Delete the smaller, alternate versions of the images. These are the images that WordPress created automatically. I don’t need these anymore because Sirv will do the resizing. Using this search term in the Windows Explorer search field (for the wp-content\uploads directory) sort of works to find the resized images that need to be deleted:
    filename:*-???x???.*

    3. Drag and drop the remaining files into a new directory the Sirv admin “My Files” screen.

    4. Used the WP DB Migrate Pro WordPress plugin to pull the production database into my dev environment. Use the find and replace feature to do this find and replace:
    Find – https://[azure path start].blob.core.windows.net/[more azure path]/
    Replace with – /wp-content/uploads/

    Thanks for describing the steps you took to copy the images to Sirv, then sync them with your WordPress Media Library.

    If anyone else is reading this and needs help, you can send a login to your WordPress admin to the Sirv technical support team via the official contact form.

    Thanks!

    David
    Sirv.com

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Unable to Sync’ is closed to new replies.