You may suddenly get the error on your Wordpress and the website is not displaying any images.

Some of the errors you may get are:

  • PHP Warning:  touch(): Utime failed: Permission denied in karma theme wordpress
  • Could not create the file cache directory.

There are several things that could cause this issues and here are a few things you could try to fix it.

1. Make sure that there is a cache folder in the Timthumb folder and the correct permission are give (777).

2. Check with your web server to see if any changes has been done in the last few days that cause the error. For they may have disable some feature to cause the error.

3. If you get a permission deniy error like this: [18-Dec-2013 08:14:37 UTC] PHP Warning:  touch(): Utime failed: Permission denied in /home2/majestyp/public_html/wp-content/themes/Karma/truethemes_framework/extended/timthumb/timthumb.php on line 469

Then open up the timthumb.php file and comment out these 3 lines. Maybe touch function has been disable on the hosting server for security reasons.

//if (!touch($lastCleanFile)) {
        //        $this->error("Could not create cache clean timestamp file.");
//    }

4. Your Image is not in the correct format. Check to see they conform to these three formats JPG, PNG and GIF. This format is require for the resize to work.

5. Delete the Index.html file in the cache folder or give it 777 permission.

 
* iOS Development * OS X * Product Review