Thanks for the suggestion – unfortunately that didn’t seem to change anything (other than some of the images disappeared from the site). I still get the error message and can’t upload any images.
Does it make a difference that the index.php file in wp-contents is set to 644? I don’t know what that one means!