Page 1 of 1

[SOLVED]Warning: getimagesize [function.getimagesize]: failed to...?

Posted: Mon Jan 14, 2008 4:10 pm
by Rulle
Dont know what went wrong.. I maked new folders and moved the images to them, and then it all works as i it should.

Problem 1
I get this error in Album:

Warning: getimagesize(/home/web/**********/uploads/images/galleri_2007/thumb_2007_001.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /usr/home/web/*********/modules/Album/classes/module/class.Album.php on line 304

It wont make the thumbnail, sö i have made dem manually on my computer and gets this error when i ad the pictures to an album.

Both the /modules/ andt the /uploads/ folder has CHMOD 777, so that should be in order. The error shows for every picture there is added.

What can be wrong?

Problem 2

when i open listmodules.php to se and modify my modules it says that /modules/ is writeprotectet, but it has CHMOD 777, both the folder it self and all subfolders. whats the problem here?


Hope you can help me   :)

Re: Warning: getimagesize [function.getimagesize]: failed to open stream.. ERROR

Posted: Mon Jan 14, 2008 5:34 pm
by Dr.CSS
What is the File Unmask set at 022, try 002 or 000...

Re: Warning: getimagesize [function.getimagesize]: failed to open stream.. ERROR??

Posted: Mon Jan 14, 2008 6:55 pm
by Rulle
I tried all 3 of them, but the result is the same...

The thing is i have got a new domain to my webserver and i have copied the CMS system to that domain, and everything works just fine accept those two things. The new domain is  a new folder on the old server, so i cant seem to find the problem..

Re: Warning: getimagesize [function.getimagesize]: failed to...? Problem with CH

Posted: Mon Jan 14, 2008 7:30 pm
by Nullig
Did you update the paths in the config.php file?
Are the images and galleri_2007 directories set to 777 as well?

Nullig

Re: Warning: getimagesize [function.getimagesize]: failed to...? Problem with CHMOD

Posted: Mon Jan 14, 2008 8:22 pm
by Rulle
Yes the paths is updated... I managed to get problem 2 solved now. Dont quite know how, but i have installed album 0.9.2 now.

But i still get this error i album:

Warning: getimagesize(/home/web/**********/*************/uploads/images/galleri_2007/thumb_2007_001.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /usr/home/web/**********/*************/modules/Album/classes/module/class.Album.php on line 446


The error only comes when i try to add pictures from a folder in which there already os thumbnails.

If i chose a folder without thumbnails the script wont make the thumbnails.

Re: Warning: getimagesize [function.getimagesize]: failed to...?

Posted: Mon Jan 14, 2008 9:32 pm
by Rulle
Now it really gets strange!

Just for testing i uploaded an entire folder of pictures to the /uploads/images/ root. Then i set the CHMOD to 777 on the folder, not on the files, ONLY on the testfolder. The images were 644.

Then the thumbnails were generated just as they shuld and that album works perfect!

I tried to DL the other folders, delete them on the server and re-upload them, but that has no effect..

Anyone got a clue whats happening?

Re: [SOLVED]Warning: getimagesize [function.getimagesize]: failed to...?

Posted: Mon Jan 14, 2008 10:31 pm
by Dr.CSS
Just a guess but I'm thinking the ones that won't thumb are very large files, I've had this happen to me and if you have images less than, iirc, 69 x 69 px they won't be made into thumbs, this is the default size for the thumb maker...

I've also found it helps to get the thumbs made by viewing the images in Image Manager to kick start the thumb maker...

Re: [SOLVED]Warning: getimagesize [function.getimagesize]: failed to...?

Posted: Wed Jan 16, 2008 4:32 pm
by Rulle
All the images were 800x600 so thats shouldnt be the problem. But i solved it by making new folders and moving the images to them. I dont know why that helped, but it did  ;)