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: After installproblem  (Read 3517 times)

0 Members and 1 Guest are viewing this topic.

sva

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
After installproblem
« on: October 12, 2005, 09:53:34 am »

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
« Last Edit: October 12, 2005, 11:42:39 pm by Nibbler »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: After installproblem
« Reply #1 on: October 12, 2005, 10:10:05 am »

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.
Logged

sva

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: After installproblem
« Reply #2 on: October 12, 2005, 10:21:25 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: After installproblem
« Reply #3 on: October 12, 2005, 03:40:18 pm »

issue solved then?
Logged

sva

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: After installproblem
« Reply #4 on: October 12, 2005, 04:17:52 pm »

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
« Last Edit: October 12, 2005, 09:22:10 pm by sva »
Logged

sva

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: After installproblem
« Reply #5 on: October 12, 2005, 11:41:15 pm »

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.
« Last Edit: October 13, 2005, 08:14:53 am by sva »
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 15 queries.