Categories
Linux Software

WordPress: Solution for “Image could not be processed. Please go back and try again.”

This is a rather cryptical error message WordPress gives when trying to upload a header image and it fails.

The solution is to make sure your server has php(5)-gd installed.

Ubuntu:

apt-get install php5-gd

Red Hat:

yum install php-gd

34 replies on “WordPress: Solution for “Image could not be processed. Please go back and try again.””

Thanks,

I was trying to change the header, with this info I was able to made it.

The solution is to make sure your server has php(5)-gd installed.

I’m not a techy. Could you tell me what the above sentence means? In particular, I’d like to know what ‘which server’ means. and what ‘php(5)-gd’ And how do you instal it?

The links (I presume they’re links) in the box do not link to anything?

I tried WordPress about two years ago and failed miserably. It doesn’t seem much better in 2011. Thanks in advance for any help.

Hi!

No, they are not links. Just commands to run for those who are running correct versions of Linux and can administer them themself. Since you are not a tech guy i suspect that you are using a normal web hotel for your blog. You then have to contact your web host and ask them to install those features on the server.

Hope that helps 🙂

Just wanted to toss in we’re hosting a wordpress site for someone on an old 2k3 IIS server we had sitting on the DMZ. They were having this same issue, and sure enough enabling/installing the GD2 extension resolved this. To add extensions on windows you just re-run the installer, select change, and continue on till you get to “Items to Install”–choosing the additional extensions you need.

This &*(@&^&*^ doesn’t help when most of the world is using MS Windows.
Looks like WordPress can’t even get simple file uploads to work.

Thanks. I was going crazy trying to figure out the problem on a Fedora 15 installation. Too bad the packagers didn’t see fit to include php-gd as a dependency.

Well it didn’t work for me.

root@lazarus [~]# yum install php5-gd
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.greenmountainaccess.net
* extras: centos.mirror.nac.net
* updates: centos.mirror.nac.net
Excluding Packages in global exclude list
Finished
Setting up Install Process
No package php5-gd available.
Nothing to do

Not sure how to add repositories…?

After installing php5-gd and restarting Apache2, I still got the same error messages. Looking thru the error logs I noticed: “failed to open stream: Permission denied in /var/www/wp-admin/includes/file.php on line 348”.

Line 347-8 has:
$new_file = $uploads[‘path’] . “/$filename”
copy( $tmp_file, $new_file );

Ahh, more file permissions, this time on the uploads dir. Once I gave the Apache process recursive write perms to wp-content/uploads and restarted, all was good.

Thanks for the tips!

Well, I must have it on my server, because I have uploaded headers to 3 other sites on the same server. But this one won’t go….any other ideas?

I had this trouble. I logged into my Plesk control panel and noticed that the uploads folder had permission highlighted in black and was owned by Apache. So I deleted it using the file manager and created my own with full read/write permissions. This fixed the problem.

I’m using WordPress.com for my site and am running into this problem.. Any tips? I’m new to WordPress! I’m not sure how to host it on a server, etc..

Comments are closed.