Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Error on GetMemberByName in HTTPApi
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Error on GetMemberByName in HTTPApi

 Post Reply Post Reply
Author
vassabi View Drop Down
Groupie
Groupie


Joined: 13 January 2006
Status: Offline
Points: 87
Post Options Post Options   Thanks (0) Thanks(0)   Quote vassabi Quote  Post ReplyReply Direct Link To This Post Topic: Error on GetMemberByName in HTTPApi
    Posted: 02 April 2008 at 11:05pm
Hi Bruce, I got the following error when trying to use HTTPApi's GetMemberByName method

<?xml version="1.0" encoding="windows-1251" ?> <font face="Arial" size=2>
<p>Microsoft VBScript runtime </font> <font face="Arial" size=2>error '800a000d'</font>
<p>
<font face="Arial" size=2>Type mismatch: 'Server.HTMLEncode'</font>
<p>
<font face="Arial" size=2>/forum/HttpAPI.asp</font><font face="Arial" size=2>, line 309</font>

After a deeper investigation I noticed that this error arise when trying to get a member with filled DOB in the profile,
how can this be fixed?


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: 03 April 2008 at 10:06am
Looking at the code it doesn't look like an issue with the DOB field but possible with the 'Newsletter' field in tblAuthor. Check that you don't have any 'Null' fields in the database for this field and it is set to:-

Access - True/Flase
SQL Server - Bit
mySQL - tinyInt
Back to Top
vassabi View Drop Down
Groupie
Groupie


Joined: 13 January 2006
Status: Offline
Points: 87
Post Options Post Options   Thanks (0) Thanks(0)   Quote vassabi Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2008 at 1:49pm
Bruce I checked, I use MS SQL database, Newsletter field is bit, and the Allow Nulls is unchecked so it is impossible to have nulls there.
Any other ideas?
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: 03 April 2008 at 2:02pm
Sorry looking at the error it's not a CBool error it's a Type mismatch: 'Server.HTMLEncode' so this would be for the part reading in the Gender.

Check that the Gender field in tblAuthor doesn't contain null's. It's a text field which should show the gender of the user or be blank.
Back to Top
vassabi View Drop Down
Groupie
Groupie


Joined: 13 January 2006
Status: Offline
Points: 87
Post Options Post Options   Thanks (0) Thanks(0)   Quote vassabi Quote  Post ReplyReply Direct Link To This Post Posted: 03 April 2008 at 3:31pm
Thanks Bruce that helps
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.