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

  New Posts New Posts RSS Feed - Type mismatch: ’CDate’  (Win2003)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Type mismatch: ’CDate’ (Win2003)

 Post Reply Post Reply
Author
fastfred View Drop Down
Groupie
Groupie


Joined: 10 December 2002
Location: Netherlands
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote fastfred Quote  Post ReplyReply Direct Link To This Post Topic: Type mismatch: ’CDate’ (Win2003)
    Posted: 16 November 2004 at 2:17am

Hello,

Since my proivder switched to Windows 2003, i get on some topics this error notice:

Microsoft VBScript runtime error '800a000d'
Type mismatch: 'CDate'
/forum/functions/functions_format_post.asp, line 839

See http://mtb-sport.sohosted.com/forum/forum_posts.asp?TID=3179 &PN=1&TPN=2

I am using version 7.9 and it's running with MsAcces

   
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: 16 November 2004 at 7:51am
This means that your hosting provider has changed the locale settings for the server.

This is possiably a mistake they have made in not setting the locale correctly, ask them to look into the locale settings on the server to check that your server is set to the correct locale.

If this fails disable the option to show the edit time and date at the bottom of forum posts from the admin area.


Edited by -boRg-
Back to Top
fastfred View Drop Down
Groupie
Groupie


Joined: 10 December 2002
Location: Netherlands
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote fastfred Quote  Post ReplyReply Direct Link To This Post Posted: 17 November 2004 at 1:36am

My provider (vevida.nl) checked the code and came with a "fix" in the code.

It's in file functions/functions_format_post.asp

In line with "If isNumeric(dtmEditedDate) Then dtmEditedDate = CDate(dtmEditedDate) Else dtmEditedDate = 0"  they changed IsNumeric to IsDate.

This after checking by  msdn.microsoft.com

In http://mtb-sport.sohosted.com/forum/forum_posts.asp?TID=3179 &PN=1&TPN=2 it is not modified

In http://mtb-sport.sohosted.com/forum79/forum_posts.asp?TID=31 79&PN=1&TPN=2 it is modied.

Further i switched of the option edited because everyting gets a wrong date.

   
Back to Top
astral View Drop Down
Newbie
Newbie


Joined: 17 November 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote astral Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2004 at 7:41am

just add this

session.lcid = 1033 'US-EN

Back to Top
MichaelItaly View Drop Down
Newbie
Newbie
Avatar

Joined: 17 November 2004
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote MichaelItaly Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2004 at 8:29am
Originally posted by astral astral wrote:

just add this

session.lcid = 1033 'US-EN



I have the same problem but this solution doesn't solve it, but it create another problem.
In my case the problem come from common.asp module, and I have understooden that the problem come from cookies, because if I delete all cookies the forum restart. The cdate function in common.asp has used to read the date of last visist in LTSVT cockie. Do someone known the solution?

Thanks. Bye

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: 18 November 2004 at 10:48am
Follow the instructions on how to set the correct LCID in the forum documentation.
Back to Top
astral View Drop Down
Newbie
Newbie


Joined: 17 November 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote astral Quote  Post ReplyReply Direct Link To This Post Posted: 18 November 2004 at 4:50pm
Originally posted by MichaelItaly MichaelItaly wrote:

Originally posted by astral astral wrote:

just add this

session.lcid = 1033 'US-EN



I have the same problem but this solution doesn't solve it, but it create another problem.
In my case the problem come from common.asp module, and I have understooden that the problem come from cookies, because if I delete all cookies the forum restart. The cdate function in common.asp has used to read the date of last visist in LTSVT cockie. Do someone known the solution?

Thanks. Bye

actually my problem is almost same as yours. it is due to the server's locale setting problem... once u properly set the LCID, the problem should be solve...

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.