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  (Read 6584 times)

0 Members and 1 Guest are viewing this topic.

cracker

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
batch add files
« on: May 01, 2005, 06:42:35 pm »

How do I use the function "batch add files"`

I get this info:

"Select directory This function allows you to add a batch of file that your have uploaded to your server by FTP.
Select the directory where you have uploaded your files "

Where must I give this?
« Last Edit: August 22, 2005, 07:57:49 pm by GauGau »
Logged

Nibbler

  • Guest
Re: batch add files
« Reply #1 on: May 01, 2005, 06:45:51 pm »

Create a new folder in the albums directory and upload the pics you wish to add into the new folder. Then read the manual.
Logged

busterbel

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: batch add files
« Reply #2 on: August 21, 2005, 07:46:23 pm »

Problem resolved at home but
 when I click on "inserted selected files"
Error message "page not found"
http://www.mydomain.com/www.mydomain.com/coppermine/searchnew.php?startdir=batch

same if I want to create a category...

Why Coppermine suggests this :

http://www.mydomain.com/www.mydomain.com/coppermine/...

Very annoying this bug
« Last Edit: August 21, 2005, 08:03:21 pm by busterbel »
Logged

Nibbler

  • Guest
Re: batch add files
« Reply #3 on: August 21, 2005, 11:23:00 pm »

It's not a bug, it's poor server setup. Please search the board for the workaround code.
Logged

busterbel

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: batch add files
« Reply #4 on: August 22, 2005, 11:04:32 am »

Hello Nibbler
Thanks for your reply but that doesn't help me very much.
You are certainly right, maybe it's not a bug, maybe a server setup mistake. But how can I change this server setup ??

As you suggest me, I made a search on the field "workaround code" but I haven't found any solution for my problem.
How can I edit my workaround for fixing finally this issue ?

I had the problem for the file config.php...I change the code inside this file and now that works but only for this config.php file
I still have a problem with the batch add files "searchnew.php" & creating a category "catmgr.php"...

EXAMPLE :
same type of error again searchnew.php
Batch Add Files...
when I click on "inserted selected files"
Error message "page not found"
http://www.mydomain.com/www.mydomain.com/coppermine/searchnew.php?startdir=batch
same errror if I want to create a category...

here is my url :
http://www.donadi.be/coppermine/


Regards thanks in advance for your help
Logged

Nibbler

  • Guest
Re: batch add files
« Reply #5 on: August 22, 2005, 05:40:34 pm »

init.inc.php, find

Code: [Select]
$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : $HTTP_SERVER_VARS['SCRIPT_NAME'];

and replace it with

Code: [Select]
$PHP_SELF = '';
$possibilities = array('REDIRECT_URL', 'PHP_SELF', 'SCRIPT_URL', 'SCRIPT_NAME','SCRIPT_FILENAME');
foreach ($possibilities as $test){
if (isset($_SERVER[$test]) && preg_match('/([^\/]+\.php)$/', $_SERVER[$test], $matches)){
$PHP_SELF = $_SERVER['PHP_SELF'] = $_SERVER['SCRIPT_NAME'] = $matches[1];
break;
}
}
Logged

busterbel

  • Coppermine newbie
  • Offline Offline
  • Posts: 10
Re: batch add files
« Reply #6 on: August 22, 2005, 07:24:08 pm »

Hi Nibller

It seems to me it now works fine.
I would like to thank you for having fixed the problem
Thank you for your fast reply and the solution detailed
regards have a good day
Logged
Pages: [1]   Go Up
 

Page created in 0.028 seconds with 20 queries.