Monday, August 26, 2019

nginx - "Image cannot be processed." Cryptic Wordpress error when uploading new header image



When I attempt to upload a new header image to my wordpress installation my browser's work is acknowledged with a cryptic "Image could not be processed. Please go back and try again." The upload does succeed: wp-content/uploads/.../header.jpg exists as it should.



There are no error messages in /var/log/messages--which php is configured to log errors to--nor in nginx's error log. This setup was previously discussed here.







  • Wordpress 3.0.4

  • Twenty Ten 1.1

  • nginx 0.8.54

  • php-fpm 5.3.5 (fpm-fcgi)

  • Arch Linux


Answer



You might not have the gd library installed and enabled in php. I'm not much of an Linux guy, but I did this to get it installed on my setup:



yum install php-gd



Here's some more about it: http://ubuntuforums.org/showthread.php?t=506801



Don't forget to restart httpd after installing gd.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...