getimage

5.38K viewsUpdates
0

Hello,

I updated to the latest version and received an error:

Warning: getimagesize(//wp-content/uploads/40H.jpg/40H-150x99.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /wp-content/plugins/anspress-question-answer/includes/image_resize.php on line 30

Any idea?

0
Array ( [width] => 5705 [height] => 3803 [file] => 40H.jpg [sizes] => Array ( [thumbnail] => Array ( [file] => 40H-150x99.jpg [width] => 150 [height] => 99 [mime-type] => image/jpeg ) [medium] => Array ( [file] => 40H-300x199.jpg [width] => 300 [height] => 199 [mime-type] => image/jpeg ) [large] => Array ( [file] => 40H-1024x682.jpg [width] => 1024 [height] => 682 [mime-type] => image/jpeg ) [ap_cover] => Array ( [file] => 40H-878x200.jpg [width] => 878 [height] => 200 [mime-type] => image/jpeg ) [ap_cover_small] => Array ( [file] => 40H-275x200.jpg [width] => 275 [height] => 200 [mime-type] => image/jpeg ) [et-pb-post-main-image] => Array ( [file] => 40H-400x250.jpg [width] => 400 [height] => 250 [mime-type] => image/jpeg ) [et-pb-post-main-image-fullwidth] => Array ( [file] => 40H-1080x675.jpg [width] => 1080 [height] => 675 [mime-type] => image/jpeg ) [et-pb-portfolio-image] => Array ( [file] => 40H-400x284.jpg [width] => 400 [height] => 284 [mime-type] => image/jpeg ) [et-pb-portfolio-image-single] => Array ( [file] => 40H-1080x719.jpg [width] => 1080 [height] => 719 [mime-type] => image/jpeg ) ) [image_meta] => Array ( [aperture] => 0 [credit] => [camera] =>  => [created_timestamp] => 0 [copyright] => [focal_length] => 0 [iso] => 0 [shutter_speed] => 0 [title] => [orientation] => 1 ) ) 

I found the issue, and will fix this.

0

I need some info to solve this issue, simply paste this function in your theme function.php:

print_r(wp_get_attachment_metadata( $attachment_id ));

replace $attachment_id with an id of attachment (wp-admin->media).
and show us the result.