This post is dedicated to all frustrated users of WP themes, that have issues with TimThumb auto image resizing script, created by Darren Hoyt. As you’re probably aware almost all BizzArtic themes use this script to re-size images to specified size so this issue is very important to me … thus I’ve decided to post a tutorial for using thumb script correctly and short troubleshooting guide for most common issues:
Guide to using auto re-sized thumbnails
- If you’re a HostGator customer, read this!
Contact Hostgator support and ask the to do the following:
Please add following rules [ 1234234,340151 ] to mod_security for yourwebsite.com
Please whitelist for the domain.
However double check that Hostgator have done both permission changes. They might do the first one (1234234) but the problem will still exist, ask them again for both (1234234, 340151) and it will work.
- Chmod ‘cache’ folder in theme files via FTP
Change permission settings to 755 or 777 -View this tutorial to learn more.
- Upload image to to your blog
- Make sure you have PHP GD library installed
If you get the following error: “GD Library Error: imagecreatetruecolor does not exist” contact your hosting provider and ask them to activate GD library for you.
- Make sure you have the latest thumb.php script
Open thumb.php file located in your theme folder. Open it with your favourite code editor and replace the whole code with one located here: http://code.google.com/p/timthumb/source/browse/trunk/timthumb.php.
- Image must be hosted under your blogs domain
Path to your auto-resized image must include your domain, IP address won’t work.
Still having troubles?
Comment below, I’m sure we can find the right solution for you …