ferenznetworks / timthumb

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

Can't serve images from CDN #89

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

I have a CDN setup on my domain to serve all images for my site but I am
unable to use it with tomthumb. My images are served from cdn.mydomain.com
but if I link to an image on the CDN, a Red X just appears and if I right
click where the image should be and click view image, the following message
appears on screen:

local file for
http://cdn.mydomain.com/wp-content/uploads/2010/05/testimage.jpg can not be
created
TimThumb version : 1.14

I tried changing flickr.com to cdn.mydomain.com in tomthumb.php but this
hasn't fixed the issue.

Any ideas on how to get around this?

Thanks in advance.

Cheers,

Ross

Original issue reported on code.google.com by info%ros...@gtempaccount.com on 2 May 2010 at 8:36

GoogleCodeExporter commented 8 years ago
I'd love to know how to do this as well.. 

Original comment by wes...@gmail.com on 18 May 2010 at 3:02

GoogleCodeExporter commented 8 years ago
Having the same problem.

Original comment by nkru...@gmail.com on 1 Jun 2010 at 11:26

GoogleCodeExporter commented 8 years ago
Yes!

Original comment by anthony....@gmail.com on 5 Jul 2010 at 4:30

GoogleCodeExporter commented 8 years ago
I ended up fixing this by downloading the new version of tim thumb. I think it 
was from the blog.. 

Original comment by wes...@gmail.com on 5 Jul 2010 at 4:31

GoogleCodeExporter commented 8 years ago
I was able to fix this problem by doing the following --

1. Make sure you've added the domain to the $allowedSites array in timthumb.php 
(in version 1.14, it's line 556). In my case I added 'amazonaws.com' to the end.

2. Browse to the folder that timthumb.php is located in, and create a new 
folder named 'temp', and set its permissions to 777.

That's all I had to do. Why this doesn't seem to be document anywhere is beyond 
me -- very frustrating having spent the last 2 hours trying to get it to work. 
Even those in other forums who claim to have gotten it working weren't exactly 
forthcoming with any details -- very strange.

Original comment by brian.le...@gmail.com on 7 Jul 2010 at 6:21

GoogleCodeExporter commented 8 years ago
did exactly as mentioned above , but not working. :( .. why isn't developers 
not replying ?

Original comment by metallic...@gmail.com on 5 Aug 2010 at 4:35

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi - there's no point loading the images from the cdn in the way you are. I 
will write a blog post explaining why shortly. Subscribe to 
http://www.binarymoon.co.uk/feed/ to be kept up to date

The fixes suggested here are not good ideas since they will open your site up 
to potential security issues.

Original comment by BinaryMoon on 15 Sep 2010 at 4:32

GoogleCodeExporter commented 8 years ago
Create a Temp file and chmod 777

In timthumb.php:
The script allows you to define ALLOW_EXTERNAL which should allow any external 
domain to be used, but ALLOW_EXTERNAL does not appear to be referenced in the 
script.

Change line 603

if ($isAllowedSite) {
to

if ($isAllowedSite || ALLOW_EXTERNAL) {
and all should work well

Original comment by cl...@yahoo.com.sg on 23 Dec 2010 at 3:12