Warning: Getsizeimage problem

5 replies
Hi guys,
I seem to be having a conflict between a plugin and a theme - both of which I really don't want to do without! The error is across the head of the page and reads:

Warning: getimagesize(/var/chroot/home/content/13/8475413/html/wp-content/plugins/xxxxxxxx/images/unavailable.png) [function.getimagesize]: failed to open stream: No such file or directory in /home/content/13/8175413/html/xxxxxx.com/wp-content/themes/canvas/functions/admin-functions.php on line 566

When I check out admin-functions.php line 566 it reads:

$orig_size = getimagesize($file_path);

Any ideas what I need to do? I have tried deleting this but then any shortcodes I use don't work and I have searched for hours for an answer ?
#getsizeimage #problem #warning
  • Profile picture of the author IdeaBox
    make sure the image that you're passing in the getimagesize() is actually there...with proper permissions.
    {{ DiscussionBoard.errors[8478853].message }}
    • Profile picture of the author DoubleOhDave
      Thanks.. I looked through the "images" folder in the plugin and can see the "unavailable.png" image there, so I don't see what is causing the problem. I have It comes and goes on various themes, so I can't determine whether it's the theme or the plugin that I need to look at to solve the issue.:confused:
      {{ DiscussionBoard.errors[8479121].message }}
  • Profile picture of the author IdeaBox
    The only other thing I can think of is that you're linking to a file on another site/server. Upload the image using the media uploader and use that link.
    {{ DiscussionBoard.errors[8479274].message }}
  • Profile picture of the author DoubleOhDave
    Thanks - but what I don't understand is that it is just supposed to be bare header.. no image?
    Can I PM you the exact error message? Maybe that would help?
    sorry - I don't mean to take up your time too long!
    {{ DiscussionBoard.errors[8479306].message }}
    • Profile picture of the author IdeaBox
      Go right a head. I don't leave for work until 3PM Central US...so I have time.
      {{ DiscussionBoard.errors[8479320].message }}

Trending Topics