coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: dmagliola on November 26, 2005, 04:07:27 AM

Title: Problem uploading files (i've been through the obvious, please read)
Post by: dmagliola on November 26, 2005, 04:07:27 AM
Hello,

I'm having a problem uploading files, and i've been through the obvious, through the documentation, the FAQ, and the other posts in this forum.
My guess is that i'm missing something very idiotic, but i'm not sure what that is.

This is the situation:
- When I upload a file (through HTTP), i get the screen to select the album, which should show a little thumbnail of the picture.
Instead of the thumbnail i get the typical "missing file X".
When enabling PHP notices, I have:

Warning line 271: imagejpeg(): Unable to access ./albums/edit/preview_30de0c9b.jpg
Warning line 271: imagejpeg(): Invalid filename './albums/edit/preview_30de0c9b.jpg'
Warning line 277: chmod(): Unable to access ./albums/edit/preview_30de0c9b.jpg
Warning line 277: chmod(): No such file or directory
Warning line 279: getimagesize(): Unable to access ./albums/edit/preview_30de0c9b.jpg
Warning line 279: getimagesize(./albums/edit/preview_30de0c9b.jpg): failed to open stream: No such file or directory
Warning line 282: unlink(./albums/edit/preview_30de0c9b.jpg): No such file or directory

- Now, inside the albums/userpics directory, different directories are getting created as I keep trying this, and the pictures are getting stored there, with the same name they had on my PC (i'm looking at this through FTP)
(this, to me, is proof that the uploads ARE working)

- Inside album/edit, i have a file called: mHTTP_temp_09ef548b.jpg
which is precisely the last picture I uploaded. (apparently the script is looking for file preview_30de0c9b.jpg in this folder and not finding it)

- I've done all the obvious, all folder's and files permissions are set to 777 (this is apparently the default for my webhost's server).
The ONLY thing I see that's strange is the following:

-in phpinfo(), i have both upload_tmp_dir and open_basedir set to "No Value".
now, my guess is that if this was the problem, then the file wouldn't be getting stored in /userpics in the first place, so my reasoning is that this is not the problem, but then again, it might be.

In case it is, can you tell me what I have to ask my webhost to set this parameter to?
In case it's not, does anyone have any idea about this?

Thanks a MILLION in advance
Daniel
Title: Re: Problem uploading files (i've been through the obvious, please read)
Post by: Joachim Müller on November 26, 2005, 04:23:53 AM
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
Title: Re: Problem uploading files (i've been through the obvious, please read)
Post by: kegobeer on November 26, 2005, 07:06:23 AM
If you are running PHP 4.4.1 in safe mode, you will run into trouble with the image functions.

http://forum.coppermine-gallery.net/index.php?topic=23342.msg107361;topicseen#msg107361
Title: Re: Problem uploading files (i've been through the obvious, please read)
Post by: dmagliola on November 26, 2005, 04:32:32 PM
Thanks a million kegobeer!
That fixed it!!!
Title: Re: Problem uploading files (i've been through the obvious, please read)
Post by: fotogliptia on November 28, 2005, 09:01:52 PM
Hi

I still have the problem. keep getting this mesage:

"The file 'albums/userpics/Ze_Joao.jpg' can't be inserted in the album

Unable to create thumbnail or reduced size image.

File: /home/arlindo/public_html/Galeria/db_input.php - Line: 391"


I've tried the http://forum.coppermine-gallery.net/index.php?topic=23342.msg107361;topicseen#msg107361  (http://forum.coppermine-gallery.net/index.php?topic=23342.msg107361;topicseen#msg107361)

Thanks

AP


Title: Re: Problem uploading files (i've been through the obvious, please read)
Post by: Joachim Müller on November 28, 2005, 11:40:02 PM
http://forum.coppermine-gallery.net/index.php?topic=24088.0
Title: Re: Problem uploading files (i've been through the obvious, please read)
Post by: fotogliptia on November 29, 2005, 01:13:28 AM
I'm already using GD (i guess). Below is the debug info below please.

Thanks

Arlindo
Title: Re: Problem uploading files (i've been through the obvious, please read)
Post by: Joachim Müller on November 29, 2005, 01:19:04 AM
Quote from: fotogliptia on November 29, 2005, 01:13:28 AM
Below is the debug info below please.
Didn't ask for it. If you even hijack a thread you should at least read the recomendations supporters have given so far in this thread, especially http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble
Title: Re: Problem uploading files (i've been through the obvious, please read)
Post by: fotogliptia on November 29, 2005, 01:45:56 AM
I'm really sorry, but i guess i did something wrong the first time i use this tread

http://forum.coppermine-gallery.net/index.php?topic=23342.msg107361;topicseen#msg107361  (http://forum.coppermine-gallery.net/index.php?topic=23342.msg107361;topicseen#msg107361)

I did it again and this time it worked!

Problem solved... End of it!

Cheers

Thanks
Arlindo