khashnan / timthumb

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

Not loading images through symlinked folders #239

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm running a WordPress website and using timthumb in a banner rotator with the 
wordpress uploads directory symlinked to another location on the server. 

Timthumb is returning the error "Could not find the internal image you 
specified." when trying to load any image in the wordpress uploads directory. I 
have no problem loading and generating thumbnails with images in other folders 
which are not symlinked as well as images from flickr and alike.

I'm running Linux (on webfaction.com) with timthumb v2.8. I've tried setting 
ALLOW_ALL_EXTERNAL_SITES with no success and ensuring FollowSymLinks is enabled 
in Apache.

Original issue reported on code.google.com by bosto...@gmail.com on 18 Aug 2011 at 7:35

GoogleCodeExporter commented 8 years ago
On WebFaction, you need to set your PHP DOCUMENT_ROOT to avoid this problem. 
See http://docs.webfaction.com/software/php.html#configuring-document-root for 
instructions.

Original comment by wsful...@gmail.com on 21 Aug 2011 at 7:34

GoogleCodeExporter commented 8 years ago
Thanks for the reply. I set the document root as per instructions but no luck.

This link doesn't work (from symlinked uploads dir):
http://jazinga.pmlo.org/wp-content/plugins/shortcodes-ultimate/lib/timthumb.php?
src=http://jazinga.pmlo.org/wp-content/uploads/2011/08/iStock_000004664572Medium
.jpg&w=750&h=400&q=100&zc=1

This one works (no symlink):
http://jazinga.pmlo.org/wp-content/plugins/shortcodes-ultimate/lib/timthumb.php?
src=http://jazinga.pmlo.org/wp-content/themes/jazinga/images/banner.jpg&w=750&h=
400&q=100&zc=1

But both images can be accessed directly.
http://jazinga.pmlo.org/wp-content/uploads/2011/08/iStock_000004664572Medium.jpg
http://jazinga.pmlo.org/wp-content/themes/jazinga/images/banner.jpg

Original comment by bosto...@gmail.com on 22 Aug 2011 at 2:00

GoogleCodeExporter commented 8 years ago
I'm having this same problem too. Any help would be wonderful!

Original comment by shaneds...@gmail.com on 23 Aug 2011 at 3:59

GoogleCodeExporter commented 8 years ago
Same here too. In my case the url contain "+" character and in your case it's 
"_". Maybe this is the problem.

Don't know php too much so can't help to fix the code. But try to rename that 
file by remove the underscore character.

Original comment by b420...@klzlk.com on 25 Aug 2011 at 5:41

GoogleCodeExporter commented 8 years ago
I'm having this exact problem on studiomoon.biz

Original comment by TARozze...@gmail.com on 26 Aug 2011 at 6:56

GoogleCodeExporter commented 8 years ago
I have had the "_" problem in the past, and just renamed files to get around 
it.  Now I am having the issue def with no underscores in the file names, would 
be great to have this issue sorted.
I just upgraded to 2.8, but still no luck.
http://shoelacethefilm.com/?p=576
http://shoelacethefilm.com/wp-content/themes/fotofolio/scripts/timthumb.php?src=
http://shoelacethefilm.com/wp-content/uploads/2011/04/MT766.jpg&w=480&h=275&zc=1
The funny thing is the Image loads fine by itself.

Another error I am getting in the Insect an element, that might be related 
maybe?

Uncaught TypeError: Cannot call method 'replace' of undefined
iimgpreview.js:10
c.fn.imgPreview.h.mousemove.d.css.topimgpreview.js:10
c.fn.imgPreviewimgpreview.js:10
(anonymous function)effects.js:2
o.extend.ready.o.readyListjquery.js:19
o.extend.eachjquery.js:12
o.extend.readyjquery.js:19
o.each.o.fnjquery.js:19

Original comment by cclam...@gmail.com on 17 Sep 2011 at 7:45