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
Related Posts
Related Websites
perfect
works perfect for me!
greetz from Chile
Good to see it worked out for you
thanks helped me
Thanks you!! Solved my problem with my host!
Thanks!
thanks work great for me!
Thanks for this!
you save me, tanks!
Thank you so much, it’s work for me.
You really help me.
Thanks again
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!
Thanks! Worked flawlessly!
I love you, spent around 6 hours scratching my head
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
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!
Thanks, it works on my website
Today you just saved one more person. Thank you from the bottom of my heart.
Trying to uncompress the RAR file but it says its damaged. Tried downloading several times but the filesize is 4kb. Is that right?
I’ve check the file in it worked fine with me. Yes the file size is 4kb.
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.
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?
Mike, You can give me your email and I will send the file to you. Thanks
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.
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
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
Thanks, it works on my website
Hi Jason,
Have you created the cache folder and change the permission to 777 or 755?
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
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.
you fkng genius, Thanks!!!
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…
Thank you!! this helped me alot!
Obrigado!! Isso me ajudou muito!
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!
Man, thank God you exist!!!
yeeees maaaaan….! worked for me too…!! many thanks!
Thank youuuuuuuuuuu! I was almost giving up of 000webhost, I’m really happy!!!!!!! I love you!
You are fantastic; thank-you very much!
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?!
Excelente!!! Gracias.
thanks so much man!!! fr NewZealand
Wow…….. Thanks a lot its work i just replace timthumb on 000wehbosting and realyy work thanks so much…
Thank you for this post, you really helped me.
Keep up the good work!
perfect you are a great its realy fix the problem in just one step change thank you
it’s helpful and work for me, thank you very much for sharing about this
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!
Fantastic!!
thanks a lot
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
God Bless You
THANK YOU!!!
Thanks, it’s fix my problem.
Thank you SO MUCH!!!
oh! Tank’s! It was crazy looking for a solution! Thanks a lot!
Thank you SO SO much..
finally it works perfectly, even it’s 2 years later already
I’ve been googling a fix for this for days now and you just solved my problem, thank you so very much!
Thank you! You are great! (rly!)
… from the sunny hungarian lowland.