coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: terryallan on April 23, 2008, 11:03:24 AM

Title: [Solved]: Cannot attach files to album
Post by: terryallan on April 23, 2008, 11:03:24 AM
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
Title: Re: Cannot attach files to album
Post by: Nibbler on April 23, 2008, 11:57:58 AM
Try with a smaller number. Check the output of your phpinfo.php page for 'suhosin'.
Title: Re: Cannot attach files to album
Post by: terryallan on April 23, 2008, 12:30:59 PM
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
Title: Re: Cannot attach files to album
Post by: Nibbler on April 23, 2008, 12:39:53 PM
Yeah, Suhosin will limit the number of files you can add at a time. If it's set too low talk to your webhost.
Title: Re: Cannot attach files to album
Post by: terryallan on April 23, 2008, 12:46:50 PM
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
Title: Re: Cannot attach files to album
Post by: Hein Traag on April 23, 2008, 01:05:20 PM
You might also want to take a look at CPGMassImport. It automates the uploading of files.
Title: Re: Cannot attach files to album
Post by: missyera on April 23, 2008, 05:01:27 PM
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]
Title: Re: Cannot attach files to album
Post by: Nibbler on April 23, 2008, 05:20:25 PM
If you have the exact same problem then the exact same answer applies to you too.
Title: Re: Cannot attach files to album
Post by: terryallan on April 25, 2008, 12:50:11 PM
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
Title: Re: Cannot attach files to album
Post by: Nibbler on April 25, 2008, 01:35:41 PM
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
Title: Re: Cannot attach files to album
Post by: terryallan on April 25, 2008, 03:07:17 PM
Thanks for your help
I have done that and it seems to be working well with larger numbers of files.

Title: Re: [Solved]: Cannot attach files to album
Post by: 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.
Title: Re: [Solved]: Cannot attach files to album
Post by: Joachim Müller on April 26, 2008, 09:23:34 AM
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.
Title: Re: [Solved]: Cannot attach files to album
Post by: bjmwh on April 26, 2008, 04:53:32 PM
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
Title: Re: [Solved]: Cannot attach files to album
Post by: Nibbler on April 26, 2008, 04:59:12 PM
Locking. Start your own thread.