forum.coppermine-gallery.net
Support => cpg1.3.x Support => Older/other versions => cpg1.3 Permissions & Access Rights => Topic started by: cracker 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?
-
Create a new folder in the albums directory and upload the pics you wish to add into the new folder. Then read the manual.
-
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
-
It's not a bug, it's poor server setup. Please search the board for the workaround code.
-
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
-
init.inc.php, find
$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : $HTTP_SERVER_VARS['SCRIPT_NAME'];
and replace it with
$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;
}
}
-
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