Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Problem uploading files (i've been through the obvious, please read)  (Read 8885 times)

0 Members and 1 Guest are viewing this topic.

dmagliola

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

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
« Last Edit: November 26, 2005, 04:48:27 pm by Nibbler »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Problem uploading files (i've been through the obvious, please read)
« Reply #2 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
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Problem uploading files (i've been through the obvious, please read)
« Reply #3 on: November 26, 2005, 04:32:32 pm »

Thanks a million kegobeer!
That fixed it!!!
Logged

fotogliptia

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Fear no beer!
    • www.70-200.net
Re: Problem uploading files (i've been through the obvious, please read)
« Reply #4 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

Thanks

AP


« Last Edit: November 28, 2005, 09:07:46 pm by fotogliptia »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

fotogliptia

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Fear no beer!
    • www.70-200.net
Re: Problem uploading files (i've been through the obvious, please read)
« Reply #6 on: November 29, 2005, 01:13:28 am »

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

Thanks

Arlindo
« Last Edit: November 29, 2005, 01:26:36 am by fotogliptia »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Problem uploading files (i've been through the obvious, please read)
« Reply #7 on: November 29, 2005, 01:19:04 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
Logged

fotogliptia

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
  • Fear no beer!
    • www.70-200.net
Re: Problem uploading files (i've been through the obvious, please read)
« Reply #8 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

I did it again and this time it worked!

Problem solved... End of it!

Cheers

Thanks
Arlindo
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.