batamcityinfo / timthumb

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

Hitting redirect limit #285

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm not sure if this is a debug just wanted to check if anyone has a solution 
to this.

I'm trying to resize an image from an external site which I believe is hosted 
on a CDN. TimThumb is giving me an error: "Maximum (10) redirects followed", is 
there a way to increase the redirect limit or find the true URL of the image?

What steps will reproduce the problem?
1. 
timthumb.php?w=98&src=http://www.evo.co.uk/images/front_picture_library_UK/dir_9
51/car_photo_475537_23.jpg
2. observe error

What is the expected output? What do you see instead?
Expect to see resized image, instead see error "Maximum (10) redirects followed"

What version of the product are you using? On what operating system?
v2.8.2, tested on windows (7) and linux (Debian)

Please provide any additional information below.

Original issue reported on code.google.com by davidfel...@gmail.com on 8 Nov 2011 at 10:37

GoogleCodeExporter commented 9 years ago
there's a define for this so you can override the redirect number. Have you 
tried increasing the count? 10 should be more than enough for most situations

Original comment by BinaryMoon on 5 Dec 2011 at 11:09

GoogleCodeExporter commented 9 years ago
Thanks for the response. Do you mean CURLOPT_MAXREDIRS? That's the only 
relevant thing I could find in the source.

Original comment by davidfel...@gmail.com on 6 Dec 2011 at 8:46