News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

Main Menu

Cannot save my New Configuration, why ?

Started by Pascal YAP, December 24, 2003, 01:42:13 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Pascal YAP

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)

hyperion

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
"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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Pascal YAP

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

Pascal YAP

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

hyperion

"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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

Joachim Müller

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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fgaugau.de%2Fpic%2Fworldmap%2Ftimezone24h.png&hash=0fdcb9429634eafc33c63ab1134f5be4153e8de5)
[/off topic]

hyperion

"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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)