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: Cannot save my New Configuration, why ?  (Read 9005 times)

0 Members and 1 Guest are viewing this topic.

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Cannot save my New Configuration, why ?
« on: December 24, 2003, 01:42:13 am »

Dear All,

   Note : i do not speak english very well, and maybe my problem was posted here in the past.
Sorry if the answer is here... :oops:
and thanx a lot for a intelligible answer :)

 But, i have a strange probleme, I cannot save my Admin Config !
When all my modifications are completed, and when i click on botton page "Save New Configuration", the URL is invalide because it try to log on http//expo.pays-dignois.com marked 2 times... like this :
http//expo.pays-dignois.com/expo.pays-dignois.com/config.php
The true URL must be http//expo.pays-dignois.com/config.php

I do not understand why
Please, is someone can help me :-)
Thank's a lot by advance.
  Pascal YAP (fr)
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Cannot save my New Configuration, why ?
« Reply #1 on: December 24, 2003, 02:00:34 am »

This problem has been reported a few times.  The quick solution is to open config.php, search for 'form action', and change $PHP_SELF to config.php
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Are you Santa-Clauss ?
« Reply #2 on: December 24, 2003, 02:18:05 am »

Hyperion, Friend,

How many secondes between my post and your answer ?
 ~15minutes !!!!!
 (here it's 2 h in the morning (or the midnight)

  So Great !

Your help work fine, and all my localhost config is now online....
WOAUHOOOU   :D

Many thanx a lot of montrous thanxsss
Pascal
Logged

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Same problem in other .PHP
« Reply #3 on: December 24, 2003, 05:00:54 pm »

Gaugau

There's a same problem in others .PHP
Can i make the same modif ?
 Can i make a massive Search / Replace texte with a texte editor, for all $PHP_SELF , in all Coppermine files ?

  But i known and i'm not sure, i must replace $PHP_SELF by the name file .PHP  where there are $PHP_SELF For exemple in register.php i replace your first solution by register.php and so on ?

THNX
Pascal YAP
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Cannot save my New Configuration, why ?
« Reply #4 on: December 28, 2003, 12:36:18 pm »

Yes.
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Cannot save my New Configuration, why ?
« Reply #5 on: December 28, 2003, 06:50:53 pm »

If you experience problems with the variable $PHP_SELF I suggest you take a look at the place the var is set initially: edit inlcude/init.inc.php and search for
Quote
// Initialise the $CONFIG array and some other variables
$CONFIG = array();
$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : $HTTP_SERVER_VARS['SCRIPT_NAME'];
$REFERER = urlencode($PHP_SELF . (isset($HTTP_SERVER_VARS['QUERY_STRING']) && $HTTP_SERVER_VARS['QUERY_STRING'] ? '?' . $HTTP_SERVER_VARS['QUERY_STRING'] : ''));
$ALBUM_SET = '';
$FORBIDDEN_SET = '';
$CURRENT_CAT_NAME = '';
$CAT_LIST = '';


GauGau

P.S. Re: fast help:
[off topic]
don't forget the users are in different time zones, refer to the dev team map on the about-page for details:
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fgaugau.de%2Fpic%2Fworldmap%2Ftimezone24h.png&hash=0fdcb9429634eafc33c63ab1134f5be4153e8de5)
[/off topic]
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Cannot save my New Configuration, why ?
« Reply #6 on: January 02, 2004, 05:37:33 pm »

Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 19 queries.