Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Short Registration Page Database Problems
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Short Registration Page Database Problems

 Post Reply Post Reply
Author
SMR Group View Drop Down
Newbie
Newbie


Joined: 05 June 2006
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote SMR Group Quote  Post ReplyReply Direct Link To This Post Topic: Short Registration Page Database Problems
    Posted: 05 June 2006 at 11:26pm
I'm running (and just configuring) 8.02.
 
With the registration form set to the short version, the page errors out with:
 
 
Server Error in Forum Application
An error has occured while writing to the database.
Please contact the forum administrator.
 
Support Error Code:- err_mySQL_register_USR
File Name:- register.asp
 
Error details:-
Microsoft OLE DB Provider for ODBC Drivers
[MySQL][ODBC 3.51 Driver][mysqld-5.0.22-community-nt]Field 'Signature' doesn't have a default value
 
 
The signature field in MySQL is set to "Not Null", which seems to be the problem, it's rejecting the insert because there is no signature field in the short registration form.
 
I can fix this by setting the database field to allowing null entries, but by doing so am I introducing any other problems?
 
Thanks!
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: 06 June 2006 at 10:25am
Yes you would be.

mySQL with the myODBC driver can be buggy and one of those bugs is that when the signature field is set to 'null' certain database updates then fail to work.

The best thing to do is set the signature field to be populated with nothing, rather than have it as a null field, this seems to fix the issue.

Try setting line 907 of register.asp after the Else part to:-

.Fields("Signature") = strSignature

If it fixes the issue please let me know.
Back to Top
SMR Group View Drop Down
Newbie
Newbie


Joined: 05 June 2006
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote SMR Group Quote  Post ReplyReply Direct Link To This Post Posted: 06 June 2006 at 5:06pm
Originally posted by -boRg- -boRg- wrote:

Try setting line 907 of register.asp after the Else part to:-

.Fields("Signature") = strSignature

If it fixes the issue please let me know.
Many thanks, I'll give that a try later and let you know how it goes.  I'm fairly sure that should do the trick.
Back to Top
SMR Group View Drop Down
Newbie
Newbie


Joined: 05 June 2006
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote SMR Group Quote  Post ReplyReply Direct Link To This Post Posted: 11 June 2006 at 2:33am
Originally posted by -boRg- -boRg- wrote:

If it fixes the issue please let me know.
Actually, now I've updated the code it didn't help.
 
Microsoft OLE DB Provider for ODBC Drivers
[MySQL][ODBC 3.51 Driver][mysqld-5.0.22-community-nt]Field 'Attach_signature' doesn't have a default value
 
So still the same error.  The long registration form is fine, the short one errors out.
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: 12 June 2006 at 8:01am
Try setting a default value for the tblAuthor Signature field in the mySQL database. Just having it blank will fix the issue.
Back to Top
 Post Reply Post Reply

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.