Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - New User Login
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

New User Login

 Post Reply Post Reply Page  12>
Author
kcuk View Drop Down
Newbie
Newbie
Avatar

Joined: 23 October 2006
Location: Bournemouth, UK
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote kcuk Quote  Post ReplyReply Direct Link To This Post Topic: New User Login
    Posted: 26 October 2006 at 5:40pm
Hey all...

anyone seen this when a new user signs up they get this lovely message!

error '80020009'

/forum/register.asp, line 977

http://www.sotoncityexplorers.co.uk/forum/

Using MS SQL 2000 and Server 2003

Help?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 26 October 2006 at 6:16pm
In the version you are using 8.04 the line 977 of register.asp should just be 'End With' which should never throw up this error.

This suggests that maybe you have a corrupted file and you should re-upload your files again to the server.
Back to Top
kcuk View Drop Down
Newbie
Newbie
Avatar

Joined: 23 October 2006
Location: Bournemouth, UK
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote kcuk Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2006 at 10:44am
Have downloaded and unzipped the forum directly on the server but still no luck still getting the same error message.

From register.asp

994   Response.Cookies(strCookieName)("UID") = strUserCode
995   Call saveSessionItem("UID", strUserCode)
996
997              'If the user has selected to be remebered when they next 99                      login then set the expiry date for the cookie for 1 year
998               If blnAutoLogin = True Then



Edited by kcuk - 27 October 2006 at 11:09am
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2006 at 11:43am
The line you mention the error is on is 977 not line 997
Back to Top
kcuk View Drop Down
Newbie
Newbie
Avatar

Joined: 23 October 2006
Location: Bournemouth, UK
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote kcuk Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2006 at 11:56am
Doh never ask a dyslexic to count! LOL

sorry!!!

964    If Err.Number <> 0 AND strMode = "new" Then
965    Call errorMsg("An error has occured while writing to the
          database.",  "register_USR", "register.asp")
966    ElseIf Err.Number <> 0 Then
967    Call errorMsg("An error has occured while writing to the database.",
           "update_USR", "register.asp")
968    End If
969
970   'Disable error trapping
971   On Error goto 0
972
973   'Re-run the query to read in the updated recordset from the
         database
974   .Requery
975
976       'Read back in the user ID for the activation email
977        lngUserProfileID = CLng(.Fields("Author_ID"))
978
979              'Close rs
980              .Close
981               End With

Once again sorry i can count (sort of)

Kev
Back to Top
kcuk View Drop Down
Newbie
Newbie
Avatar

Joined: 23 October 2006
Location: Bournemouth, UK
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote kcuk Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2006 at 12:01pm
I think there might be a corruption or something wrong with the SQL tables just had this error and repeats when a new thread is added by a guest on the Help forum (the only Thread that is allowed by public user)

Server Error in Forum Application
An error has occured while writing to the database.
Please contact the forum administrator.

Support Error Code:- err_SQLServer_save_new_post_data
File Name:- new_post.asp

Error details:-
Microsoft OLE DB Provider for SQL Server
INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'tblThread_FK00'. The conflict occurred in database 'forum', table 'tblAuthor', column 'Author_ID'.

Just odd that line 977 refers to the same field on that table.

Thoughts?

** update**i dont have a guest account in that tabel is that right?***


Edited by kcuk - 27 October 2006 at 12:04pm
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2006 at 12:05pm
It looks like your SQL Server database is not setup correctly and is failing to set a default value for the Author_ID in the tblAuthor.

If this table is failing to set default values then no-doubt other default values will not be set in the database.

The best solution will be to drop your current database and then use the database setup file to re-create the database again on the SQL Server, making sure that you get no error messages from the database setup tool.
Back to Top
kcuk View Drop Down
Newbie
Newbie
Avatar

Joined: 23 October 2006
Location: Bournemouth, UK
Status: Offline
Points: 33
Post Options Post Options   Thanks (0) Thanks(0)   Quote kcuk Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2006 at 12:10pm
Ok thats cool, is it feasible to create a new database on there check to see if it works then copy exsisting tables onto new database excluding tblauthor?
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.