coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: webananda on February 04, 2005, 06:31:13 AM

Title: No New File Was Found
Post by: webananda on February 04, 2005, 06:31:13 AM
This is a great product!  Its obviously a labor of love and it shows!  Thank you for making it available!

I have installed 1.3.2 and everything is working fine except I am unable to Batch Add.

My server uses the current Zend Optimizer 2.5.7, safe mode is off, I have placed temp and tmp in my root folder, I have everything from public_html on down the tree set to 777 (750 just gives lots of errors).  I create my upload directory in albums, not userpics, I used Dreamweaver to FTP into that folder several avi and jpg files, movies and their thumbs.  Single upload mode works.  I am able to see the directory I created (upload_dir) when I select the Batch Add menu option.  But when ever I click on the directory, I only see a "No new file was found" message.

Here is my server info:

General server information
cPanel Build 9.9.9-RELEASE 121
Operating system Linux
Kernel version 2.6.10-1.9_FC2smp
Machine Type i686
Apache version 1.3.33 (Unix)
PERL version 5.8.3
Path to PERL /usr/bin/perl
Installed Perl Modules Click to View
PHP version 4.3.10
MySQL version 4.0.23-standard
Path to sendmail /usr/sbin/sendmail
cPanel Pro 1.0 (RC2) 


My debug output:

USER:
------------------
Array
(
    [ID] => 20cb8e0124a41742c7a600e3a6553746
    [am] => 1
    [liv] => Array
        (
           
Title: Re: No New File Was Found
Post by: Tranz on February 04, 2005, 06:51:26 AM
Hello,

Please do not post admin level accounts in a public board. I have x'd the entries. I must say thank you for providing the details that we wish other users would provide without us asking them.

Please post non-admin test account login.

How big are the files you are trying to upload?
Title: Re: No New File Was Found
Post by: webananda on February 04, 2005, 07:11:14 AM
Thank you for such a quick reply!  I appologize for the admin account posting.  Its a test site, so I did not think.  Sorry.
Here is another login:
user=guest
password=guest

Please feel free to log in as admin if you need to.
The files I am trying to upload are between 2 and 3 Megabyte avi files.



Title: Re: No New File Was Found
Post by: webananda on February 04, 2005, 11:53:03 PM
If it is any help, I placed the following script into the directory : coppermine/albums/upload_dir, the one I'm having trouble with:
<?php 
if ($handle opendir('.')) {
while (
false !== ($file readdir($handle))) { 
if (
$file != "." && $file != "..") { 
echo 
"$file\n"

}
closedir($handle); 
}
?>

It worked fine.
Title: Re: No New File Was Found
Post by: webananda on February 07, 2005, 10:40:21 PM
I found a work around by commenting out some code in 'searchnew.php' on line 199:
           if (/*strncmp($file, $CONFIG['thumb_pfx'], strlen($CONFIG['thumb_pfx'])) != 0 &&*/
strncmp($file, $CONFIG['normal_pfx'], strlen($CONFIG['normal_pfx'])) != 0 && $file != 'index.html')


On the Admin Config page, I had opted to not have a prefix on my thumbnail pictures.  
Apparently, this code expects a prefix.  I'm not sure this is the right place to fix it, but it got me around my problem and I post here in case it can help others.

Now Batch Upload works fine.  I really love this software...best gallery package I've seen on the net.

Thanks.
Title: Re: No New File Was Found
Post by: Joachim Müller on February 10, 2005, 08:01:28 PM
@devs: we should add a check to the config page to verify that the thumbnail prefix is not empty!

Joachim