Hi again! Sorry for the delay, I didn’t have the time to get back to you yesterday.
This is a very weird issue. I suspect that RWP doesn’t find all available image sizes because of the IP and port numbers. The strange thing is that RWP should ignore the <img> in that case.
Which WordPress version are you using? PHP version?
Latest WP + PHP Version 5.6.4-4ubuntu6.2
OK, I tried on an Openshift server that uses port 80 and it works. But I tried switching to port 80 on my development machine (192.168.0.10) and it still does not work.
Hi again! Really sorry that I haven’t replied, I’ve been really busy at work the last couple of days.
It doesn’t sound like there should be anything wrong with your environment, so I suspected that the IP adress with the port number might have something to do with it.
I don’t know exactly why this is a problem, but I’ll see if I can recreate it myself. Glad it worked out for you!
Have you had any joy looking into this as it’s really stopping me test very well. This is an example of what Worpdress is storing when I add an image from the media library.
<a href="http://192.168.0.10/wp-content/uploads/2007/10/Bio-image-landscape-1024x875.jpg"><img class="aligncenter size-full wp-image-5029" src="http://192.168.0.10/wp-content/uploads/2007/10/Bio-image-landscape-1024x875.jpg" alt="Bio-image-landscape-1024x875" width="1024" height="875" /></a>
And this is what comes out for visitors. The plugin has clearly been used as the sizes attribute has been added, by there is no srcset (which is what I have set it up to output).
<a href="http://192.168.0.10/wp-content/uploads/2007/10/Bio-image-landscape-1024x875.jpg"><img src="http://192.168.0.10/wp-content/uploads/2007/10/Bio-image-landscape-1024x875-800x684.jpg" sizes="800px" class="aligncenter size-full wp-image-5029 img-responsive center-block" alt="Bio-image-landscape-1024x875"></a>
Oh sorry, I thought you’d found a solution! On the other hand, I can’t recreate the issue myself. I am however working on a new version of RWP which has a debug mode. It will print out HTML comments with info about which image sizes that where found and used and that sort of stuff.
I hope that will help us come closer to where the problem is located!
Discovered that by deleting the 4 options set in the database with rwp fixed things. Thanks for being so responsive
Hi again!
The new 1.9.2 version I released today has a debug mode. HTML comments with information about what RWP could do or could not do will be inserted before each image.
If you bump into problems again, you could post the comments here and I’ll take a look at it!