coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: bagoee on March 06, 2005, 11:34:50 PM

Title: Page not found after modification of Admin / Config !
Post by: bagoee 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
Title: Re: Page not found after modification of Admin / Config !
Post by: Tranz on March 07, 2005, 01:16:23 AM
Does your "ecard target" point to the gallery or your home page?
Title: Re: Page not found after modification of Admin / Config !
Post by: bagoee 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
Title: Re: Page not found after modification of Admin / Config !
Post by: bagoee 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.
Title: Re: Page not found after modification of Admin / Config !
Post by: bagoee 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
Title: Re: Page not found after modification of Admin / Config !
Post by: Tranz 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:
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.
Title: Re: Page not found after modification of Admin / Config !
Post by: bagoee 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
Title: Re: Page not found after modification of Admin / Config !
Post by: bagoee 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
Title: Re: Page not found after modification of Admin / Config !
Post by: badjoe74 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.
Title: Re: Page not found after modification of Admin / Config !
Post by: badjoe74 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.