Page 1 of 1

Warning: fclose(): supplied resource is not a valid File....

Posted: Fri Apr 29, 2005 1:26 pm
by pshock
Hi
I recently upgraded and everything seems to be working fine with two exceptions.

In the media section of the admin pages the 'Media library', 'manage Directories' and 'Rebuild Thumbs' pages all show errors.

In the 'Media library', 'manage Directories' pages the error is

Warning: fclose(): supplied resource is not a valid File-Handle resource in /the/correct/path/to/include/functions_images.inc.php on line 1205

on the 'Rebuild Thumbs' page the errors are

Warning: imagecreatetruecolor(): requires GD 2.0 or later in /the/correct/path/to/include/functions_images.inc.php on line 820

Warning: imagecopyresampled(): requires GD 2.0 or later in /the/correct/path/to/include/functions_images.inc.php on line 828

Warning: imagejpeg(): supplied argument is not a valid Image resource in /the/correct/path/to/include/functions_images.inc.php on line 829

Resize subcat/1591392101.jpg: 73x110

Wanted to use asubcat/1591392101.jpg as its own thumbnail, but failed to copy!

Any help appriciated.

regards

Kev Polley

Re: Warning: fclose(): supplied resource is not a valid File

Posted: Fri Apr 29, 2005 3:15 pm
by garvinhicking
This means your host does not support GDLib 2.0, but either GDLib2.0 or ImageMagick is required by Serendipity for the image manager to work properly.

Regards,
Garvin

Posted: Sat Apr 30, 2005 9:02 pm
by pshock
Hi Garvin,
I've installed IM and I can now see the images in the folders and manipulate them.
However I still have the following error msg above the images on the 'media library' and 'manage directory' pages.

Warning: fclose(): supplied resource is not a valid File-Handle resource in /absolute/path/to/include/functions_images.inc.php on line 1205

Any further ideas?

warmest
Kev Polley

Posted: Sun May 01, 2005 1:32 am
by garvinhicking
Hm, are you sure you entered the proper path to imagemagick in s9y configuration, and the execution of external files in your PHP setup is possible?

Did you check for proper read/writepermissions of your upload folder and the files within?

Regards,
Garvin

closedir(), not fclose()

Posted: Thu May 19, 2005 11:05 pm
by John Schuler
The problem is the fclose(). It should instead be a closedir() at line 1205; this is what the PHP documentation specifies, and it also works (at least on my Redhat 8.0 system).

Re: closedir(), not fclose()

Posted: Fri Jul 15, 2005 10:13 am
by Guest
John Schuler wrote:The problem is the fclose(). It should instead be a closedir() at line 1205; this is what the PHP documentation specifies, and it also works (at least on my Redhat 8.0 system).
You're quite right John, and they still haven't fixed it as of 15 Jul 05...

Raz

Re: closedir(), not fclose()

Posted: Fri Jul 15, 2005 10:26 am
by garvinhicking
We've fixed this in the 0.9 alpha releases, and it is fixed in our current 0.8 SVN branch. 0.8.3 is due to be released this weekend which also contains the fix.

Really sorry for the bug! :)

Regards,
Garvin