Page not found after modification of Admin / Config ! Page not found after modification of Admin / Config !
 

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]

Main Menu

Page not found after modification of Admin / Config !

Started by bagoee, March 06, 2005, 11:34:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bagoee

Hello,
I have followed all installation instructions and get a positive message after first install screen.
Directories album and include have been set to 777
When I loggin, no problem, I have access to all functionnalities.

Problem arise when I want to save the Admin / Config screen, I get a 404 page.
Apparently, the system is looking for :
"http://www.distreevents.com/config.php"
instead of
"http://www.distreevents.com/Technique/Software/cpg132/config.php

Please give it a quick try at :
http://www.distreevents.com/Technique/Software/cpg132/index.php
Admin Login is : xxxxx
Pass : xxxxxx

PHP 4.3.10

Many thanks for that, It's urgent, I need to explain the solution for 5 people tomorrow.
js

Tranz

Does your "ecard target" point to the gallery or your home page?

bagoee

Well,
I don't know.  Where should this option be found ?
I cheked the first config screen and there's no such question.
What's to be done to check this out ?
Thnaks,
js

bagoee

I forgot to mention that when I try to create a user or edit the admin, I get a Not Found 404 page as well.

bagoee

I just went to the "Display Ecard" option, I get the message "Check that you have enabled ecard in the Config !!"
This answer is terrible for me since my main problem is that I cannot save the config file, as I explained earlier.
Regards,
js
Ps : Aren't all the info provided in the first post sufficient enough to understand what's happening ?
Many thanks,
js

Tranz

Please do not post your admin password in a public place. Had I noticed it earlier, I would have removed it. However, logged in as admin provided a lot of information.

The ecard target is correct.

You are using a modified PHP:
QuotePHP4u Version
Based on PHP-4.3.10

It is failing to recognize one of the needed variables, PHP_SELF. Please search through the forums for $PHP_SELF to see if you can come up with anything.

bagoee

Many thanks for that, I'll search the Forum, eventhough I am not sur what to search for exactly.
Many thanks,
js

bagoee

Hello, I have updated:

It now works for the configuration file !!
thanks to :
In config.php, Code:
<form action="$PHP_SELF" method="post">and replace with, Code: <form action="config.php" method="post">

Also I've ran :
<?php
print "HTTP_SERVER_VARS['SCRIPT_NAME'] =".$HTTP_SERVER_VARS['SCRIPT_NAME']."<br />";
print "HTTP_SERVER_VARS['REDIRECT_URL'] =".$HTTP_SERVER_VARS['REDIRECT_URL']."<br />";
print "_SERVER['PHP_SELF'] =".$_SERVER['PHP_SELF']."<br />";
print "_SERVER['SCRIPT_NAME'] =".$_SERVER['SCRIPT_NAME']."<br />";
print "PHP_SELF =".$PHP_SELF ."<br />";
?>

And got :
HTTP_SERVER_VARS['SCRIPT_NAME'] =/test.php
HTTP_SERVER_VARS['REDIRECT_URL'] =/test.php
_SERVER['PHP_SELF'] =/Technique/Software/cpg132/test.php
_SERVER['SCRIPT_NAME'] =/test.php
PHP_SELF =/Technique/Software/cpg132/test.php

I also have done this :
in include/init.inc.php, 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 = '';
and replace it with
Quote
// Initialise the $CONFIG array and some other variables
$CONFIG = array();
$PHP_SELF = isset($HTTP_SERVER_VARS['REDIRECT_URL']) ? $HTTP_SERVER_VARS['REDIRECT_URL'] : $_SERVER['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 = '';

But still I have a problem in creating users and editing mine,
Could you help? (my account detail are in the first message).

Many thanks,
js

badjoe74

#8
Just do the same as you did with the first one.

For example search the catmgr.php (catalouge manager i suppose) for the string

action="$PHP_SELF

and change this to the filename of the file you are editing in this case do:

action="catmgr.php

Also search for

href="' . $PHP_SELF . '
and change to:
href="catmgr.php

also change:
href='$PHP_SELF
and change to:
href='catmgr.php

Its importent to change only that string nothing less and nothing more.
Do the same for usermgr.php  for users  and so on.
Done it myself... works fine  ;D

Thanks for the idea in the first place however, that helped alot.

badjoe74

Just found out that the problem resist on other place on the site with more complex solutions... so i did what i think is the best... changed server. This is very server related and can not be blamed on the coppermines.
A good and well updated server should not have this problem and my new one doesn´t have either.

From now on I use   b-one.net and it works fine.