Page 1 of 1

Album - Am I missing a library or something?

Posted: Fri Aug 18, 2006 1:15 am
by boscopup
I just installed Album 0.6.0 on my local dev machine with CMSMS 1.0beta5, just to try it out and such. When I uploaded an image, it couldn't create the thumbnail. And when I go to view the album, it also gives me the error. Here's the error I'm getting when viewing the album:

Code: Select all

Warning: getimagesize() [function.getimagesize]: Read error! in /var/www/cmsmstest1b5/modules/Album/lib.functions.php on line 104
Since this is a desktop Linux installation, I may be missing an image program that most web hosts usually have. Is that what's going on here? And if so, which program am I needing? :)

Re: Album - Am I missing a library or something?

Posted: Fri Aug 18, 2006 1:19 am
by calguy1000
it sounds like a permissions problem to me.

Re: Album - Am I missing a library or something?

Posted: Fri Aug 18, 2006 1:32 am
by boscopup
Ok, I looked at line 104, and basically, it's trying to read the thumbnail, which doesn't exist. That's why I think it's not able to create it because I'm probably missing the program that does that.

Re: Album - Am I missing a library or something?

Posted: Fri Aug 18, 2006 2:01 am
by boscopup
Ok, I figured it out. :)

Turns out, my PHP installation didn't include GD. So I installed php-gd and its dependencies, restarted Apache, and now I have thumbnails! Yipee! Turns out that the CMSMS config file has a link to a nice wiki page that talks about how you need GD installed in your PHP.