m7com / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

Not working with external images #314

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.View this url 
http://www.evilshenanigans.com/wp-content/themes/flashnews/functions/thumb.php?s
rc=http://farm7.static.flickr.com/6042/6328080050_236919ec8b_o.jpg&w=75&h=75&zc=
1&q=90
2.
3.

What is the expected output? What do you see instead?
Not seeing the thumbnail being created

What version of the product are you using? On what operating system?
2.8.2 on Linux and Wordpress 3.3

Please provide any additional information below.

I am not sure what happened but nothing has been changed on the site and 
everything was working fine up until today. But today none of my thumbnails are 
working except for the ones being created from images locally hosted.

Works - 
http://www.evilshenanigans.com/wp-content/themes/flashnews/functions/thumb.php?s
rc=wp-content/uploads/2011/10/pumpkin-fondue-recipe.jpg&w=75&h=75&zc=1&q=90

Does not work - 
http://www.evilshenanigans.com/wp-content/themes/flashnews/functions/thumb.php?s
rc=http://farm7.static.flickr.com/6042/6328080050_236919ec8b_o.jpg&w=75&h=75&zc=
1&q=90

The image on flickr is there and works and I even checked the thumbs.php file 
and it has not changed since Dec 7th.

Any thoughts on why the thumbnails just stopped working for images pulled from 
external sites?  It does not seem to matter where the image is located.  I 
tried images on flickr and elsewhere.

Original issue reported on code.google.com by roadras...@gmail.com on 5 Jan 2012 at 2:43

GoogleCodeExporter commented 8 years ago
I turned on debug and I am not seeing anything in my error_log related to 
timthumb trying to get the external images.  I see a lot of entries where it 
retrieved an internal image.  Could this mean it is not even fetching the 
external images?

Original comment by roadras...@gmail.com on 5 Jan 2012 at 3:15

GoogleCodeExporter commented 8 years ago
Ok, after taking a couple of hours to debug I contact my host which is 
Hostgator.  I was already aware that Hostgator requires some modifications to 
mod_security to whitelist the use of timthumb.  This was obviously done a long 
time ago for me since the site has been up for a while.  For some reason after 
talking with support they had to re-whitelist it.  They say that it could have 
been do to a recent WP update.  I find that hard to believe.  At least I now 
know what to do if this happens again.

Original comment by roadras...@gmail.com on 5 Jan 2012 at 4:34