There are currently a lot of problems with the timthumb.php script with WordPress multisites. A lot of themes are using the timthumb script but the script isn’t working perfectly with the multisite setup because there is an problem with the domain / files location.

By using this version of the timthumb script you can solve all these problems.
Just make sure that you use your own domain name in the script at line number 29

Update

Updated the script to version 1.28!

Instructions

Method 1:

  1. Download the modified script
  2. Change FALSE -> TRUE on line 21.
Selec All Code:
1
2
3
4
5
define ('ALLOW_EXTERNAL', FALSE);
 
Change into
 
define ('ALLOW_EXTERNAL', TRUE);

Method 2:

  1. Download the modified script
  2. Change yourdomain.com on line 34 into your own domain.
Selec All Code:
1
2
3
4
5
6
7
8
9
10
11
$allowedSites = array (
	'flickr.com',
	'picasa.com',
	'blogger.com',
	'wordpress.com',
	'img.youtube.com',
	'upload.wikimedia.org',
	'yourdomain.com',
);
 
Change yourdomain.com -> into your domain on line 34

Download the modified script

Tags: , , , ,

14 comments

  1. Andreas Kutchie
  2. levi w
  3. decneo

Trackback e pingback

  1. TimThumb upscale fix: stop timthumb from upscaling small images « Rein Aris – Blog
    [...] TimThumb is hosted on http://code.google.com/p/timthumb/. I had problem with TimThumb, first off all with my multisite but i found ...

Leave a Reply