Closed GoogleCodeExporter closed 9 years ago
I'm using nginx.
Original comment by oldstep...@dmacmedia.ie
on 3 Apr 2012 at 11:12
I am also facing this problem with my wordpress installation, please help me
too.
Original comment by yuvi2...@gmail.com
on 13 Apr 2012 at 6:18
i am also facing error
my site showing this
-----------------------------------------------------------------
A TimThumb error has occured
The following error(s) occured:
Could not find the internal image you specified.
Query String :
src=http%3A%2F%2Fwww.discusswire.com%2Fwp-content%2Fuploads%2F2012%2F04%2Fcentos
.png&h=309&w=640&zc=1
TimThumb version : 2.8.10
-------------------------------------------------------------------------
Original comment by ashizak916
on 19 Apr 2012 at 1:20
I have the same trouble, i have tried with the fixes from previous posts, and
they have not worked any of them, the only thing i know is that you have to
elimante the address from the url, for examples instead of saying
src=http%3A%2F%2Fwww.discusswire.com%2Fwp-content%2Fuploads%2F2012%2F04%2Fcentos
.png&h=309&w=640&zc=1 it should look
src=wp-content%2Fuploads%2F2012%2F04%2Fcentos.png&h=309&w=640&zc=1 but i dont
know php
Original comment by morales0...@gmail.com
on 27 Apr 2012 at 7:07
Same problem here!! It's so sad that such a good script has so many problems to
work easily... On the official page there's no reference what so ever to this
problems. And not a word from the developers
Original comment by pen...@gmail.com
on 3 May 2012 at 3:45
I am having the same problem as well. I think it has to do with using
multisite in wordpress though. I am working on a solution trying to make it so
timthumb gets the right url for the image.
Original comment by jessehew...@gmail.com
on 4 May 2012 at 7:30
Hopefully this will help someone. It probably is not the best solution, but it
got it to work for me. If you are using multisite with wordpress and are
getting the TimThumb error where it cannot find the internal image you
specified then try this:
You may be currently linking your image like this:
<img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php
get_image_url(); ?> />
This will use a filtered link, and not the actual path to the image file.
To unfilter it try using this:
<?php $image = get_attached_file( get_post_thumbnail_id( $post->ID ), true ); ?>
<img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php
echo $image; ?> />
The get_attached_file( $attachment_id, $unfiltered ); function can return an
unfiltered image url which worked in my case.
Happy Coding.
Original comment by jessehew...@gmail.com
on 4 May 2012 at 8:09
My $_SERVER['DOCUMENT_ROOT'] is appending a underline after the server path
(timthumbs.php, line 799). I don't know why.
To workaround this issue, I simply remove the underline using the bottom code.
I know that this is not the best option but works for me.
put this code:
$docRoot = substr($docRoot, 0, strlen($docRoot) - 1);
immediately before this code (line 845):
$this->docRoot = $docRoot;
Original comment by ivonec...@gmail.com
on 4 May 2012 at 8:45
use this, it's an old version but surely it wont have the same mistakes as the
new version, i dont know if it has bugs, but it works thats what matter to me
Original comment by morales0...@gmail.com
on 8 May 2012 at 4:34
[deleted comment]
The solution from comment#9 worked well for me.
Is there any functionality or security problem having to do with using this
reduced/older version of timthumb?
Original comment by e301...@gmail.com
on 23 Jul 2012 at 9:21
Same problem but now with the .php of the comment #9 it works!!!
Original comment by tuq...@gmail.com
on 6 Sep 2012 at 12:55
Comment #9 works after an hour or so trying to figure it out, thanks!
Original comment by kudub...@gmail.com
on 21 Sep 2012 at 11:40
Ty #9 !
Original comment by S4nG...@gmail.com
on 24 Sep 2012 at 5:30
I can't see what version #9 has posted here. The oldest safe version is 2.8.2.
Anything older than this is vulnerable
Original comment by gravityf...@gmail.com
on 25 Sep 2012 at 11:24
Thank you Comment 9. It works
Original comment by dodangti...@gmail.com
on 13 Oct 2012 at 5:41
comment#9 thank you... It works for me... I think the old much work fine and
rid the new version :) rockpinoy
Original comment by donnie...@gmail.com
on 27 Oct 2012 at 12:07
http://gator363.hostgator.com/~horsew/wordpress/wp-content/themes/kingsize/timth
umb.php?src=http://gator363.hostgator.com/~horsew/wordpress/wp-content/uploads/2
012/10/IMG_5713.jpg&w=330&h=220&zc=1&q=100
yields this error, but using the relative path
http://gator363.hostgator.com/~horsew/wordpress/wp-content/themes/kingsize/timth
umb.php?src=wp-content/uploads/2012/10/IMG_5713.jpg&w=330&h=220&zc=1&q=100
doesn't. The old version didn't work for me as well.
Original comment by luisamoy...@gmail.com
on 28 Oct 2012 at 1:54
[deleted comment]
#18, so how do you make change to get it work?
Original comment by gofree.s...@gmail.com
on 31 Oct 2012 at 3:57
http://electcambodianhair.soweic.com/portfolio/wavy-1/
Original comment by gofree.s...@gmail.com
on 31 Oct 2012 at 3:58
#7, where do you put this line?
Original comment by gofree.s...@gmail.com
on 31 Oct 2012 at 4:18
Found solution:
JACOB RACCUIA
I was able to fix my issue by doing TWO things.
I turned this line to true: [line 33]
if(! defined('ALLOW_ALL_EXTERNAL_SITES') ) define ('ALLOW_ALL_EXTERNAL_SITES',
TRUE); // Less secure.
and I commented out this line [line 212]
//$this->src = preg_replace('/https?:\/\/(?:www\.)?' . $this->myHost . '/i',
'', $this->src);
Whether or not this is an appropriate way, it is the fix I found to work after
8+ hours of troubleshooting.
Hopefully this helps some people!
Source: http://www.binarymoon.co.uk/2009/10/timthumb-wordpress-mu/
Original comment by ad...@soweic.com
on 1 Nov 2012 at 5:13
thanks ad...@soweic.com
Original comment by akmur...@gmail.com
on 4 Nov 2012 at 10:57
My using it on my own mvc the url of the image is something like this
http://174.120.189.92/~touqeer/cms/application/lib/timthumb/timthumb.php?src=/~t
ouqeer/cms/content/uploads/Jellyfish.jpg&w=610&h=300
can some body please help me with this :(
Original comment by touqeer....@gmail.com
on 8 Nov 2012 at 1:19
thanks
Comment 23 by ad...@soweic.com, Oct 31, 2012
Original comment by jarredsp...@gmail.com
on 27 Nov 2012 at 3:29
Comment 9 work fine ! thanks for that, that's only what counts.
Original comment by salvap...@gmail.com
on 29 Nov 2012 at 8:05
Original comment by BinaryMoon
on 3 Dec 2012 at 10:23
line number 825
comment $docRoot = @$_SERVER['DOCUMENT_ROOT'];
and add $docRoot = dirname(__FILE__);
Original comment by zzlal...@gmail.com
on 25 Dec 2012 at 9:02
Thank you Comment 23. It works.
:)
Original comment by vuar...@gmail.com
on 11 Jan 2013 at 7:00
NotBug? of course that is a bug...
Original comment by one...@gmail.com
on 25 Jan 2013 at 3:27
Had the same error. My error was simply the filename of the pic. There was a
"+" at the filename. "pic123+internet.jpg" after renaming "pic123internet.jpg"
all works fine.
Original comment by baade...@gmail.com
on 8 Feb 2013 at 9:43
#23 - Thank you! :)
Original comment by jpolloc...@gmail.com
on 20 Feb 2013 at 3:07
I you it on WordPress Network, you will have to fix your theme as described
here: http://www.binarymoon.co.uk/2009/10/timthumb-wordpress-mu/
This error is caused by the way WordPress Network delivers attachements in
blogs, i.e, this line in .htaccess:
# uploaded files
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
So beware theme designers, make your themes WP Network ready, it's not very
hard.
Original comment by ikadimi
on 1 Apr 2013 at 3:43
Me again (#34). On a second thought, I don't like to expose the real paths to
files. So you can always simply disable replacing current host and add it
dynamically to allowed sites with these two steps:
== STEP 1 ==
comment out line 212 or so depending on your version (I'm on version 2.8.11),
the line is:
$this->src = preg_replace('/https?:\/\/(?:www\.)?' . $this->myHost . '/i', '', $this->src);
== STEP 2 ==
Use your IDE search function and look for "flicker", and add a line above, like
so:
if(! isset($ALLOWED_SITES)){
$ALLOWED_SITES = array (
preg_replace('/^www\./i', '', $_SERVER['HTTP_HOST']),
'flickr.com',
'staticflickr.com',
'picasa.com',
'img.youtube.com',
'upload.wikimedia.org',
'photobucket.com',
'imgur.com',
'imageshack.us',
'tinypic.com',
);
}
Original comment by ikadimi
on 1 Apr 2013 at 4:29
@BinaryMoon - #28 - I'm gonna agree with you.
Original comment by ikadimi
on 1 Apr 2013 at 4:38
Comment #23 worked for me, thanks!
Original comment by kwadwo...@gmail.com
on 22 Apr 2013 at 11:47
Comment #23 worked for me too!!!
Original comment by matiasco...@gmail.com
on 22 Apr 2013 at 3:52
@BinaryMoon (#28) it's nice from you to come here and just tag this as "NotBug"
however there is clearly something wrong to investigate and many people here
are willing to help solving this issue. You don't even put any comment to
justify your decision, this is just wrong closed minded way of acting/thinking,
you should either not be part of the project, or your project should not be
declared as Open Source and listed on Google Code if you're not willing to
recognize and help solving real bugs like this very one.
Original comment by anonymous84327
on 23 Apr 2013 at 6:54
Thanx ad...@soweic.com
Comment #23 work for me too.
Original comment by mohsen....@gmail.com
on 5 Jul 2013 at 2:43
#29 worked for me
Original comment by tox...@gmail.com
on 14 Jul 2013 at 9:14
#23 worked for me!! here I attach my working file.
Regards.
Juan M. Sánchez
Web Designer www.intelsys.es
Original comment by intelsys...@gmail.com
on 26 Aug 2013 at 7:02
Attachments:
Hi all,
i have hosted my site on www.altervista.org and i have found this solution,
only comment:
BEFORE
$docRoot = @$_SERVER['DOCUMENT_ROOT'];
AFTER
//$docRoot = @$_SERVER['DOCUMENT_ROOT'];
on this post
http://forum.it.altervista.org/wordpress/145847-timthumb-php-su-altervista-le-mi
niature-non-funzionano.html
Work fine for me, i hope this help.
Leonardo Ciaccio
microlabs.altervista.org
Original comment by leonardo.ciaccio
on 6 Sep 2013 at 9:21
Thank #43 leonardo.ciaccio
It's work.
Original comment by RichSmar...@gmail.com
on 11 Sep 2013 at 3:58
#9 Can anyone tell me where I need to put that .PHP file the user kindly
uploaded for us?
Original comment by handyver...@gmail.com
on 22 Nov 2013 at 3:50
#42 copy worked for me. Was about to throw my laptop against the wall. Thank
you Juan
Original comment by d...@alignideas.com
on 12 Dec 2013 at 1:20
thanks #9 wworks for me too
Original comment by udayasricl@gmail.com
on 24 Jan 2014 at 1:38
#43
Thank you very much, perfect solution for who's on Altervista :)
After many hours got miniatures working :)
Really thank you!
Original comment by luciano....@gmail.com
on 19 Feb 2014 at 9:36
#23 thank you very much man! it worked!
Original comment by past...@gmail.com
on 12 Jun 2014 at 6:41
Thank you! #9 worked fine!
Original comment by sidney....@gmail.com
on 16 Jun 2014 at 4:00
Original issue reported on code.google.com by
oldstep...@dmacmedia.ie
on 3 Apr 2012 at 8:29