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: Page not found after modification of Admin / Config !  (Read 3579 times)

0 Members and 1 Guest are viewing this topic.

bagoee

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Page not found after modification of Admin / Config !
« on: March 06, 2005, 11:34:50 pm »

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
« Last Edit: March 07, 2005, 02:28:44 am by TranzNDance »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Page not found after modification of Admin / Config !
« Reply #1 on: March 07, 2005, 01:16:23 am »

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

bagoee

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Page not found after modification of Admin / Config !
« Reply #2 on: March 07, 2005, 02:11:43 am »

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
Logged

bagoee

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Page not found after modification of Admin / Config !
« Reply #3 on: March 07, 2005, 02:14:09 am »

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

bagoee

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Page not found after modification of Admin / Config !
« Reply #4 on: March 07, 2005, 02:18:06 am »

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
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Page not found after modification of Admin / Config !
« Reply #5 on: March 07, 2005, 02:25:05 am »

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:
Quote
PHP4u 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.
Logged

bagoee

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Page not found after modification of Admin / Config !
« Reply #6 on: March 07, 2005, 03:58:46 am »

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

bagoee

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Page not found after modification of Admin / Config !
« Reply #7 on: March 07, 2005, 05:22:22 am »

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
Logged

badjoe74

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Page not found after modification of Admin / Config !
« Reply #8 on: March 09, 2005, 02:24:51 pm »

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.
« Last Edit: March 09, 2005, 02:48:29 pm by badjoe74 »
Logged

badjoe74

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Page not found after modification of Admin / Config !
« Reply #9 on: March 09, 2005, 07:31:51 pm »

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.