• Resolved hotbelgo

    (@hotbelgo)


    Hi, still trying to get up and running…
    I took an existing page of my website, and replaced one of the images with a new image I uploaded via the media editor tools. The photo is in there and when the plugin it not activated, I see the image.

    Turn the plugin on and I end up with this html

    <p>
      <a href="https://192.168.0.10:61113/wp-content/uploads/2013/01/Amsterdam-restaurant-resources.png">
        <img src="" sizes="" class="aligncenter wp-image-5026 size-full img-responsive center-block" alt="Amsterdam-restaurant-resources">
      </a>
    </p>

    What am I doing wrong? (I have some sizes set up in Settings > Media, and the uploaded image has a couple of smaller versions stored on the disk correctly. I have NOT though written any php as that seemed to be for advanced cases only?)

    https://www.ads-software.com/plugins/responsify-wp/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author stefanledin

    (@stefanledin)

    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?

    Thread Starter hotbelgo

    (@hotbelgo)

    Latest WP + PHP Version 5.6.4-4ubuntu6.2

    Thread Starter hotbelgo

    (@hotbelgo)

    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.

    Plugin Author stefanledin

    (@stefanledin)

    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!

    Thread Starter hotbelgo

    (@hotbelgo)

    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="https://192.168.0.10/wp-content/uploads/2007/10/Bio-image-landscape-1024x875.jpg"><img class="aligncenter size-full wp-image-5029" src="https://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="https://192.168.0.10/wp-content/uploads/2007/10/Bio-image-landscape-1024x875.jpg"><img src="https://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>

    Plugin Author stefanledin

    (@stefanledin)

    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!

    Thread Starter hotbelgo

    (@hotbelgo)

    Discovered that by deleting the 4 options set in the database with rwp fixed things. Thanks for being so responsive

    Plugin Author stefanledin

    (@stefanledin)

    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!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘src and sizes have no values, no srcset created’ is closed to new replies.