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:
before
Code:
$img = @imagecreatefromjpeg($image_path);
in functions.php / function createthumbnail($file)
Quote:
bool touch ( string filename [, int time [, int atime]] )
Attempts to set the access and modification time of the file named by filename to the value given by time. If the parameter time is not given, uses the present time. This is equivalent to what utime (sometimes referred to as utimes) does. If the third parameter atime is present, the access time of the given filename is set to the value of atime. Note that the access time is always modified, regardless of the number of parameters.
If the file does not exist, it is created. Returns TRUE on success or FALSE on failure.
|
could we do that in the near future and release that in BETA 1.5
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..