coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: maj3stic on April 20, 2005, 01:17:38 AM

Title: Batch Add Files
Post by: maj3stic on April 20, 2005, 01:17:38 AM
When I go to batch add files. I don't get any icons or pictures on the far right. Anyone know why?
Title: Re: Batch Add Files
Post by: OmegaGOD on April 21, 2005, 04:55:31 PM
Please enable debug mode and post debug message here so we can better troubleshoot your problem.
Title: Re: Batch Add Files
Post by: gln2982 on September 25, 2005, 08:31:08 PM
I am having the same problem.  I orginally used CPG-nuke and in there was the option for Netpbm along with GD and Image Magix, and I could use Netpbm with no problem, only GD and Imagix have the issuse.  Sadly I do not see that as on of the otions when I went to the standalone 1.3.  Here is my debug info

USER:
------------------
Array
(
    [ID] => a9cf9de9824ec33819d1751132775b78
    [am] => 1
    [liv] => Array
        (
           
Title: Re: Batch Add Files
Post by: Joachim Müller on September 26, 2005, 07:33:31 AM
http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php
Don't post the debug_output, but the actual error message.
Title: Re: Batch Add Files
Post by: gln2982 on September 27, 2005, 04:24:16 AM
here is an error I got uploading


The file 'albums/userpics/10001/IM002274.JPG' can't be inserted in the
album

Error executing ImageMagick - Return value: 188
Title: Re: Batch Add Files
Post by: Joachim Müller on September 27, 2005, 08:01:20 AM
I'm not an expert for ImageMagick, but afaik this error message means that ImageMagick has run out of memory - try using a smaller (in terms of file size and dimensions), known-good image file to test this with.
Title: Re: Batch Add Files
Post by: OmegaGOD on September 28, 2005, 04:22:12 AM
I've actually seen error 188 a few times. Unfortunately, the developers of ImageMagick, do not offer a list of what the error values mean. According to your debug information, you have GD 2.0.22. I would recommend using GD and save on the headache of trying to get ImageMagick to work. Most web-hosts include ImageMagick as a binary on web servers; however, most web-hosts do not have their servers configured properly. To allow ImageMagick to be called by the webserver in a secure manner requires special configuration. Most likely, your webserver did not make the proper configurations.

Hope this helps.
Title: Re: Batch Add Files
Post by: gln2982 on October 04, 2005, 06:59:46 AM
I have tried using GD, but that did not work either.  Here is exactly what happens

I go to batch add pictures and select my directory, and when it goes to display the thumbnails on that page they are all broken images.  I then select my album and say to add them, and when it tries I once again get proken images and when I click on them to see the error I get no information, just a white screen
Title: Re: Batch Add Files
Post by: Joachim Müller on October 04, 2005, 07:56:06 AM
Quote from: GauGau on September 26, 2005, 07:33:31 AM
http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php
Do as suggested there!
Title: Re: Batch Add Files
Post by: Sahasrahla on October 18, 2005, 01:43:59 PM
Quote from: gln2982 on October 04, 2005, 06:59:46 AM
I have tried using GD, but that did not work either.  Here is exactly what happens

I go to batch add pictures and select my directory, and when it goes to display the thumbnails on that page they are all broken images.  I then select my album and say to add them, and when it tries I once again get proken images and when I click on them to see the error I get no information, just a white screen

I'm having the exact same problem and haven't found a solution yet either. The only information I have to add is that if I DON'T select an album, then go to the next page it shows the proper "N/A" icon on the right side. However, like gln2982, if I select an album to add the pictures to, all the status icons are broken images.

If it's of any consequence, I'm using Yahoo webhosting. I did some troubleshooting inside showthumb.php and apparently the function is puking on line 86: "$src_img = imagecreatefromjpeg($src_file);" I know Yahoo hacks their PHP installs and at first I thought maybe they had disabled or jacked with this function, but I use imagecreatefromjpeg() in other scripts and it's fine. Upon further troubleshooting, I found that if I bunk $src_file (that is, change $src_file to an invalid image URL) it will actually output a blank black image (which would be the result "$dst_img = imagecreatetruecolor($destWidth, $destHeight);"). So, I have no earthly idea why, but for some reason feeding a valid $src_img pukes the function.
Title: Re: Batch Add Files
Post by: Joachim Müller on October 19, 2005, 06:31:50 AM
see my posting just above yours.
Title: Re: Batch Add Files
Post by: artistsinhawaii on October 19, 2005, 06:41:25 AM
Sahasrahla,

Did you read this thread as well?

http://forum.coppermine-gallery.net/index.php?topic=18943.msg87247#msg87247

Dennis
Title: Re: Batch Add Files
Post by: Sahasrahla on October 20, 2005, 08:05:22 PM
Sorry, GauGau, I wasn't meaning to ignore your help, but har's advice at this link did the trick. Everything is working perfectly now... The problem was due to Yahoo's memory_limit setting, and the hack presented in the thread worked precisely as it should. Thanks madeinhawaii for pointing in that direction :)

Quote from: madeinhawaii on October 19, 2005, 06:41:25 AM
Sahasrahla,

Did you read this thread as well?

http://forum.coppermine-gallery.net/index.php?topic=18943.msg87247#msg87247

Dennis
Title: Re: Batch Add Files
Post by: fashionvictim86 on October 24, 2005, 08:06:21 AM
You know I'm also having the same exact problem.  I do everything it says here, but nothing helps.  And I'm not on a Yahoo server, so I guess that wouldn't help me.  I'm on my own dedicated server.

I'm a dummy with this, this is all I can tell you I got from the debug mode.

USER:
------------------
Array
(
    [ID] => f0a262873d4e2c933fce04c9e702dd58
    [am] => 1
    [liv] => Array
        (
           
Title: Re: Batch Add Files
Post by: Joachim Müller on October 24, 2005, 08:20:39 AM
1) Don't post debug_output unless a supporter requests it
2) Upgrade asap, you have cpg1.3.3, while the most recent stable is cpg1.3.5
3) Do as suggested already in this thread (in my first reply to this thread): http://coppermine-gallery.net/tutorial/uploads/troubleshooting.php
4) Repyling to a thread that is marked as "solved" and deals with another issue (yahoo webhosting) is not a very good idea. For now, stick to this thread and reply to it, but in the future, make sure to only reply to threads that actually deal with the very same issue that you're having troubles with, or start your own thread.
Title: Re: Batch Add Files
Post by: gln2982 on October 27, 2005, 08:19:10 PM
I just wanted to point out I found the true issuse.  GauGau was right when he said it was a memory issuse with image magic, and I also found the the GD on my host is apparenly messd up.  Because of the memory issuse, it could not create the thumbnails for the batch add, which is why they were all broken images.