I have imported my site from a local to a live server and this error has come up for only 4 of my images and it worked perfect on the local server.
Warning: getimagesize(http://localhost/theshavingsaloonNEW/wp-content/uploads/2015/08/step1.jpg) [function.getimagesize]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /nfs/c11/h03/mnt/206312/domains/theshavingsaloon.com/html/wp-content/plugins/wr-pagebuilder/shortcodes/image/image.php on line 223
Here is the if statement around line 223 if it helps
if ($image_file) {
$image_id = WR_Pb_Helper_Functions::get_image_id($image_file);
$attachment = wp_prepare_attachment_for_js( $image_id );
$image_file = (!empty( $attachment['sizes'][$image_size]['url'])) ? $attachment['sizes'][$image_size]['url'] : $image_file;
$data = getimagesize( $image_file );
$width = $data[0];
$height = $data[1];
$html_elemments .= "<img width='{$width}' height='{$height}' src='{$image_file}'{$alt_text}{$class_img} />";
$script = '';
$target = '';
}