How to make Timthumb work in WordPress Multisite

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.

timthumb has been Updated!

Updated the script to version 1.28!Always make sure to use the latests script from: Google code (Timthumb)

Instructions

  1. Download the modified script
  2. Change FALSE -> TRUE on line 21.
define ('ALLOW_EXTERNAL', FALSE);Change intodefine ('ALLOW_EXTERNAL', TRUE);
  1. Download the modified script
  2. Change yourdomain.com on line 34 into your own domain.
$allowedSites = array (	'flickr.com',	'picasa.com',	'blogger.com',	'wordpress.com',	'img.youtube.com',	'upload.wikimedia.org',	'yourdomain.com',);

25 comments on “How to make Timthumb work in WordPress Multisite

  1. I know TimThumb is end of life, but an old theme on a multi-site wasn’t working. I have made a version that does work with multi-site subdirectories.

  2. Hey there, after nearly 2 hours of frustrating research and tryouts your method 2 worked for me in WP 3.91. You are my todays Hero πŸ™‚

  3. Hello there, just became aware of your blog through Google, and found that it’s really informative. I’m gonna watch out for nbrussels. I’ll be grateful if you continue this in future. Many people will be benefited from your writing. Cheers!

  4. OH GOD DAMNIT.nThis just saved my day. I’ve been searching all day long a solution, and yours is working.nThanks for the help, it’s wonderful. πŸ˜€

  5. I love you,you save my life.I’d stuck on this issue 2 weeks but now it works like a charm only copy and paste your code.thank you again.10/10

  6. Hi, this script works only partially on my WP multisite installation. After uploading your modified script, timthumb works on the subsite (great!) but not on the main site. Do you have any ideas regarding this issue? Thanks in advance, Stefan.

  7. Holy cow! I spent 4-5 hours trying to get my permissions working, and even tried modifying everything around timthumb…this fixed it instantly. Thank you so freaking much for this.

      1. Mmm maybe one question.. why is TimThumb scaling up small images? It should just check if the image need to be scaled. But it scales up small images… Any solution to this?nnBy the way, you should use one of these plugins (http://bit.ly/iSN52e) to keep me updated from responses πŸ™‚

Leave a Reply

Your email address will not be published. Required fields are marked *