Problem uploading files (i've been through the obvious, please read) Problem uploading files (i've been through the obvious, please read)
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Problem uploading files (i've been through the obvious, please read)

Started by dmagliola, November 26, 2005, 04:07:27 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dmagliola

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


kegobeer

Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

dmagliola


fotogliptia

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

Thanks

AP




fotogliptia

I'm already using GD (i guess). Below is the debug info below please.

Thanks

Arlindo

Joachim Müller

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

fotogliptia

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

I did it again and this time it worked!

Problem solved... End of it!

Cheers

Thanks
Arlindo