I just stumbled across a nasty bug in s9y_20050221 and could verify it as well in s9y_20050227, concerning the image upload in the media library. The call to imagesavealpha in functions_images.inc.php causes the stop of the scripts execution, therefore only the image gets uploaded, but neither a thumbnail nor a corresponding entry to the database is made, making it impossible to delete the file using the media library.
This happened on a host running PHP 4.3.1.
I fixed it for me by changing
Code: Select all
/* Attempt to copy transparency information, this really only works for PNG */
imagealphablending($out, false);
imagesavealpha($out, true);Code: Select all
/* Attempt to copy transparency information, this really only works for PNG */
if (function_exists("imagesavealpha")) {
imagealphablending($out, false);
imagesavealpha($out, true);
}HTH and regards,
Gina