Can't upload with Batch Add function Can't upload with Batch Add function
 

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

Main Menu

Can't upload with Batch Add function

Started by penelope79, July 27, 2009, 01:32:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

penelope79

Hello,
I have huge problems in adding images to the gallery with the Batch Add function. I'm posting my issue here because it's not the first time: I used to have cpg version 1.4.23 and modpack 1.4.24 with the same results (I posted about it few weeks ago) and I solved the problem simply updating to v. 1.4.25. At that time, I thought it only depended from the cpg version I had and since I love this modpack I installed it again. I also followed these instructions: http://forum.coppermine-gallery.net/index.php/topic,60491.0.html .  However, I get again the same PB error each time I try to batch add files, no matter what size the images are, hence I am now convinced it depends from the modpack. I checked, re-checked and re-applied permissions, with no results.
My gallery is here: http://kristen-online.net/gallery/
In the case it helps, here is the test login: Username: tester, Password: tester1.
HTTP upload works fine, but I need to update my gallery regularly and very often with many images at ones, so I really need the Batch Add function. Thanks in advance.

Joachim Müller


penelope79

Quote from: Joachim Müller on July 27, 2009, 08:38:20 AM
Can't confirm, as you enabled admin approval... ::)
Ops, fixed it. :) I approved the file meanwhile and it now appears in the gallery between the latest uploads. I tested the HTTP upload myself previously and it works for me too.

Joachim Müller

Could you try to find out what exactly is the show stopper: try replacing the file searchnew.php with the one from the most recent standalone coppermine package, then try to perform a batch-add and see how it goes.

penelope79

Done. I replaced searchnew.php page of the modpack with the one of 1.4.25 version. I still get the PB error, though.

Joachim Müller

Then replace all your core files with vanilla files, turning the modpack install into a standalone install. This way, you can try to determine if this is actually a modpack error or not.

penelope79

Hey Joachim, thank you for your reply. I just replaced my core files with vanilla files as suggested and just uploaded my images again. The Batch Add function works great and fast. Does that mean that my fears were right? Is it the modpack?  :(

Joachim Müller

Maybe, I don't know. Maybe Stramm could look into this issue?

penelope79

I'll wait for Stramm, then. Thank you Joachim. :)

Stramm

The only problem that may occur is the increased memory usage due to watermarking, sharpening etc.
Despite that nothing has changed within the batch add system.
Either try turning off these modpack features or try batch adding smaller images (smaller in size x,y; to test eg 640px x 480px). If that works you know what to do (increasing memory_limit - > php.ini)

penelope79

Thank you for your reply, Stramm.
I reinstalled the latest version of the modpack and followed the instructions suggested in this thread: http://forum.coppermine-gallery.net/index.php/topic,60491.0.html .
I then tried to upload a smaller image with the Batch Add function (size 317 x 324, 14 kb) but I got the PB error again. Should I still try to ask to my host (as I am not the administrator of my server) to increase the memory in my php.ini? Do you you have any more suggestion? I love your modpack and I really would like to keep it installed. :(

Stramm

Don't think that helps. Have you tried disabling watermarking? The last possibility I can think of is permissions (for watermarking the fullsized images). Try batch adding without watermarking and if that works properly chmod files / folders of your uploaded images.

penelope79

I never enabled watermarking function in the first place, hence every attempt I made to add images with Batch Add were with the watermarking function disabled. And I checked carefully the permissions of each folder, they are all 755/777. Do you think I should try to replace some core file with those of the latest cpg version?

Stramm

please replace include/picmgmnt.inc.php with an original one

penelope79

Done. The good news is that now the Batch Add works, yay! :)
The bad news is that it does not sharpen and crop the images anymore when the thumbnails are created. ::) Is it normal?

penelope79

Please, do you have any more suggestion, Stramm?   :)

Stramm

as said above... disable the image manipulation related functions of the modpack and see who the culprit is (or if it's not working even if all's disabled like mini thumbs, sharpening, notifications, watermarks)

penelope79

The problem is suddenly solved. I don't know exactly when it's been fixed, I just tried the batch add function and now it works.
Anyway, I just wanted to share with others who may experiencing the same problem the settings of my gallery that are working for me with Stramm modpack installed, in the case this may help, even though they can be superfluous: be sure that the folders containing your images have a CHMOD of 777 (I usually set all my folders to 777 as 755 sometimes is not enough) and, if ImageMagick does not work, use GD2 library.  Hope this may help a little bit. I'm going to mark this topic as solved.