Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: [Solved]: Cannot attach files to album  (Read 6032 times)

0 Members and 1 Guest are viewing this topic.

terryallan

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
[Solved]: Cannot attach files to album
« 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
« Last Edit: April 25, 2008, 03:08:37 pm by Nibbler »
Logged

Nibbler

  • Guest
Re: Cannot attach files to album
« Reply #1 on: April 23, 2008, 11:57:58 am »

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

terryallan

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Cannot attach files to album
« Reply #2 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
Logged

Nibbler

  • Guest
Re: Cannot attach files to album
« Reply #3 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.
Logged

terryallan

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Cannot attach files to album
« Reply #4 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
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Cannot attach files to album
« Reply #5 on: April 23, 2008, 01:05:20 pm »

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

missyera

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Cannot attach files to album
« Reply #6 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]
« Last Edit: April 24, 2008, 06:33:52 am by Joachim Müller »
Logged

Nibbler

  • Guest
Re: Cannot attach files to album
« Reply #7 on: April 23, 2008, 05:20:25 pm »

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

terryallan

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Cannot attach files to album
« Reply #8 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
Logged

Nibbler

  • Guest
Re: Cannot attach files to album
« Reply #9 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

Code: [Select]
suhosin.post.max_vars = 1000
suhosin.request.max_vars = 1000
Logged

terryallan

  • Coppermine newbie
  • Offline Offline
  • Posts: 9
Re: Cannot attach files to album
« Reply #10 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.

Logged

missyera

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: [Solved]: Cannot attach files to album
« Reply #11 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [Solved]: Cannot attach files to album
« Reply #12 on: April 26, 2008, 09:23:34 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.
Logged

bjmwh

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: [Solved]: Cannot attach files to album
« Reply #13 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
Logged

Nibbler

  • Guest
Re: [Solved]: Cannot attach files to album
« Reply #14 on: April 26, 2008, 04:59:12 pm »

Locking. Start your own thread.
Logged
Pages: [1]   Go Up
 

Page created in 0.025 seconds with 19 queries.