PB with config.php PB with config.php
 

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

PB with config.php

Started by maousse, August 03, 2004, 11:40:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

maousse

hello  
first i want to thanks all dev for your job
i loved  phpbb and now making a viewer like coppermine in free is really marvelous for me
you have seen .. i am a poor french
so sorry for my english

my problem is very strange :
i have succeed in the install with your install.php no problem here
BUT when i choose CONFIG  and if the path is for example :
http://www.toto.com//volley/coppermine/config.php

if i change language for french or an other language
if i click on " SAVE NEW CONFIGURATION"

i reach a new adress like this one
http://www.toto.com/www.toto.com//volley/coppermine/config.php
and so error page

can you tell me where is my error ?
thx all
i hope to be able to find help because this script is really what i want


PS : when i log  i have " WELCOME toto" with this path
http://www.toto.com//volley/coppermine/login.php?referer=%2Fwww.maousse.com%2F%2Fvolley%2Fcoppermine%2Findex.php

and suddenly the path change for
http://www.toto.com/www.toto.com//volley/coppermine/index.php
same pb :(

maousse

no idea ???
an admin canhelp me please ?

Nibbler

It's a server setup problem, not a coppermine issue. You can hardcode config.php <form action="$PHP_SELF" method="post"> to <form action="config.php" method="post"> but the real solution is to get your host to fix the server vars.

maousse

thx it works !
but this change can block some informaion or no problem ?

i want to know if this change can block something in this script in the futur

for login.php i have the same pb what can i change please ?

i have place this  : <form action="login.php" method="post" name="loginbox">
and it works but i hope all these change dont modify the script
i dont know php..

Joachim Müller

You will probably have to replace other <form> tags as well in the future. Please do as Nibbler already suggested and ask your webhost to change this for you; poorly configured webservers are bound to cause problems sooner or later.

GauGau

Nibbler

For reference, if your server is running ProXad, you may need to open your include/init.inc.php and change

$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : $HTTP_SERVER_VARS['SCRIPT_NAME'];

to

$PHP_SELF = $HTTP_SERVER_VARS['SCRIPT_NAME'];

for some forms to work.