coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: Iconoclast on April 02, 2008, 09:48:31 PM

Title: Red X when Batching
Post by: Iconoclast on April 02, 2008, 09:48:31 PM
I'm getting Red X's when I try to batch photos. About 10 thumbnails will show up and the rest are X's.
I have emailed my host and she sent me this email:

"I can't seem to fix the problem. I honestly have no idea why it's even done that. I've contacted the server administrators and they said it's not a server problem, which I then searched through the Coppermine Forum Support and still couldn't find the solution there as well. I updated your script, checked your files persmission settings, and done all I could do."

I have also searched the forum, and couldn't really find a solid solution. I have read followed the instructions for Upload troubleshooting at http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble and that hasnt worked.

I have created a test user account

User: Test
Pass: Testing


I would appreciate any help you're willing to offer.
Title: Re: Red X when Batching
Post by: Iconoclast on April 02, 2008, 10:13:35 PM
Link to my gallery:

http://www.ashley-revealed.com/gallery
Title: Re: Red X when Batching
Post by: Joachim Müller on April 03, 2008, 07:46:34 AM
Test user account doesn't work for me - review!
Title: Re: Red X when Batching
Post by: Iconoclast on April 03, 2008, 07:49:21 AM
I just logged in, it should work fine now
Title: Re: Red X when Batching
Post by: Nibbler on April 03, 2008, 10:16:40 AM
Password is actually 'testing'. I get

Failed to create directory albums/userpics/10002

Which means permissions are wrong. Albums directory and all subdirectories need to be writable.
Title: Re: Red X when Batching
Post by: Joachim Müller on April 03, 2008, 10:21:05 AM
Quote from: Iconoclast on April 03, 2008, 07:49:21 AM
I just logged in, it should work fine now
Capitalization matters! Use more care when asking for support.

Quote from: Nibbler on April 03, 2008, 10:16:40 AM
Which means permissions are wrong. Albums directory and all subdirectories need to be writable.
As suggested in the docs, "permissions" section: http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#permissions
Title: Re: Red X when Batching
Post by: Iconoclast on April 03, 2008, 10:31:06 AM
^ Sorry about the capitalization
I have changed all the permissions and about 15 thumbnails show without a problem, then its all X's from there.
Title: Re: Red X when Batching
Post by: Hein Traag on April 03, 2008, 12:07:27 PM
Might be memory problem. Try using CPGMassImport plugin.
Title: Re: Red X when Batching
Post by: Joachim Müller on April 04, 2008, 07:00:54 AM
No, not a memory problem. http uploads till don't work as expected - you'll need to fix that first before trying batch-add. Whenn http-uploading I get
QuoteFailed to create directory albums/userpics/10002 ! 
, so you still have a permissions issue. Do as suggested in the permissions section of the docs: if you can't figure out the correct permissions, ask your webhost for support.
Also check if you're running in safe mode (take a look at phpinfo). If this is the case, try using the silly_safe_mode toggle as explained in the docs.
Title: Re: Red X when Batching
Post by: Iconoclast on April 08, 2008, 04:51:31 AM
^ All permissions have been changed to 777 and i'm using safe mode. After 14 thumbnails—still all X's. My host cant figure out the problem either.
Title: Re: Red X when Batching
Post by: Joachim Müller on April 08, 2008, 07:00:02 AM
If you're on a safe-mode server, enable silly_safe_mode
Title: Re: Red X when Batching
Post by: Iconoclast on April 08, 2008, 07:01:04 AM
I'm having some trouble trying to find a doc on how to enable silly_safe_mode.
Could you possibly link me to one?
Title: Re: Red X when Batching
Post by: Joachim Müller on April 08, 2008, 07:03:10 AM
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#safe
Title: Re: Red X when Batching
Post by: Iconoclast on April 08, 2008, 07:09:28 AM
I followed those instructions, but i'm stumped with the include/config.inc.php file
It doesnt say define('SILLY_SAFE_MODE', 1); should I add that into my file or something?
Title: Re: Red X when Batching
Post by: Joachim Müller on April 08, 2008, 07:22:38 AM
That's the line you're supposed to add.
Title: Re: Red X when Batching
Post by: Iconoclast on April 08, 2008, 07:24:01 AM
I added it directly under <?php and re-uploaded the file. I read my phpinfo and it says Safe Mode still isnt on.
Title: Re: Red X when Batching
Post by: Iconoclast on April 08, 2008, 07:28:47 AM
Apologies for the total Noob-ness. I've been using coppermine for years now, and i've never had any problems with it what-so-ever, so this is new.
Title: Re: Red X when Batching
Post by: Joachim Müller on April 08, 2008, 07:42:28 AM
Look, I already told you: you have to figure out wether your webhost is running safe mode, i.e. you have to review phpinfo and check if safe mode is turned on on your server. If this is the case, you define silly_safe_mode in include/config.inc.php and upload that file. Once you have done so, you check if your situation improves regarding uploads. You will not notice any changes in phpinfo if you have enabled silly_safe_mode.
Title: Re: Red X when Batching
Post by: jesskajess on April 17, 2008, 01:15:54 AM
im also having this problem.. will it effect the security of the server/gallery etc? (by adding 'silly safe mode' to the code)
Title: Re: Red X when Batching
Post by: Joachim Müller on April 17, 2008, 07:10:22 AM
No, not at all. When safe_mode is enabled, the webserver won't be able to create new folders. Turning on silly_safe_mode will reflect this setting: everything you or your users upload (using http uploads) won't go into separate folders, but everything will then go into http://your_site.tld/your_coppermine_folder/albums/userpics. This only has an impact on the performance for huge galleries, as folders with several hundred files in them tend to get a bit slower. Turning on silly_safe_mode only has an impact on that, not on security.
Safe_mode doesn't have an impact at all on batch-adding. If you need more details, start a thread of your own, doing exactly as suggested in the upload troubleshooting section of the docs.
Title: Re: Red X when Batching
Post by: Iconoclast on April 17, 2008, 05:46:58 PM
My problem was somewhat solved. Although i'm still getting the X's when batching in Internet Explorer, I tried batching using FireFox and I had NO problem what-so-ever. Out of over 200 images uploaded, MAYBE 5 thumbails didnt show, which is a huge improvement. All I had to do was 'click to reload' and that was it.

I'm just curious as what this could be. Everything works fine in FireFox but not Internet Explorer.
Title: Re: Red X when Batching
Post by: Joachim Müller on April 17, 2008, 06:56:33 PM
Browser timeout maybe. Use Firefox, it's better anyway.