After installproblem After installproblem
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

After installproblem

Started by sva, October 12, 2005, 09:53:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sva

After install i will login after the loginscreen the program will go to http://www.mysite.com/index.php not  http://www.mysite.com/mygalleri/index.php.
And the same when i try too config the galleri when i try too save the new setup then i will go to wrong place.
What to do someone, that have the same problem coppermine 1.3.5

Joachim Müller

don't post dummy placeholder URLs, but actual ones. Make sure to specify the "target for ecards" link, and take a look at the threads on this board that deal with improper server setup, especially for server vars not getting populated properly.

sva

Thank's for your answer, it was my first wisit on this forum, wery quick and precise answer so now i hope too get all work's.
Thank's again.
If you really whant's to se it go too http://www.pesvahn.com/svahn/Copper/index.php

Joachim Müller


sva

#4
Ok when looking in forum after solutions i found one that change in config.php "config.php" instead for "$PHP_SELF" but this is what i understand not a solution for a longer time. So i also found that it should be better to change in Init.inc.php file some code.
I will test this one also.
My hostserver is running PHP4u ver 3.0, based on PHP 4.3.10.

Thanks

sva

#5
Now i have made some updates in init.inc.php file like this
$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;
   }
}

And now does it realy works better, i have not tested all functions but so far no problems.
Thanks for the help.
Today 051013 i have tested and it look like it will work well.