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: Image uploads but then will not add to the album  (Read 4264 times)

0 Members and 1 Guest are viewing this topic.

phil4071

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Image uploads but then will not add to the album
« on: May 23, 2006, 08:02:52 pm »

Ok this might be a repeat therd but iv searched and thers that mant therds asking/saying the same thing regarding image uploads it difficult to find what your looking for.

The problem that i am having is that however i upload the images, weather i use the HTTP method, or FTP them all to the albums directory to use batch add.
Using the http method the file appears to get uploaded, it comes up with the thumnail and then asks for the picture details. its only when i fill out these details and move on i get the message.

Quote
The previous file could not be placed.

You have successfully placed all the files.

When i FTP the files into the album folder all goes well, they all appear in the batch add table and i can procead. Again its when it comes to adding the files to the album that it goes wrong. i get the PB error.

My instinct was that it was because one of the foders had not been CHMOD to 777. I check this. the foloders: album/, album/edit/, album/userpics/, and include/ are all set to chmod 777.

I noticed that after trying to add the files to the album and failing they all disapeared from the server, meaning i had to upload them all again.

Anyone got any ideas? the site is tempoarly at http://phiban8.madpage.com/

Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Image uploads but then will not add to the album
« Reply #1 on: May 23, 2006, 09:42:40 pm »

Follow the troubleshooting guide in the documentation.

http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble

Then post a link to your gallery, with a non-admin test user/password.
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

phil4071

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Image uploads but then will not add to the album
« Reply #2 on: May 23, 2006, 10:09:33 pm »

dun that.

address http://phiban8.madpage.com/

user: test
pass: test
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Image uploads but then will not add to the album
« Reply #3 on: May 23, 2006, 10:49:04 pm »

I uploaded two test images into the personal gallery.
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

phil4071

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Image uploads but then will not add to the album
« Reply #4 on: May 23, 2006, 11:17:52 pm »

Bingo! think iv sused that 1, i had made the album but not the catagory. but now im getting another problem when uploading images, this time i think its to do with the resising of the when they are too big. i get this critical error

Quote
The file 'albums/userpics/10001/Prom014~1.JPG' can't be inserted in the album

Error executing ImageMagick - Return value: 9

Cmd line :
/usr/bin/convert -quality 80 -geometry 2048x1536 'albums/userpics/10001/Prom014~1.JPG' 'albums/userpics/10001/Prom014~1.JPG'


The convert program said:


File: /home/www/phiban8.madpage.com/db_input.php - Line: 402
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Image uploads but then will not add to the album
« Reply #5 on: May 24, 2006, 01:44:41 am »

What are the dimensions of the image you uploaded (1024x768, 1900x1200, etc)?  I uploaded a 1024x768, 520kb image without any problems.
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

phil4071

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Image uploads but then will not add to the album
« Reply #6 on: May 24, 2006, 08:56:22 pm »

it was 2304x1728 858kb

the max width/hight is 2048 but i checked that auto resize was checked for everyone.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Image uploads but then will not add to the album
« Reply #7 on: May 24, 2006, 09:01:34 pm »

With large dimension files you will simply run out of available memory.  It takes a huge amount of resources to resize large images, and ImageMagick (contrary to popular belief) is not exempt from this limitation.  If there was no limit, processes would consume all of the resources and crash the server.

If you want huge images, either ask your host to give you more memory allocation or upload smaller images.
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

phil4071

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Image uploads but then will not add to the album
« Reply #8 on: May 24, 2006, 09:16:42 pm »

the problem is that most of the images will be uploaded by other users not myself. I have no controll over the size of images people upload and some people may not know how to batch resize all the photos.

just thinking outload here but if i remove the dimention limit it works. but if i keep it so that only 1 file can be uploaded at a time hopfully i can encurage people to send me a .zip folder byt email containing all the photos, then i can resize them myself and upload them via the batch upload.

Thanks for your help
much appricated

Phil
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Image uploads but then will not add to the album
« Reply #9 on: May 24, 2006, 09:44:05 pm »

send your user to XP Publisher - this way, the pics will be resized on the client. Regular users can't batch-add anyway.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Image uploads but then will not add to the album
« Reply #10 on: May 24, 2006, 11:22:05 pm »

Your host may be generous and give you more memory allocation.  It never hurts to ask. :)
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
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.