Since I upgrade from D6 to D7 I always seen this error in the "recent log messages"

Type image
Date Sunday, May 6, 2012 - 19:46
User Anonymous (not verified)
Location http://www.sourcecodester.com/sites/default/files/styles/thumbnail/publi...
Referrer
Message Unable to generate the derived image located at public://styles/thumbnail/public/images/admin/Pageant%20Contest.jpg.
Severity notice
Hostname 66.249.73.205

Of course the image is not only one. There are even sometimes that the filetype is .zip file. I don't know why this is happening. It seems that this error is generated by Google bot as the IP Address is belong to Google.

Any ideas on how to fix this problem?

Comments

jaypabs’s picture

I just noticed that the correct URL should be:

sourcecodester.com/sites/default/files/styles/thumbnail/public/images/admin/Pageant%20Contest.jpg

and not:

sourcecodester.com/sites/default/files/styles/thumbnail/public/images/admin/Pageant%2520Contest.jpg

Look at the difference. The correct URL should have "%20" as a replacement for space while on the URL that has an error it was "%2520".

tolstoydotcom’s picture

Something similar happens to me too, and to others. If an image has spaces in the filename, it will be double encoded, resulting in the 2520. A related issue is image URLs like image.jpg?123 being not found when image.jpg%3F123 is requested.

I searched Google images for one of the pages with an image like that, and everything worked.

So, I suspect this isn't a Drupal or Google problem, but something else like a proxy server, the user's browser, or a browser extension. A lot of the 404s were from Safari browsers, but others were from what appeared to be Firefox running on Windows. At least one was from Playstation.

For the %3F issue, almost all were Safari. The other ones were (alarmingly) Googlebot and other bots. They might have picked up those bad URLs somewhere else, since they aren't in the page as far as I can see.

Available for paid support, module development, migrations, consulting...

fonant’s picture

Also a problem with image filenames that contain "&". Must be an encoding issue somewhere.

http://www.fonant.com - Fonant Ltd - Quality websites

brylie’s picture

We are getting this error on a D7.16 install, even with standard image names (no special characters).
"Unable to generate the derived image located at public://styles/thumbnail/public/..."

Our setting for public images folder seems to be correct.

The following page displays a rotating block on the right hand side:
https://www.friendlywater.net/projects/mutaho

Each item in the block is supposed to, and used to, display an image of the person. Instead, a generic image holder appears. When I copy the image source into the URL bar, I get the following error:
"Error generating image."

See: https://www.friendlywater.net/sites/friendlywater.net/files/styles/thumb...

We are running:
PHP 5.4.3
Drupal 7.16

longtom’s picture

...and the fix I found after hours of digging was to switch my image toolkit from imagemagick to GD. I do not know why this worked (time for dinner), but it was what finally fixed it.

usmanjutt84’s picture

It works for me. Thanks