jprieton / timthumb

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

An error occured fetching image. #445

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I get this error
A TimThumb error has occured<\/h1>The following error(s) occured:
An error occured fetching image.<\/li><\/ul>

Query String : 
___scriptdir=&___script=timthumb.php&src=http:\/\/xxxxx\/images\/logo.png&w=10
TimThumb version : 2.8.11<\/pre>

I changed
Line 33: 
if(! defined('ALLOW_ALL_EXTERNAL_SITES') )  define ('ALLOW_ALL_EXTERNAL_SITES', 
TRUE);              // Less secure. 

Line 212:
//$this->src = preg_replace('/https?:\/\/(?:www\.)?' . $this->myHost . '/i', 
'', $this->src);

Original issue reported on code.google.com by penth...@gmail.com on 21 Apr 2013 at 7:16

GoogleCodeExporter commented 8 years ago

Original comment by BinaryMoon on 27 Sep 2013 at 9:05

GoogleCodeExporter commented 8 years ago
can you help me?
i do like this but my site still not working
http://netkingvn.us/index.php?forums/games-pc.5/
you can see , some host image working , some other is not working :(

Original comment by ad...@savemyshop.com on 28 Sep 2013 at 6:04

GoogleCodeExporter commented 8 years ago
A TimThumb error has occured

The following error(s) occured:
An error occured fetching image.

Query String : 
src=http://cam4dl.com/wp-content/uploads/2013/11/719daee9ed52947f0d6e760fe35.jpg
&h=240&w=300&zc=1
TimThumb version : 2.8.11

My site do not working
http://tech24h.vn/timthumb.php?src=http://cam4dl.com/wp-content/uploads/2013/11/
719daee9ed52947f0d6e760fe35.jpg&h=240&w=300&zc=1

Original comment by phamxuan...@gmail.com on 25 Apr 2014 at 5:25

GoogleCodeExporter commented 8 years ago
For WP sites using domain mapping in subdomain mode, simply open timthumb.php 
and change line 215

FROM:
$this->myHost = preg_replace('/^www\./i', '', $_SERVER['HTTP_HOST']); 
TO:
$this->myHost = preg_replace('/^www\./i', '', 
'yoursubdomain.yourwordpressmultisite.com');

Original comment by dezio1...@gmail.com on 6 Aug 2014 at 9:23