WordPress.org

Ready to get started?Download WordPress

Forums

Image Rotator Widget
[resolved] Warning: getimagesize (18 posts)

  1. merologin
    Member
    Posted 1 year ago #

    I'm getting this error during local development. Help!

    Warning: getimagesize(F:/xampp/htdocs/wp-content/uploads/2013/05/pic.jpg) [function.getimagesize]: failed to open stream: No such file or directory in F:\xampp\htdocs\mysite\wp-content\plugins\dk-new-medias-image-rotator-widget\dk-image-rotator-widget.php on line 117

    http://wordpress.org/extend/plugins/dk-new-medias-image-rotator-widget/

  2. Marja Beckers
    Member
    Posted 1 year ago #

    I get the same error on my life site.

  3. creeser
    Member
    Posted 1 year ago #

    I have the same site running on my local, and on a live godaddy server. The plugin works on the my local, but I'm getting the same error on the godaddy server.

  4. Douglas Karr
    Member
    Plugin Author

    Posted 1 year ago #

    Have you folks all updated? We just pushed an update yesterday.

    Merologin, You are accessing an http request with a windows path. I'm not sure that will work.

    Creeser, Check the user that php runs under. If you're with godaddy, they use virtual servers so your php user may not actually have access even if you've chmod'd it. Find out the user, then chown it to that user and see if it helps.

  5. creeser
    Member
    Posted 1 year ago #

    Doug, I don't know what you mean by checking the php of the user. I'm the administrator of both sites. It's a brand new install, just started this morning on my local and pushed it to godaddy. The server is running PHP version 5.7.12

  6. merologin
    Member
    Posted 1 year ago #

    @Douglas: I guess the error is due to image path. If I suppress that error then it works but the image will be in original size. How can it be resolved?

  7. jgitta
    Member
    Posted 1 year ago #

    Same problem here. Reinstalled no help. Was working but now fails.

  8. Marja Beckers
    Member
    Posted 1 year ago #

    If I remove line 117 from dk-image-rotator-widget.php it works.
    The plugin worked fine until I updatend so I doubt it has anything to do with the server/host.

  9. PaulaJ
    Member
    Posted 1 year ago #

    I just updated a client's site (plugins, Headway Theme, WordPress) and the rotator on the home page is broken in the same way as the original poster described. YIKES.

    I

  10. opencuny
    Member
    Posted 9 months ago #

    Hi,

    I am having the same problem as the original poster.

    Warning: getimagesize(/home/opencuny/public_html/files/2013/10/Fine-Muslim-Am-Youth.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /home/opencuny/public_html/wp-content/plugins/dk-new-medias-image-rotator-widget/dk-image-rotator-widget.php on line 117

    @merologin suggested suppressing the error- how do I do this?

    This seems like a image path error- how do i correct that?

    Any suggestions would be great, thanks!

  11. netbrana
    Member
    Posted 8 months ago #

    Go to dk-image-rotator-widget.php and on line 116 change
    $_SERVER['DOCUMENT_ROOT']
    to
    ABSPATH

    This line will appear like this:
    $image_path = str_replace(get_bloginfo('url'), ABSPATH, $a[0]);

  12. Douglas Karr
    Member
    Plugin Author

    Posted 6 months ago #

    This is now updated and corrected. The issue was happening do to the path of the images and where WP was installed.

  13. mircom
    Member
    Posted 5 months ago #

    Im still getting the error even after the update:
    Warning: getimagesize(//wp/wp-content/uploads/2012/11/GenisTop.png) [function.getimagesize]: failed to open stream: No such file or directory in /wp/wp-content/plugins/dk-new-medias-image-rotator-widget/dk-image-rotator-widget.php on line 145

  14. mircom
    Member
    Posted 5 months ago #

    To fix it, ive removed line 145 and works fine now.
    $sizes = getimagesize($image_path);

  15. JEA Lisa
    Member
    Posted 5 months ago #

    Hi Douglas,

    I just updated wordpress today, and followed that with an update of this plug-in. Get this- I was working in the back end getting all of the images and links into the sidebar widget. After each one, I used the "visit" site link from admin to check to make sure the images were loading and links were working. Everything looked fine - I created 3 with 4 images each.

    Then! I accessed my site directly from google and get the following warning:
    Warning: getimagesize(//wordpress/wp-content/uploads/2014/01/somwpad-e1390453810202.png) [function.getimagesize]: failed to open stream: No such file or directory in /home/content/49/3492049/html/wordpress/wp-content/plugins/dk-new-medias-image-rotator-widget/dk-image-rotator-widget.php on line 145

    This is the same as mircom - but I am not so comfortable removing a line of code.

    Help... please...

    Thanks in advance for your time.

  16. JEA Lisa
    Member
    Posted 5 months ago #

    I probably should not have posted this to a thread that has been marked resolved. Since I did, I will post my latest discovery here and then begin a new thread to make sure you see it.

    What I found today is that if my site is accessed with a www. or http, the images appear without issue and everything works beautifully.

    The error I mention above only happens when I access my site with https. Not sure if there is a way to fix this, or if it needs to be.

    Thanks in advance for your time and patience,

    Lisa

  17. srcoley
    Member
    Plugin Author

    Posted 5 months ago #

    Please try updating to version 0.2.9. I've made some changes to try to solve this issue. Let me know how it goes!

    Thanks,
    Stephen

  18. sdk
    Member
    Posted 4 months ago #

    just updated and still doesn't work. i've followed mircom's advice above to temp fix...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic