Solving the TimThumb issue on 000webhost

Solving the TimThumb issue on 000webhost

TimThumb is a simple, flexible, PHP script that resizes images. You give it a bunch of parameters, and it spits out a thumbnail image that you can display on your site. It has been massively used in new WordPress themes. Peoples involved in development of TimThumb are Darren Hoyts, Tim McDaniels and Ben Gillbanks. You can download/view the latest version of TimThumb at http://code.google.com/p/timthumb/.

I have recently set up a new WordPress blog that use TimThumb.php to for thumbnail and image resizing. When I test the blog on localhost using XAMPP there was no problem at all. The theme works exactly as the theme’s preview page. A problem arises after I uploaded and installed the blog to my 000webhost server. Some images did not appear as they should be. I check all settings in my server and I could not find any problem. Then I tried to install the blog to my Exabytes server and everything works fine. It is now obvious that the problem is with 000webhost. I finally Googled some information and found out that the timthumb.php file is not suitable to be used on 000webhost server.

Thanks to Bad Karma[CORE] I manage to solve this problem with a bit of my own tweak. The file that attached in the forum still don’t work for me but I manage to find out where to edit the source code. The file from Bad Karma[CORE] have redundant php scripting block (<?php ?>). What I did was just removing those and now my TimThumb works perfectly on 000webhost. I did not check what are the difference between the working timthumb.php file and the original timthumb.php on the Google Code. You may check them for yourself if you like.

My working TimThumb for 000webhost server: TimThumb.php

Share
Blog Traffic Exchange Related Posts Blog Traffic Exchange Related Websites
  • FREE PHP Web Hosting 100% FREE Full Service WebHost no restrictions // When you're just starting out in internet sales, picking your market can...
  • Fast WordPress Hosting: Things You Should Check If you're starting a new wordpress blog and want to get the best and fast wordpress hosting service, here are...
  • Podcasting Made Easy A podcast is probably the easiest way of getting your voice or music over the internet, and this article will...

55 Comments »

  1. ahmet Says:

    perfect ;)

    comment-bottom
  2. Vip3r Says:

    works perfect for me!
    greetz from Chile

    comment-bottom
  3. Good to see it worked out for you :D

    comment-bottom
  4. preto Says:

    thanks helped me

    comment-bottom
  5. Matt J. Says:

    Thanks you!! Solved my problem with my host!

    comment-bottom
  6. Lulamon Says:

    Thanks! :D

    comment-bottom
  7. Carlos Cortina Says:

    thanks work great for me!

    comment-bottom
  8. Gunter Says:

    Thanks for this!

    comment-bottom
  9. Cristian Says:

    you save me, tanks!

    comment-bottom
  10. The Mighty Says:

    Thank you so much, it’s work for me.
    You really help me.
    Thanks again :D

    comment-bottom
  11. Eric Says:

    You are amazing! I’ve been struggling with figuring this out for hours and your custom timthumb file worked like a charm!

    Thank you so much!

    comment-bottom
  12. John Says:

    Thanks! Worked flawlessly!

    comment-bottom
  13. joeay Says:

    I love you, spent around 6 hours scratching my head

    comment-bottom
  14. junaid nasir Says:

    woha ! thanks for the fix its bein 5 hours i am finding themes but most of the gud one uses timthumbs so thanks alot
    nd i am reposting ur article on my site
    Regards

    comment-bottom
  15. Ben Says:

    OH GOD, finally figured it out with your help!!!
    I kept getting this warning/error msg while uploading a product image for wp-e-commerce:
    public_html/wp-content/plugins/wp-e-commerce/wpsc-admin/includes/display-items-functions.php on line 984
    till i found this post!
    obviously it turned out none of the problem of the display-items-functions.php file itself, it’s the timthumb problem!!!
    thanks again!

    comment-bottom
  16. Thanks, it works on my website

    comment-bottom
  17. Bohemian01 Says:

    Today you just saved one more person. Thank you from the bottom of my heart.

    comment-bottom
  18. Mike C Says:

    Trying to uncompress the RAR file but it says its damaged. Tried downloading several times but the filesize is 4kb. Is that right?

    comment-bottom
  19. Ridhuan Says:

    I’ve check the file in it worked fine with me. Yes the file size is 4kb.

    comment-bottom
  20. Mike Says:

    Hmm thats strange. Tried again but everytime I try to expand the file it says The archive ‘timthumb’ could not be expanded, the file ‘timthumb.php’ it contains seems to be broken. Dunno if its because I am on Mac.

    comment-bottom
  21. kid Says:

    hello…….wan ask….dont understand yer…newbie here….for this prob..we juz download ur TimThumb.php n replace with the older one?like that?

    comment-bottom
  22. Ridhuan Says:

    Mike, You can give me your email and I will send the file to you. Thanks

    comment-bottom
  23. Ridhuan Says:

    Hi kid, yes you can just replace the older file with the new one. However I cannot guarantee it will work in every problem. I hope it does, Thanks.

    comment-bottom
  24. jason Says:

    Hi Ridhuan,

    I managed to find this theme and yes, it is using timthumb as well and i am not able to view any images too. When i look at your site, i tried to replace it with your version but unable to get it working as well. Any advise ?

    this is the theme using it.
    http://demo.pengbos.com/corporattica/

    Oh ya… testing site : http://www.nendoroiz.com/hongseng

    thanks

    comment-bottom
  25. Alper A. Says:

    Thanks man, I used this thimbtumb file and it works now.

    I also read smt. to 777 or 755 the cache file, but it didnt work forme, but this file works. thanks

    comment-bottom
  26. Thanks, it works on my website

    comment-bottom
  27. Ridhuan Says:

    Hi Jason,
    Have you created the cache folder and change the permission to 777 or 755?

    comment-bottom
  28. Gaurav Singh Says:

    Hi,

    Really thanks for your help. I was stuck in this problem for a while. No matter how hard I tried but it was not working at 000webhost although was showing perfect results on localhost.
    I simply replaced my timthumb.php with your supplied timthumb and it started working. Thanks again :)

    comment-bottom
  29. Anurag Says:

    Hey,
    Thanks for the post. I was having problem with timthumb.php on my 000webhost server. After reading your post, I pasted your code and my problem was solved. Thank you very much again.

    comment-bottom
  30. diego Says:

    you fkng genius, Thanks!!!

    comment-bottom
  31. Kovo Says:

    Just tested this on a clients site hosted by 000webhost and it works flawlessly. The theme was purchased from Themeforest.com and installed on WP 3.3 so this file still works. Thanks for the help…

    comment-bottom
  32. Diego Says:

    Thank you!! this helped me alot!

    Obrigado!! Isso me ajudou muito!

    comment-bottom
  33. Andrea Says:

    You’re great! I was getting crazy with the problem, and you solved it!
    By the way, I used your modifed version on Altervista, an italian web hosting provider… and it works!
    Thank you so much!

    comment-bottom
  34. Carlos Magno Says:

    Man, thank God you exist!!!

    comment-bottom
  35. emkay Says:

    yeeees maaaaan….! worked for me too…!! many thanks!

    comment-bottom
  36. Luis carlos Says:

    Thank youuuuuuuuuuu! I was almost giving up of 000webhost, I’m really happy!!!!!!! I love you!

    comment-bottom
  37. wise Says:

    You are fantastic; thank-you very much!

    comment-bottom
  38. Lihannon Says:

    I cannot get the slider images on thetraveltheme to load, I’m not a php coder an am totally out of my depth. Ive replaced the timthumb.php file o no avail. help?!

    comment-bottom
  39. BetaMic Says:

    Excelente!!! Gracias.

    comment-bottom
  40. han Says:

    thanks so much man!!! fr NewZealand

    comment-bottom
  41. agus Says:

    Wow…….. Thanks a lot its work i just replace timthumb on 000wehbosting and realyy work thanks so much…

    comment-bottom
  42. European Says:

    Thank you for this post, you really helped me.

    Keep up the good work!

    comment-bottom
  43. residentsads Says:

    perfect you are a great its realy fix the problem in just one step change thank you

    comment-bottom
  44. Alex Says:

    it’s helpful and work for me, thank you very much for sharing about this

    comment-bottom
  45. inaf suwanto Says:

    perfect you are a great its realy fix the problem in just one step change.
    You’re great! I was getting crazy with the problem, and you solved it!

    comment-bottom
  46. João Paulo Says:

    Fantastic!!
    thanks a lot

    comment-bottom
  47. Chakki Says:

    Hi Ridhuan,

    Thank you so much for your help. It worked for me too! However, it is limited to only chrome and firefox. It is still not able to show the thumbnail on Internet Explorer. Any help is appreciated.

    Thanks again,
    Chakki

    comment-bottom
  48. Junior Says:

    God Bless You

    comment-bottom
  49. THANK YOU!!!

    comment-bottom
  50. Nikola Says:

    Thanks, it’s fix my problem.

    comment-bottom
  51. Judith Says:

    Thank you SO MUCH!!! :)

    comment-bottom
  52. oh! Tank’s! It was crazy looking for a solution! Thanks a lot!

    comment-bottom
  53. Pinky Says:

    Thank you SO SO much..
    finally it works perfectly, even it’s 2 years later already :D

    comment-bottom
  54. Solano Says:

    I’ve been googling a fix for this for days now and you just solved my problem, thank you so very much!

    comment-bottom
  55. HiMiru Says:

    Thank you! You are great! (rly!) :)
    … from the sunny hungarian lowland. :)

    comment-bottom

RSS feed for comments on this post. TrackBack URL

Leave a comment

*


Notify me of followup comments via e-mail. You can also subscribe without commenting.

ss_blog_claim=82d6a1cd43b9ee976ddc41a2e546c430