Author |
Message |
01/08/2005 00:30:14
|
TomH
Beginner
Joined: 21/10/2004 12:42:38
Messages: 33
Offline
|
Hi
My advanced guestbook has been running for a few months now without any problems, my host recently changed their cgi server, and since moving my guestbook to the new server everything works ok except when you click on next page to show other entries I get a 404 error saying the URL was not found on this server. I haven't changed any file permissions or anything.
Could anybody please tell me what the problem could be?
The URL is http://ccgi.fellglint.plus.com/guestbook/
Many thanks
|
|
01/08/2005 14:00:57
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
try setting the base_url in the config file.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
01/08/2005 14:55:49
|
TomH
Beginner
Joined: 21/10/2004 12:42:38
Messages: 33
Offline
|
Hi Carbonize
Thanks for your response, I have set the base Url, but it still doesn't make any difference, it still comes up with a 404 url not found. I have noticed when the address comes up it says, http://ccgi.fellglint.plus.com/guestbook/guestbook?entry=10, why is the word guestbook entered twice? could that be the reason? if so how would I change that?
Many thanks.
|
|
01/08/2005 16:04:17
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
What did you put in for the base url?
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
01/08/2005 16:23:58
|
TomH
Beginner
Joined: 21/10/2004 12:42:38
Messages: 33
Offline
|
I just put http://ccgi.fellglint.plus.com/guestbook/ for the base URL.
$GB_PG["base_url"] = "http://ccgi.fellglint.plus.com/guestbook";
$DB_CLASS = "mysql.class.php";
$TEC_MAIL = "tom@fellglintpugs.co.uk";
$GB_UPLOAD = "public";
$GB_TMP = "tmp";
if ($GB_PG["base_url"] == "") {
$inter_type = php_sapi_name();
if ($inter_type == "cgi") {
if (isset($HTTP_SERVER_VARS["PATH_INFO"]) && !empty($HTTP_SERVER_VARS["PATH_INFO"])) {
$GB_PG["base_url"] = dirname($HTTP_SERVER_VARS["PATH_INFO"]);
} elseif (isset($HTTP_SERVER_VARS["REQUEST_URI"]) && !empty($HTTP_SERVER_VARS["REQUEST_URI"])) {
$GB_PG["base_url"] = dirname($HTTP_SERVER_VARS["REQUEST_URI"]);
} else {
$GB_PG["base_url"] = dirname($HTTP_SERVER_VARS["SCRIPT_NAME"]);
}
} else {
$GB_PG["base_url"] = dirname($HTTP_SERVER_VARS["PHP_SELF"]);
}
}
?>
|
|
01/08/2005 23:32:02
|
TomH
Beginner
Joined: 21/10/2004 12:42:38
Messages: 33
Offline
|
It seems that for some reason, when clicking on the next page button it is not going to for example
http://ccgi.fellglint.plus.com/guestbook/index.php?entry=10
but the strange thing is that if I click on admin for example and then on back to guestbook and then try next page it works ok, with the correct URL.
I would be very grateful if anybody could shed some light on the problem.
Many thanks.
|
|
02/08/2005 01:01:50
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Change the link in your menu to the full http://ccgi.fellglint.plus.com/guestbook/index.php as that fixes it. This is what made me think it was a base_url problem.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
02/08/2005 01:36:49
|
TomH
Beginner
Joined: 21/10/2004 12:42:38
Messages: 33
Offline
|
Thanks very much for your help Carbonize, that fixed it, been trying to figure it out all night.
Thanks again.
|
|
|