TimThumb.php Not working With Hostgator Hosting

Those who are hosted on Hostgator and using Timthumb.php in order to show thumbnail must have noticed that thumbnail is not appearing on their blog. The issue is with Hostgator has updated some of it’s mod_security module and due to this timthumb.php will stop working.


This will cause your images will be shown as broken on blog. The solution to this problem is :

  • Go to Hostgator.com
  • Click on Chat
  • Select Technical support
  • Verify yourself and ask CC to white list Tim thumb.php for your domain

This will solve the issue. This is a quick post for all those who have been facing issues with broken thumbnail on their WordPress blog hosted on Hostgator.

If you are new to Hostgator, I would suggest reading following tutorials:

About the Author: Harsh Agrawal

This is a blog post by Harsh Agrawal and you can also join Shout Hosting Blog by becoming a guest author. You can find details here.

7 comments… add one

  • neel February 28, 2011, 7:45 pm

    I am not sure it this error is present on all hosting accounts. As i have more than 5 websites on hostgator using timthumb.php for image resizing and script is working fine on all websites.

    • Wordpress Webhosting discount February 28, 2011, 7:49 pm

      Neel this issue is not with all the Servers but certain servers…
      I faced this issue with my blog which is hosted on Hostgator and whitelisting timthumb.php resolved the issue…

  • Tuan@Technology News February 28, 2011, 7:55 pm

    I use Timthumbs on Hostgator but everything works fine. I don’t have any problem with it.

  • palla ramarao March 3, 2011, 12:33 am

    I’m having problem with TimThumb script. I actually contacted HostGator technical support team, but they say there is no blockage on the script. I’m uploading images to http://media.techlikes.com/images. I just recently upgraded to WordPress. But the images loaded to my domain don’t show thumbnails. But the images on Picasa are showing thumbnails. I’m using the modified timthumb script on this link. (suhastech) . http://suhastech.com/blogger/wordpress-automatic-thumbnails-of-blogger-picasa-hosted-images/
    . Is there any problem with my timthumb script?

    • Wordpress Webhosting discount March 3, 2011, 10:34 pm

      Palla you need to contact the person who created this modified TimThumb script. Original Timthumb script doesn’t allow you to show thumbnail for images which are hotlinked from other domains.

      • palla ramarao March 4, 2011, 6:49 am

        Thanks Harsh for replying. I actually got it sorted out with Suhas ( developer of modified script) and finally it was resolved, that we can’t upload images to subdomain just like media.techlikes.com. And, also i had another problem, i put http://www.techlikes.com prefix in front of some images, which also didn’t work. So those 2 problems i rectified, and i’m uploading my images to wp-content/uploads, which give no problem. Do you think, i can still upload images to my subdomain ie. media.techlikes.com?

  • Ajay January 6, 2012, 9:17 am

    I am also facing the same issue. I have talked with hostgator several times,got it resolved, but after few days the same problem arises again. What to do ?


Leave a Comment