If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Advanced Guestbook 404error  XML
Forum Index » Support Forum
Author Message
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
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
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.
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
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"]);
}
}

?>
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.
Carbonize
Master
[Avatar]

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
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
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.
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum