[Solved]: Cannot attach files to album [Solved]: Cannot attach files to album
 

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

[Solved]: Cannot attach files to album

Started by terryallan, April 23, 2008, 11:03:24 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

terryallan

I have had a quick look at the help thread in this area but with my existing knowledge I cannot see anything that helps me.

I have 1.4.16 installation and have been a Coppermine user for many years.  As I usually do I have successfully uploaded another batch of jpgs (181).  When I try to attach them to an album I get no error messages and I simply get returned to the page where I am invited to select to batch add a folder. (ie the function which allows you to add a batch of files that your have uploaded to your server by FTP).  No errors - no warnings - no files attached - empty album.  This hasn't happened to me before.  I have checked permissions and they are the same as all the others 755.  Space isn't a problem (only 10G of 30G used).

Can anyone offer any advice

Many thanks

Terry

Nibbler

Try with a smaller number. Check the output of your phpinfo.php page for 'suhosin'.

terryallan

Thanks for response.  I note the following from the phpinfo.php output.  I hope that this is what you mean.

"This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies with Zend Extension Manager v1.2.0, Copyright (c) 2003-2007, by Zend Technologies with Suhosin v0.9.23, Copyright (c) 2007, by SektionEins GmbH with Zend Optimizer v3.2.2, Copyright (c) 1998-2006, by Zend Technologies"

I will also try with a smaller number now and report back.

Best wishes

Terry

Nibbler

Yeah, Suhosin will limit the number of files you can add at a time. If it's set too low talk to your webhost.

terryallan

Many thanks

Yes I have never tried as many files in one album before.  I have just tried a smaller number and it is fine.

I will contact my web host.

Best wishes

Terry

Hein Traag

You might also want to take a look at CPGMassImport. It automates the uploading of files.

missyera

#6
Coincidentally, I face the exact same problem with the original poster. I have recently upgraded and sanitized my files to version 1.4.18. Normally, I don't really have much problems uploading a large number of images through batch add, but as of recently, none of the uploaded images (thru' ftp & manual upload) can be attached to the albums.

[Edit GauGau] Replaced hotlinked image with attachment [/Edit]

Nibbler

If you have the exact same problem then the exact same answer applies to you too.

terryallan

Update on question to web host

I received the following response:

"You can manage all PHP settings with the help of your local php.ini file. In order to use it, you need to create a php.ini file under the folder with your PHP scripts, with the necessary PHP settings. For example, if you need to change the upload_max_filesize for one of your scripts under your public_html to 8M you should create a php.ini file under the folder with the following content:
[PHP]
upload_max_filesize = 8M"

Since my problem is in attaching the files to an album and not uploading files to the server I am not sure how helpful this response has been.  My knowledge level in this area is unfortunately not great.

Can anyone advise if the php.ini route is what I need and if so which parameter needs to be re-defined.

Thanks again

Nibbler

Congratulations, you have a clueless webhost.

To increase the suhosin limits you need this code in the php.ini


suhosin.post.max_vars = 1000
suhosin.request.max_vars = 1000

terryallan

Thanks for your help
I have done that and it seems to be working well with larger numbers of files.


missyera

My problem was resolved, but the cause was not due to the suhosin restriction. I figured it out myself, thanks.

Joachim Müller

Quote from: missyera on April 26, 2008, 01:14:11 AM
My problem was resolved, but the cause was not due to the suhosin restriction. I figured it out myself, thanks.
Shows clearly that you shouldn't have tried to hijack this thread in the first place if your issue differed.

bjmwh

Hi,
   I have just joined because we have a problem with uploading pictures to albums.  We have been doing this for almost a year with no problem.  What we experiance is when we get to the stage where the file is accepted and we hit continue and are invited to select and album.  The picture does not appear and we get that annoying rectangle with a red cross in the middle.  This happened sometime after the 2nd of April 2008.  It was suggested to reduce the number of pictures, we have reduced the number to well below the 2nd April number, still no joy.

Help

bjmwh

Nibbler