Author |
Topic  |
|
leonmcd
Starting Member
6 Posts |
Posted - 15 July 2001 : 22:58:25
|
I just installed my forum and the admin stuff works but after I registered my first user I could not login as that person. When I enter the username and password then click LOGIN I get a 404 page not found error. The URL posted is a corruption or my url. It looks like a combination of my actual url and the strCookieUrl value. The page it is trying to access is the page I logged in from. Because of the error I never get logged in.
|
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 16 July 2001 : 00:24:59
|
Post a link to your forum. You haven't changed the default admin username and password have you?
- David |
 |
|
leonmcd
Starting Member
6 Posts |
Posted - 16 July 2001 : 06:32:43
|
www.hfcnaz.org/forum
|
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 16 July 2001 : 20:44:52
|
It's a problem with your server you are residing on. The Server Varaible "URL" and "SCRIPT_NAME" is returning the value "/hfcnaz.org/www/forum/default.asp" when it should return "/forum/default.asp".
I had written some code for another user who had the same problem, where the server variables were returning the incorrect values. Here is the code:dim strlink strlink = Mid(Request.ServerVariables("URL"), InstrRev(Request.ServerVariables("URL"), "/")+1) You can put that script near to the top of your inc_top.asp file. After this bit of code:dim mLev, strLoginStatus Then, you will need to do a search for "Request.ServerVariables("URL")" and "Request.ServerVariables("SCRIPT_NAME")" in your forum files and replace them with "strlink".
- David
Edited by - Davio on 16 July 2001 20:45:45 |
 |
|
leonmcd
Starting Member
6 Posts |
Posted - 16 July 2001 : 22:36:41
|
quote:
It's a problem with your server you are residing on. The Server Varaible "URL" and "SCRIPT_NAME" is returning the value "/hfcnaz.org/www/forum/default.asp" when it should return "/forum/default.asp".
I had written some code for another user who had the same problem, where the server variables were returning the incorrect values. Here is the code:dim strlink strlink = Mid(Request.ServerVariables("URL"), InstrRev(Request.ServerVariables("URL"), "/")+1) You can put that script near to the top of your inc_top.asp file. After this bit of code:dim mLev, strLoginStatus Then, you will need to do a search for "Request.ServerVariables("URL")" and "Request.ServerVariables("SCRIPT_NAME")" in your forum files and replace them with "strlink".
- David
Edited by - Davio on 16 July 2001 20:45:45
That solved my problem. Thanks!
|
 |
|
leonmcd
Starting Member
6 Posts |
Posted - 17 July 2001 : 22:40:10
|
quote:
It's a problem with your server you are residing on. The Server Varaible "URL" and "SCRIPT_NAME" is returning the value "/hfcnaz.org/www/forum/default.asp" when it should return "/forum/default.asp".
I had written some code for another user who had the same problem, where the server variables were returning the incorrect values. Here is the code:dim strlink strlink = Mid(Request.ServerVariables("URL"), InstrRev(Request.ServerVariables("URL"), "/")+1) You can put that script near to the top of your inc_top.asp file. After this bit of code:dim mLev, strLoginStatus Then, you will need to do a search for "Request.ServerVariables("URL")" and "Request.ServerVariables("SCRIPT_NAME")" in your forum files and replace them with "strlink".
- David
Edited by - Davio on 16 July 2001 20:45:45
My StrCookieUrl is also messed up = /hfcnaz.org/www/forum/ do I need to fix this as well? I'm still having problems. I never get the logged on as message.
|
 |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 18 July 2001 : 10:40:34
|
You woul dhave to hardcode the strCookieURL value. Open your config.asp. On line 88 you shoul dhave this:strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/")) Change it to this:strCookieURL = "/forum/" Let me know if it works for you.
- David |
 |
|
leonmcd
Starting Member
6 Posts |
Posted - 18 July 2001 : 19:43:32
|
quote:
You woul dhave to hardcode the strCookieURL value. Open your config.asp. On line 88 you shoul dhave this:strCookieURL = Left(Request.ServerVariables("Path_Info"), InstrRev(Request.ServerVariables("Path_Info"), "/")) Change it to this:strCookieURL = "/forum/" Let me know if it works for you.
- David
That seems to have done the trick. As long as I have cookies enabled.
thanks, Leon
|
 |
|
|
Topic  |
|