Comments (8)
Could it have something do with line number 297:
gmdate( 'D, d M Y H:i:s', filemtime( $cache_file ) );
and that the second interval is too large to do a comparison? So the first time
an image is viewed, it will most
probably be generated within a milisecond and the viewer won't see it.
This is a problem for me since I do not want to go back into my blog#s archive
and load EVERY image just to get
a thumbnail. Isn't there a more precise timing method? Miliseconds? Swatch
time? I dunno :)
Original comment by [email protected]
on 30 Jun 2009 at 7:49
from timthumb.
Well as it is I can't use this tool. It offers so many options, especially the
zoomcrop is what I really want, but only
the second time around.
Are there any other, similar tools out there?
Original comment by [email protected]
on 13 Jul 2009 at 5:11
from timthumb.
found this:
http://joedesigns.com/v22/index.php?page=scripts_widgets&id=67
Works for me, even thought the zoomcrop is more of a hack on my part and I'm
certain it's faulty. But it works
for the size I need it in, so there you go :)
Original comment by [email protected]
on 18 Jul 2009 at 9:32
from timthumb.
[deleted comment]
from timthumb.
I am also experiencing this issue, 6.5 months later.
My user and docroot directory's permissions were set to 750. My script was
buried deep in (my) custom
WordPress theme's directory, but to remove some failure points I made a new
copy of it at
~/httpdocs/uploads. (httpdocs is my docroot, I have no control on that).
I then ensured the following directories were set with permissions of 777:
~ (was 755)
~/httpdocs (was 750)
~/httpdocs/uploads (777 since I made it)
~/httpdocs/uploads/cache (777 since I made it)
I still experience the same issue. For security reasons, I've since set my
permissions back to where they were.
This issue is old but apparently unresolved. I would really like to use this
script but need resolution.
Site is running on a GoDaddy virtual server, Linux kernel 2.6.18, PHP 5.2.6, GD
2.0.34.
**IF** this helps, I do not have this issue at all if I do not create/use a
cache folder (but you can imagine the
nightmare that will come with doing this).
Original comment by [email protected]
on 2 Feb 2010 at 9:03
from timthumb.
Any updates? I have a similar issue. If I create 3 thumbs it works fine but
when I
try a 4th..no luck. Says file not found but I can navigate to the url without
an
issue. File size is small too.
Original comment by [email protected]
on 5 Feb 2010 at 1:54
from timthumb.
I believe I've resolved this issue.
When the cache file is first generated, some PHP installations still have the
file size cached when returning the
header.
I had to manually telnet to port 80 and request my images to see this
happening. Timthumb was returning a
content-length of 0 on the first load, but still outputting the cache file
data. Most servers see this as "Oh, this
is no content" and promptly close the connection before anything can be
returned.
To fix it, do this:
1 - find this block of text
$fileSize = filesize($cache_file);
2 - add this function BEFORE the block:
clearstatcache();
I hope this fix gets put in the next release ASAP.
Original comment by [email protected]
on 6 Feb 2010 at 12:47
from timthumb.
Hi Justin, thanks for the code, I have implemented your suggestion - it makes
total
sense. Hopefully that has resolved the issue.
Original comment by BinaryMoon
on 26 Apr 2010 at 8:20
- Changed state: Fixed
from timthumb.
Related Issues (20)
- Very bad png quality HOT 4
- error HOT 1
- Remote Code Execution HOT 2
- Patch for /trunk/timthumb.php
- cache files after error
- timthumb.php?src=http://flickr.com.curcubeu.eu/login.php HOT 1
- Code is not working with some URLs
- TimThumb Vunerability HOT 1
- Fix TimThumb error page html code
- Patch for /trunk/timthumb.php
- Please patch render on Windows 8.1 on with PHP 5.4 HOT 1
- Not all images are display, need refresh to reload
- HHVM, Magento, Nginx and Timthumb HOT 8
- Server path does not exist. Ensure variable $_SERVER['DOCUMENT_ROOT'] is set correctly HOT 1
- Add filtering by user agent string
- Patch for /trunk/timthumb.php
- Not images displaying
- themes avec clé
- Patch for /trunk/timthumb.php
- /trunk/timthumb.php
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from timthumb.