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: Batch Add Files - No Directories  (Read 3656 times)

0 Members and 1 Guest are viewing this topic.

prence

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Batch Add Files - No Directories
« on: June 09, 2005, 08:00:19 am »

Hey, I'm trying to do a batch add and like so many other people here, no directories show up to select from.

Before you ask..
Yes, I've read the manual.
Yes, I put the files in /public_html/thesawx/gallery/albums/upload/ rather than /userpics/
Yes, I made sure the folder is chmoded 777 (and have tried 755)

I'm pretty stumped, any suggestions?
« Last Edit: June 10, 2005, 06:34:41 am by kegobeer »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Batch Add Files - No Directories
« Reply #1 on: June 09, 2005, 09:30:41 am »

don't name that folder "userpics". Name it something else and everything will work as expected. Don't use spaces in album names.
Logged

prence

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Batch Add Files - No Directories
« Reply #2 on: June 10, 2005, 01:02:36 am »

Err.. let me rephrase what I said.

The directory I uploaded the images to is /public_html/thesawx/gallery/albums/upload/
It is NOT /userpics/ because it says not to use that.

Any more suggestions?
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Batch Add Files - No Directories
« Reply #3 on: June 10, 2005, 03:55:18 am »

Create a subdirectory in /albums, set the permissions correctly, and try again.  Does that directory show up?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

prence

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Batch Add Files - No Directories
« Reply #4 on: June 10, 2005, 04:20:07 am »

Nope, this time I created a directory called 'moree' in /albums/ and it still doesn't show up.
Perms are 777, I tried it with 755 on the new directory as well.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Batch Add Files - No Directories
« Reply #5 on: June 10, 2005, 05:36:53 am »

Do you ever get error messages displayed?

In seachnew.php, find

Code: [Select]
function display_dir_tree($folder, $ident)
below that, replace

Code: [Select]
if (!is_readable($dir_path)) return;
with

Code: [Select]
//if (!is_readable($dir_path)) return;
If that doesn't help, continue further down that function, and replace

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
        if (is_dir($CONFIG['fullpath'] . $folder . $file) && substr($file,0,1) != "." && strpos($file,"'") == FALSE && $file != substr($CONFIG['userpics'],0,strlen($CONFIG['userpics'])-1)  && $file != "edit" ) {

with

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
        //if (is_dir($CONFIG['fullpath'] . $folder . $file) && substr($file,0,1) != "." && strpos($file,"'") == FALSE && $file != substr($CONFIG['userpics'],0,strlen($CONFIG['userpics'])-1)  && $file != "edit" ) {

See if that helps at all.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

prence

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Batch Add Files - No Directories
« Reply #6 on: June 10, 2005, 05:45:25 am »

Nope, I don't.
I did the first fix you listed and it showed the directory and it all worked fine that way.  Not sure why it does, but thanks a lot for the help.
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Batch Add Files - No Directories
« Reply #7 on: June 10, 2005, 05:48:43 am »

Does your server run PHP in safe mode?
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

prence

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Re: Batch Add Files - No Directories
« Reply #8 on: June 10, 2005, 07:56:52 am »

Nope
Logged

vilbs

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Batch Add Files - No Directories
« Reply #9 on: June 11, 2005, 04:08:24 am »

Just so you know... I had the same problem and it was only solved by making BOTH the code changes not just the first one.  Great piece of software - many thanks :D
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Batch Add Files - No Directories
« Reply #10 on: June 11, 2005, 04:53:17 pm »

Thanks for the report.  I modified my batch add sticky post to include both possible code changes.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.