Forums

Featured Post Widget
[resolved] Plugin error on thumbail "Warning: getimagesize()" (7 posts)

  1. enrico_34
    Member
    Posted 1 year ago #

    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-150x150.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.

  2. enrico_34
    Member
    Posted 1 year ago #

    plugin last version and wordpress 3.1.2

  3. tepelstreel
    Member
    Posted 1 year ago #

    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

  4. traceelements
    Member
    Posted 1 year ago #

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

  5. tepelstreel
    Member
    Posted 1 year ago #

    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

  6. vin1933
    Member
    Posted 8 months ago #

    regardless of the post, i get the same errors

  7. tepelstreel
    Member
    Posted 7 months ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic