• Resolved enrico_34

    (@enrico_34)


    Every now and than, I have an error on the thumbnail of this widget.

    Warning: getimagesize() [function.getimagesize]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/mywebsite/public_html/wp-content/plugins/post-feature-widget/postfeature.php on line 255

    Warning: getimagesize(http://www.mywebsite.com/wp-content/uploads/2011/04/image-150×150.jpg) [function.getimagesize]: failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/mywebsite/public_html/wp-content/plugins/post-feature-widget/postfeature.php on line 255

    Warning: Division by zero in /home/mywebsite/public_html/wp-content/plugins/post-feature-widget/postfeature.php on line 257

    The text and title is showing ok, but the thumbnail has errors.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter enrico_34

    (@enrico_34)

    plugin last version and wordpress 3.1.2

    Hello Enrico,

    I have the above mentioned error only, if the actual file is not on the server anymore. But the

    php_network_getaddresses: getaddrinfo failed:

    sounds very much like a hotlinked picture. Unfortunatey, there is at the moment not much that I can do about it, since on my server, hotlinked images are just not shown at all in WP. I’m not such a php.ini wizzard, that I could let the plugin check the permissions.

    Greetings,
    Stefan

    Hmm, well, I’m getting the same errors and mine is not a hotlinked picture.

    A very helpful person sent me a mail with the following code:

    if you change line 252 in the postfeature.php file from

    $fpw_thumb = $matches [1] [0];

    to

    $fpw_thumb = $matches [1] [0];
    if ( ! preg_match ('/^w*:///',$fpw_thumb) ) { $fpw_thumb = site_url() . $fpw_thumb; }

    it worked for him very well. For my testing server it caused the plugin to crash.

    I suggest, you both try the same and see, if it works for you. I hope to come up with a real solution once, I find one.

    Greetings

    regardless of the post, i get the same errors

    Another helpful person has eliminated an error, which I could never produce in my testing environment. It seems to work better, than the hack, mentioned above and the next version (which is about to come) will hopefully not produce such errors anymore.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Plugin error on thumbail "Warning: getimagesize()"’ is closed to new replies.