![]() |
Thumbnail creation stopped... PHP 4.4.1 + 5.1
More and more of our users run into the problem with thumbnails not created...
changelog of PHP says: http://www.php.net/ChangeLog-4.php#4.4.1 "Added missing safe_mode checks for image* functions and cURL." but they test "readable" not "writeable" if a file does not exist yet, it is not readable that's why the test fails and thumbnail is not created well, there are some infos out already: http://bugs.php.net/bug.php?id=35060 http://bugs.php.net/bug.php?id=35071 the new PHP versions are buggy and so GD lib thumbnail creation fails I could not find info at GD LIB homepage (www.boutel.com), but the 2 bug-infos show also the way to solve this: Code:
touch($filename);Code:
$img = @imagecreatefromjpeg($image_path);Quote:
and/or 1.4.3 / 1.4.4 we could also offer just an updated functions.php at the download-section for those who run into that.. |
I really would appreciate if you could offer any kind of soultion for this problem.
|
did you contact your host? i was having the same problem so i sent them a support ticket and they fixed the php on my site and it works now. send them a link to this thread too.
|
@Connie,
why don't you use file_exist function instead of touch? |
Ramin,
I just cited what other people suggested, and the sexy behaviour of "touch" is that it creates the file if it is not existing I did not go into any coding because it's not my time for being concise, you know, I made too many mistakes in the last time because of my influenca ;=) but I think, both ways show possible solutions |
you're great Connie.
yeah. I think both could be solutions. But people should not combine these two seperate solutions for seperate problems. |
So, just replace $img = @imagecreatefromjpeg($image_path); with touch($filename);?
Did not work with my site. A bummer... Anything else I can do? Thanks Richard |
Quote:
|
| All times are GMT. The time now is 03:43 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.