Pro Theme Design Forum » Mimbo Pro and Dispatch

Tim Thumb Thumbnails have broken sometime in the last 6 months. Where do I look?

  • Started 3 months ago by mclarkson
  • Latest reply from Ben
  • This topic is not resolved

  • mclarkson [profile]
  • Member
  • Posted 3 months ago #

Hello. I built a blog for my client over a year ago, based on MimboPro. It has not been updated in several months, nor has Wordpress been updated on that site for several months.

Everything was working fine the last time I looked in on it. Yesterday, the client told me that the thumbnails on the front page have disappeared (which they have.)

The blog is located here:
http://www.iamgenz.com/

Beyond making sure the cache permissions are set to 777 (they are) I don't know where to look for this problem, or what can have triggered it since I've changed nothing since the time it worked.

Can you give me a pointer or two? Thanks!

Mark

  • Holger [profile]
  • Member
  • Posted 3 months ago #

Hi,

I had simmilar problems with timthumb not working after a while in nominate:
http://forum.prothemedesign.com/topic/15-timthumb-and-preview-not-showing
I had to chmod 777 some more files (read the linked thread). Perhaps this helps.

Best Regards

Hi Mark - unfortunately there were some security complications with TimThumb and so many webhosts have increased security which in turn sometimes stops things working properly.

The first thing to do would be to make sure you have gone through the troubleshooting guide here: http://www.binarymoon.co.uk/2010/11/timthumb-hints-tips/

  • mclarkson [profile]
  • Member
  • Posted 3 months ago #

Thanks guys! I'll check those two threads out and let you know what I find.

  • mclarkson [profile]
  • Member
  • Posted 3 months ago #

Okay. I've put up the newest Timthumb script.
I've set the cache and temp to 777.
The troubleshooting guide suggests setting permissions above the script to EXECUTE OFF (eg 644) but doing this breaks the entire site.
I've cleared the cache out and made a new one.
The guide says to try 755 if 777 doesn't work, but the directories were set to 755 *before* I changed them to 777.

I've read the thread Holger suggests, but it contains a lot of references to TOUCH errors which I frankly don't understand. I'm not seeing any errors anywhere (or don't know where to look). Just no thumbnails.

(Also, the posts in that thread are cut off and I can't read all of the words for some reason.)

The script does not seem to be generating new cache files as my new cache directory stays empty when I reload the page.

  • Holger [profile]
  • Member
  • Posted 3 months ago #

"(Also, the posts in that thread are cut off and I can't read all of the words for some reason.)"

You can highlight all the text and then copy and paste it to an (txt) file to read.

"I've read the thread Holger suggests, but it contains a lot of references to TOUCH errors which I frankly don't understand. I'm not seeing any errors anywhere (or don't know where to look). Just no thumbnails."

It is a while since I had the problem, but if I remember right, I din't see the errors in the posts itself, just broken images. I could view the posted errors by direct call the timthumb image urls in the browser adress bar.

Check your sourcecode and find the exact Imagepath for the images. Should be something like this:
yourdomain.com/wp-content/themes/elemental/tools/timthumb.php? src=http://www.yourdomain.de/wp-content/uploads/2011/05/image-name.jpg&w=120
If you are using FIrefox, press "cntrl + u" the see the sourcecode and then press "cntrl + f" to search for the string "timthumb.php" and you will find the image url quick. Copy and paste it (the whole url between the image tags) to your browser adress bar. I am shure you will see an error message.

What I did for my case to get it work was chmod 777 all of this

tools/cache/
tools/cache/index.html
tools/temp/
tools/cache/timthumb_cacheLastCleanTime.touch

Chmod 777 the "timthumb_cacheLastCleanTime.touch" was the final step I did because I read the error message "* Could note create cache clean timestamp file." and it finaly fix it so far.

  • mclarkson [profile]
  • Member
  • Posted 3 months ago #

Hmmm... I can't find a 'tools' folder anywheres. I have a temp and cache folder in my scripts folder, but no 'LastCleanTime.touch' file there.

If I try to display the image thumbnail directly, I get this error:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /domains/iamgenz.com/html/wp-content/themes/mimbopro/scripts/timthumb.php on line 144

Is that helpful?

Line 144 seems to be the first line in the definition of the timthumb class:

class timthumb {
protected $src = ""; //THIS IS LINE #144 ON MY MACHINE
protected $is404 = false;

Hi There - I'm not sure why it's still not working. If you could contact me through the helpdesk - and send me ftp information for your site, then I would be happy to take a look and see if I can work out what isn't working.

http://prothemedesign.com/r/helpdesk/

  • mclarkson [profile]
  • Member
  • Posted 3 months ago #

Ben, I'll do that. Thanks.

ok - it's all fixed now. For the reference of others, the issue was the version of PHP being used. Once PHP was upgraded to 5.X there were no problems.

Reply

You must log in to post.