sathyapras / timthumb

Automatically exported from code.google.com/p/timthumb
0 stars 0 forks source link

"Could not create the index.html file" error on windows server, and the index file is already created. #355

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1.I just updated my timthumb.php file to the latest version. The old timthumb 
was working fine but was vulnerable. 
3.I tested viewing one of the images after resizing it, using a url like this: 
http://www.example.com/wp-content/themes/exampleTheme/images/timthumb.php?src=ht
tp://www.example.com/wp-content/uploads/2012/02/Example-image-300x84.jpg&w=90

What is the expected output? What do you see instead?

Of course I'm expecting to see the resized thumbnail but I got this error:

A TimThumb error has occured

The following error(s) occured:
Could not create the index.html file - to fix this create an empty file named 
index.html file in the cache directory.

Query String : 
src=http://www.example.com/wp-content/uploads/2012/02/Example-image-300x84.jpg&w
=90
TimThumb version : 2.8.10

What version of the product are you using? On what operating system?

2.8.10 on a Windows server.

Please provide any additional information below.

I always find the index.html file inside the cache folder, I also tried 
removing the cache folder and refresh the image url, at first I get two errors 
about the index.html file and the "cache clean timestamp" file, then I refresh 
again and I can only see the index.html error message. When I check the 
generated cache folder I find that both index file and the timestamp are in the 
cache folder but I'm still getting the same error.

Original issue reported on code.google.com by d...@tischcreative.com on 13 Mar 2012 at 6:20

GoogleCodeExporter commented 8 years ago
Btw, I didn't do any changes to the permissions before or after upgrading 
timthumb, I'm now using the vulnerable old version of timthumb and it's working 
fine, so I don't think it's a permissions problem.

Original comment by d...@tischcreative.com on 13 Mar 2012 at 6:28

GoogleCodeExporter commented 8 years ago
I am facing similar problem, can you tell which version of timthumb you are 
using and from where can i get it..
thanks in advance...

Original comment by develope...@gmail.com on 1 Oct 2013 at 2:30