• Hello!

    I’ve been trying to self-solve this problem related to srcset for responsive images for the past week by searching the Forum, but I’m stuck for what the root cause could be and could use some outside eyes and expert advice. It could be something incredibly obvious.

    All of my images with the file path like “https://crushingkrisis.com/wp-content/uploads/2011/04/NSM68-0007-194×300.jpg” are broken on the front-end of my site due to srcset. Also, while their images load in visual editor, if I click them to edit them as Media the media editor cannot locate the image.

    Here is the HTML of that image from post editor:

    <img class="alignright size-medium wp-image-5006" title="NSM68-0007" src="https://crushingkrisis.com/wp-content/uploads/2011/04/NSM68-0007-194x300.jpg" alt="" width="194" height="300" /
    
    That should work just fine - you can visit the image right now! However, In both front-end and - notably - in the Image Details window in post editor, WordPress expects to find the image at https://crushingkrisis.com/assets/2011/04/NSM68-0007-194x300.jpg - which causes the broken link. 
    
    Here's the HTML of that image from my front-end:

    <img class=”alignright size-medium wp-image-5006″ title=”NSM68-0007″ src=”https://crushingkrisis.com/wp-content/uploads/2011/04/NSM68-0007-194×300.jpg&#8221; alt=”” width=”194″ height=”300″ srcset=”https://crushingkrisis.com/assets/2011/04/NSM68-0007-194×300.jpg 194w, https://crushingkrisis.com/assets/2011/04/NSM68-0007.jpg 400w” sizes=”(max-width: 194px) 100vw, 194px” />

    To see that image in context, visit https://crushingkrisis.com/collecting-x-men-comic-books-as-graphic-novels/collecting-namor-the-sub-mariner-comics-as-graphic-novels/ – the first three images are affected by this issue; the later images are already located in /assets/ and they load correctly.

    When I upload a new image, it gets an “/assets/” path rather than a “/wp-content” path.

    Further details:

    • I am on WP 4.5.2.
    • I don’t tend to dig very deeply into the new features in each version of WordPress – for example, I just learned about Response images while researching this issue! So, there could be something obvious I’m unaware of.
    • I don’t want to turn of Responsive images if I can help it.
    • Other solutions I have seen relate to HTTP vs HTTPS issues with srcset or to media management plugins, but neither are a factor for me
    • I have already tried deactivating all of my plugins, and nothing changed.
    • I have not manually altered any setting related to my image paths or migrated the paths of my images – my blog has been installed in the same location since 2007.

    I can respond with any further details that could help explain the issue and I am happy to read or research any material you can point me towards. I am relatively savvy at PHP and MYSQL, but not with server permissions or htaccess.

    Thank you!

Viewing 1 replies (of 1 total)
  • Thread Starter krisis

    (@krisis)

    If anyone would like to chime in (or has this problem as well), I’ve been able to fix it so far and elected to turn off Responsive Images with a plugin so my site does not continue to be broken for new visitors ??

Viewing 1 replies (of 1 total)
  • The topic ‘Old WP-Content image upload URLs remapped by srcset to Assets, but won't load’ is closed to new replies.