|
#1
|
|||
|
|||
|
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.. |
|
#2
|
|||
|
|||
|
I really would appreciate if you could offer any kind of soultion for this problem.
|
|
#3
|
||||
|
||||
|
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.
|
|
#4
|
||||
|
||||
|
@Connie,
why don't you use file_exist function instead of touch?
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#5
|
|||
|
|||
|
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 |
|
#6
|
||||
|
||||
|
you're great Connie.
yeah. I think both could be solutions. But people should not combine these two seperate solutions for seperate problems.
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
|
#7
|
|||
|
|||
|
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 |
|
#8
|
||||
|
||||
|
Quote:
__________________
Photoblog: http://pblog.raminia.com Powered by Pixelpost 1.7 |
| Post Reply |
| Thread Tools | |
|
|