Title: Issues with getimagesize()
Last modified: August 20, 2016

---

# Issues with getimagesize()

 *  [Trezy](https://wordpress.org/support/users/paraplegicpanda/)
 * (@paraplegicpanda)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/issues-with-getimagesize/)
 * I’m trying to use getimagesize() to retrieve the height of an image. For some
   reason I’m getting this error when I try to use it:
 *     ```
       Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in /homepages/9/d195134656/htdocs/ravenworks/wp-content/plugins/slyd/slyd.php on line 245
   
       Warning: getimagesize(http://raven.trezy.com/wp-content/uploads/2012/02/responsiveBanner2.png) [function.getimagesize]: failed to open stream: no suitable wrapper could be found in /homepages/9/d195134656/htdocs/ravenworks/wp-content/plugins/slyd/slyd.php on line 245
       ```
   
 * You can check out the error here: [http://raven.trezy.com/home/](http://raven.trezy.com/home/)
 * The code is in my plugin, [Slyd](http://wordpress.org/extend/plugins/slyd/). 
   The script is in the plugin’s file [slyd.php](http://plugins.svn.wordpress.org/slyd/tags/1.2.3/slyd.php)
   on line 228. Here’s the snippet:
 *     ```
       if ( ( $height == 'auto' ) && ( $post_thumb_src[0] ) ) {
       	$post_thumb_size = getimagesize( $post_thumb_src[0] );
       	if ( $post_thumb_size[1] > $slyd_height ) {
       		$slyd_height = $post_thumb_size[1];
       	}
       }
       ```
   

Viewing 1 replies (of 1 total)

 *  [phpspider](https://wordpress.org/support/users/phpspider/)
 * (@phpspider)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/issues-with-getimagesize/#post-2603568)
 * Hi Trezy,
 * Please check value in this “$post_thumb_src[0]” variable which you are getting.
   I think you are not getting proper value in $post_thumb_src[0].
 * Regards,
    PHPSPIDER

Viewing 1 replies (of 1 total)

The topic ‘Issues with getimagesize()’ is closed to new replies.

## Tags

 * [getimagesize](https://wordpress.org/support/topic-tag/getimagesize/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [phpspider](https://wordpress.org/support/users/phpspider/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/issues-with-getimagesize/#post-2603568)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
