I am having the following issue with this version of Timthum: 2.8.10 (running on WordPress installation – server Ubuntu):
– When i call images from the server hosting the website i got this error:
A TimThumb error has occured
The following error(s) occured:
Could not find the internal image you specified.
Query String : src=http://my-host.it/wp-content/files_mf/1346848579prog_no_pic.png
TimThumb version : 2.8.10
If i copy/paste http://my-host.it/wp-content/files_mf/1346848579prog_no_pic.png in the browser i can get the image…
– When i call image from external sites it works fine.
I have enabled:
define ('ALLOW_ALL_EXTERNAL_SITES', TRUE);
at line 33.
For me, the document root wasn’t being set correctly, due to my virtual host setup.
I had to add the correct one in
timthumb-config.php
This two steps worked for me:
if(! defined('ALLOW_ALL_EXTERNAL_SITES') ) define ('ALLOW_ALL_EXTERNAL_SITES', TRUE);
//$this->src = preg_replace('/https?://(?:www.)?' . $this->myHost . '/i', '', $this->src);
Source:
https://code.google.com/p/timthumb/issues/detail?id=363#c23
I just got over this problem which, in my case, had to do with the file path having a tilde in it.
Here’s a link the solution I found:
http://elementdesignllc.com/2012/01/how-to-fix-timthumb-using-a-virtual-directory-url-contains-tildes/comment-page-1/#comment-7418
HTH!
I had the same problem on a Multisite installation of WordPress (3.5.1). The following fixed it:
In functions.php change
}
to
}
Note: The only actual modification happens in the 3rd line (bold):
$theImageSrc = strstr( wp_get_attachment_url(get_post_thumbnail_id($post_id)) , “/wp-content”);
First let me know are you using WordPress Multisite? If yes then you dont need edit anything in timthumb.php me do like it
This is what I have done to get timthumb to work with multisite. You need to add this code to your theme’s functions.php file
And then where the timthumb script is used in the theme, you need to modify to this:
where postImage is the name of the meta field the holds the image URL.
have a nice.