title: getimagesize() failed to open stream: HTTP request failed! error
body: <p>I'm using wordpress in my blog, but I see repeated errors in error_log as below. How can I solve this problem?</p>
  
  <p>Thanks.</p>
  
  <p>error_log</p>
  
  <pre><code>[29-Nov-2015 12:01:14 UTC] PHP Warning:  getimagesize(http://hardal.com/wp-content/uploads/2015/11/glogo.png): failed to open stream: HTTP request failed!  in /home/hardal/public_html/wp-content/themes/hardal/header.php on line 36
  [29-Nov-2015 12:01:14 UTC] PHP Warning:  getimagesize(http://hardal.com/wp-content/uploads/2015/11/glogo21.png): failed to open stream: HTTP request failed!  in /home/hardal/public_html/wp-content/themes/hardal/functions/theme-actions.php on line 38
  </code></pre>
  
  <p>theme-actions.php line 36 to 41</p>
  
  <pre><code>  &lt;div class="row" id="copyright-note"&gt;
  &lt;?php if ($albay_options['albay_footer_logo'] != '') { ?&gt;
      &lt;?php list($width, $height, $type, $attr) = getimagesize($albay_options['albay_footer_logo']); ?&gt;
      &lt;div class="foot-logo"&gt;
          &lt;a href="&lt;?php echo home_url(); ?&gt;" rel="nofollow"&gt;&lt;img src="&lt;?php echo $albay_options['albay_footer_logo']; ?&gt;" alt="&lt;?php bloginfo( 'name' ); ?&gt;" &lt;?php echo $attr; ?&gt;&gt;&lt;/a&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>header.php line 33 to 43</p>
  
  <pre><code>                &lt;?php if ($albay_options['albay_logo'] != '') { ?&gt;
                  &lt;?php if( is_front_page() || is_home() || is_404() ) { ?&gt;
                          &lt;h1 id="logo" class="image-logo"&gt;
                              &lt;?php list($width, $height, $type, $attr) = getimagesize($albay_options['albay_logo']); ?&gt;
                              &lt;a href="&lt;?php echo home_url(); ?&gt;"&gt;&lt;img src="&lt;?php echo $albay_options['albay_logo']; ?&gt;" alt="&lt;?php bloginfo( 'name' ); ?&gt;" &lt;?php echo $attr; ?&gt;&gt;&lt;/a&gt;
                          &lt;/h1&gt;&lt;!-- END h1--&gt;
                  &lt;?php } else { ?&gt;
                        &lt;h2 id="logo" class="image-logo"&gt;
                              &lt;?php list($width, $height, $type, $attr) = getimagesize($albay_options['albay_logo']); ?&gt;
                              &lt;a href="&lt;?php echo home_url(); ?&gt;"&gt;&lt;img src="&lt;?php echo $albay_options['albay_logo']; ?&gt;" alt="&lt;?php bloginfo( 'name' ); ?&gt;" &lt;?php echo $attr; ?&gt;&gt;&lt;/a&gt;
                          &lt;/h2&gt;&lt;!-- END h2--&gt;
  </code></pre>