Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Coppermine don't accept directory names while batch adding please help  (Read 3633 times)

0 Members and 1 Guest are viewing this topic.

crippe

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • My photos

While batch adding I found a problem. The batch add function don't accept a directory with a dot in it ( album.name )

You can see ( see bold text ) that searchnew.php cuts out everything in the directory name that comes after the . ( real name ( album.name ))

I may sound silly you might say, just rename the directory....... But the problem is that the content is already live and published so I really don't want to change the directory structure.

Warning: opendir(album/): failed to open dir: No such file or directory in /web/sites/mydomain.com/members/copperminevid/searchnew.php on line 191

Warning: readdir(): supplied argument is not a valid Directory resource in /web/sites/mydomain.com/members/copperminevid/searchnew.php on line 192

Warning: closedir(): supplied argument is not a valid Directory resource in /web/sites/mydomain.com/members/copperminevid/searchnew.php on line 202



Regards

Crippe
« Last Edit: March 23, 2005, 09:44:36 am by TranzNDance »
Logged

Nibbler

  • Guest

Find this line:

Code: [Select]
//if (is_dir($CONFIG['fullpath'] . $folder . $file) && $file != "." && $file != "..") { // removed by following line for 'do not show folders with dots': gaugau 03-11-02
in searchnew.php, uncomment it, and comment out the line immediately below instead.
Logged

crippe

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • My photos

Hi Nibbler thanks for getting back to me so fast  :D,

Nope that didn't do it, still the same result  :\'( The directory name is still getting cut off after the . so coppermine can't find the files in that directory. Coppermine actually list the directory name correctly on the bach page.

Logged

Nibbler

  • Guest

Comment out this:

Code: [Select]
$dir = str_replace(".","" ,$dir);
We'll get there in the end :)
Logged

crippe

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 28
    • My photos

Hi Nibbler

Yepp that did the trick!

Thanks for great support !

Regards

Crippe

Logged
Pages: [1]   Go Up
 

Page created in 0.012 seconds with 15 queries.