Support » Plugin: RICG Responsive Images » New Bug in 3.1.0: Images getting swapped/duplicated with RICG turned on

  • Resolved rbredow

    (@rbredow)


    With RIGC turned on, I’m getting certain images duplicated/swapped on my pages. This happens on multiple pages and I can’t tell whether it’s something in my markup or not.

    You can see a before/after of the behavior here:

    http://s13.postimg.org/jrze97cqv/Screen_Shot_2015_11_25_at_7_41_43_PM.png

    HTML Excerpt with RICG Off (working as expected):

    <img src="/images/products/megazabba/swatch-aloha-pink-choco-60x60.jpg" alt="Aloha Pink Chocolate" width="60" height="60" class="size-thumbnail wp-image-1405" />

    HTML Excerpt with RICG On (broken/repeated images for each swatch):
    <img src="/images/products/megazabba/swatch-aloha-pink-choco-60x60.jpg" alt="Aloha Pink Chocolate" width="60" height="60" class="size-thumbnail wp-image-1405" srcset="http://www.AllyZabba.com/images/products/allyzabba-aloha/swatch-aloha-blue-60x60.jpg 60w, http://www.AllyZabba.com/images/products/allyzabba-aloha/swatch-aloha-blue-140x140.jpg 140w, http://www.AllyZabba.com/images/products/allyzabba-aloha/swatch-aloha-blue-460x460.jpg 460w, http://www.AllyZabba.com/images/products/allyzabba-aloha/swatch-aloha-blue-600x600.jpg 600w, http://www.AllyZabba.com/images/products/allyzabba-aloha/swatch-aloha-blue-300x300.jpg 300w, http://www.AllyZabba.com/images/products/allyzabba-aloha/swatch-aloha-blue.jpg 1000w" sizes="(max-width: 60px) 100vw, 60px" />

    You can see the full working (non RICG) example here:
    http://www.allyzabba.com/products/megazabba/

    I thought I’d mention it before this code goes into core in case it impacts more than just my markup.

    Rob

    https://wordpress.org/plugins/ricg-responsive-images/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor Joe McGill

    (@joemcgill)

    Hi Rob,

    Thanks for the report. It looks like a problem with the way those image URLs are being created.

    Can you tell me a bit more about your setup? It looks like those specific images are created by a separate plugin. If so, you may want to go ahead and alert that plugin author as well, because if it does happen to be a bug with that plugin, they’ll want to try to get a fix out before WordPress 4.4 comes out in a couple of weeks.

    Thanks,
    Joe

    Thanks for the quick response. The URL’s for those swatches are actually hand coded and not created by a plugin…so I could have messed up something in the markup but I’m not seeing an obvious problem. Am I missing something?

    I do use other plugins on the site. After reading your reply, I wondered if it might be the FancyBox for WordPress Plugin conflicting (it handles the popups on clicks) but I just tried turning it off and the duplicate image problem remains if RICG Plugin is on. Since this is a production site I only did that testing for a minute before returning the site to it’s current state (with RICG off for now).

    I’d like to test this in the next RC of 4.4 WordPress but I haven’t had the time to setup a non-production site to see.

    Is there any other testing you’d like me to do on my end?

    Thanks-

    Rob

    Plugin Contributor Joe McGill

    (@joemcgill)

    Hi Rob,

    Since you hand coded those images, it’s possible that the class attribute contains references to the wrong image ID (wp-image-1405). Can you make sure that 1405 is the correct ID for the image you tested?

    Thanks
    Joe

    Yes, that was it. I had the wrong image ID leftover from cutting and pasting the attributes.

    Thanks for taking a look!

    Rob

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘New Bug in 3.1.0: Images getting swapped/duplicated with RICG turned on’ is closed to new replies.