I had this error message when uploading images in WordPress. Image dimensions were set to 0x0 and the thumbnails did not appear.
A quick scan of the Apache logs
PHP Warning: copy(/var/www/vhosts/thedomain.com/httpdocs/wp-content/uploads/thephoto.jpg): failed to open stream: Permission denied in
showed me that I needed to correct the permissions on the /wp-content/uploads directory to allow Apache to write to it.
I’m getting this error after upgrading Wp 3.5 +. Not sure why this happening. I can see the image uploaded but can’t find them after clicking Edit Image, Also I dont see the image dimensions for those photos I’m having the error. Anyone?