• Resolved dapickboy

    (@dapickboy)


    Hi !
    Since I updated today for 1.7.1, some of my posts load only the thumbnail size of images.
    Well, only some images, I think it’s the littlest ones.

    And the php console throw a lot of errors. For each image trying to load I get :
    “stderr: PHP message: PHP Warning: Illegal string offset ‘width’ in /data/bas/site/fr/wp-content/plugins/responsify-wp/includes/create_responsive_image.php on line 58” and “stderr: PHP message: PHP Warning: Illegal string offset ‘height’ in /data/bas/site/fr/wp-content/plugins/responsify-wp/includes/create_responsive_image.php on line 59”.

    Do you have some ideas about that ?

    https://wordpress.org/plugins/responsify-wp/

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

    (@stefanledin)

    Hi dapickboy!
    First, thanks for pointing out this issue! 🙂
    You say that this only happens to some images? Does they have anything in common? Like, is the original images smaller than the large size?

    Thread Starter dapickboy

    (@dapickboy)

    Hey, sorry, I think I should have thank you first for this great plugin :))

    Yes, that’s what I meant. I think it only concern images that original size is below the ‘large’ size declared in WP options, maybe even smaller than the medium size.

    Plugin Author stefanledin

    (@stefanledin)

    😀 Tell your friends 😉

    Okey, good, then I know what the problem is. The plugin is looking for the full size image at line 58 and 59. I’ll take a look at it during the weekend, so expect an update soon 🙂
    Meanwhile, you can always download 1.7.0 again from here.

    Thread Starter dapickboy

    (@dapickboy)

    OK, so, I’ll go back to 1.7.0.
    Thanks a lot !

    Plugin Author stefanledin

    (@stefanledin)

    I’m trying to recreate the scenario now. I see that only the thumbnail size is loaded and not the original. But I don’t get any PHP error though! I’ve tried on PHP 5.6, 5.5, 5.4 and 5.3.
    Which PHP version and WordPress version are you using? Apache or Nginx?

    Thread Starter dapickboy

    (@dapickboy)

    We’re on an Apache server, with Nginx reverse-proxy and PHP 5.4.33 (and 64bitOS, but I don’t think it’s the point here).

    Plugin Author stefanledin

    (@stefanledin)

    This version should include the original image size. Would you mind trying it out and confirm that it works for you to?
    I have no idea why you’re getting the PHP errors though, but I hope this fix solves both problems 🙂

    Thread Starter dapickboy

    (@dapickboy)

    Hi ! Sorry for the delay, but you’ll be happy to hear that it seems to be fixed 🙂
    I tested it locally (same set-up), and it work great.
    Do you advise me to install it on the prod server or wait till you push an update ?

    Again, thanks a lot !
    G.

    Plugin Author stefanledin

    (@stefanledin)

    Great! 😀
    Yes you can do that if you want. It’s the version I’ll push out later today.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Wrong size loaded & Php errors’ is closed to new replies.