Print Page | Close Window

Type mismatch: ’CDate’

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=2674
Printed Date: 01 April 2026 at 2:21am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Type mismatch: ’CDate’
Posted By: ©[CSiP]@Gud
Subject: Type mismatch: ’CDate’
Date Posted: 13 May 2003 at 3:03pm

Why? Got new server up, and now this... My forum is on

http://www.csip.dk/asp/english/forum/ - http://www.csip.dk/asp/english/forum/



-------------
Regards
©[CSiP]@Gud



Replies:
Posted By: oneminuteguy
Date Posted: 13 May 2003 at 3:32pm

This is a common error with server dat/time format and it's described in the forum documentation.

In the file common.asp u need to change the line near the top which says:

'Session.LCID = 1033


change it to:

Session.LCID = 1030  (notice that the quote mark is deleted)

This will work if the server is in Denmark! If it's not then find your LCID code here: http://www.webwiz.net/asp/faq/date_time_settings.asp - http://www.webwiz.net/asp/faq/date_time_settings.asp

..and don't forget to empty ur cache before refreshing!

Regards,
OMG



Posted By: ©[CSiP]@Gud
Date Posted: 13 May 2003 at 5:54pm
There is a lot of other files whit that linie... Dont touch them???

-------------
Regards
©[CSiP]@Gud


Posted By: oneminuteguy
Date Posted: 13 May 2003 at 6:20pm

Nope - u only need to change the one in common.asp

In my forum (v7.01/access) it's line 56

Regards,
OMG



Posted By: ©[CSiP]@Gud
Date Posted: 13 May 2003 at 6:40pm
nope... Dont work... Could it be that I have put the new server on danish time-zone?

-------------
Regards
©[CSiP]@Gud


Posted By: fernan82
Date Posted: 13 May 2003 at 6:44pm

what error are you getting now?, on what file and line? and what you got on that line?

I was getting an error on your link earlier but now i just get a page cannot be displayed....



-------------
FeRnAN
http://www.danasoft.com/">


Posted By: ©[CSiP]@Gud
Date Posted: 13 May 2003 at 6:51pm

First I get;

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'CDate'

/asp/dansk/forum/common.asp, line 327

Secornd, Think it's that I got admin-login on;

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'CDate'

/asp/english/forum/Default.asp, line 136

VBScript should be active...



-------------
Regards
©[CSiP]@Gud


Posted By: fernan82
Date Posted: 13 May 2003 at 7:02pm
Did you checked the chart on the link oneminuteguy provided and make sure you have the right LCID code for your server?

-------------
FeRnAN
http://www.danasoft.com/">


Posted By: ©[CSiP]@Gud
Date Posted: 13 May 2003 at 7:09pm
Yes, we are both from danmark. And I did look... I'm maling a test tomorrow, so I can be sure my files not coropted...

-------------
Regards
©[CSiP]@Gud


Posted By: Gaff
Date Posted: 14 May 2003 at 12:51am

My board seemed to have got rid of this error. everything works except reaing one post, then the message come up again :-

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'CDate'

/functions/functions_format_post.asp, line 563

 

But why only on the one post?

The contents of the post was copied and pasted from a word document,  with a small table, could the formatting cause the error or a different script to be called, and why hasn't the language setting corrected all instances of cdate error?



Posted By: ©[CSiP]@Gud
Date Posted: 14 May 2003 at 12:52am
I have set up my server like the old one... But nope.... I still got the same errors...

-------------
Regards
©[CSiP]@Gud


Posted By: WebWiz-Bruce
Date Posted: 14 May 2003 at 2:53am

Check with your web hosts what locale the server is set to, then get the correct number from the LCID chart, place it in the common.asp file.

Also make sure you remove the ' single quote mark form infront of the Session.LCID = 1033 line, and delete all cookies from your web browser.



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Gaff
Date Posted: 14 May 2003 at 4:54am
Originally posted by -boRg- -boRg- wrote:

Check with your web hosts what locale the server is set to, then get the correct number from the LCID chart, place it in the common.asp file.

Also make sure you remove the ' single quote mark form infront of the Session.LCID = 1033 line, and delete all cookies from your web browser.

 

 

That cured my original problem, but it appeared again in the one post.

The rest of the site runs fine, just one post.



Posted By: ©[CSiP]@Gud
Date Posted: 14 May 2003 at 5:02am

I canøt get it to work... Oh, yes, on the old server, and on iis on both my notebook... But on the new server? Nope... Maybe I just need a new server



-------------
Regards
©[CSiP]@Gud


Posted By: Gaff
Date Posted: 14 May 2003 at 9:30am
Originally posted by Gaff Gaff wrote:

My board seemed to have got rid of this error. everything works except reaing one post, then the message come up again :-

Microsoft VBScript runtime error '800a000d'

Type mismatch: 'CDate'

/functions/functions_format_post.asp, line 563

 

But why only on the one post?

The contents of the post was copied and pasted from a word document,  with a small table, could the formatting cause the error or a different script to be called, and why hasn't the language setting corrected all instances of cdate error?

 

I think I have found the answer to this.

Checking through the code, the line where the error occurs is checking for a date if the post has been edited.

This post was edited, but at the time it was edited, it was on a different server with a different time locale to the one it is on now, I copied the database across, so I would think that the time of edit had been stored in a different format to what it expects to find now, hence the error.

I would appreciate the comments of the experts, as I would like to know if I have found the root cause of the error.

Possibly this could apply to other users who copy databases between servers if the locales are different?



Posted By: ©[CSiP]@Gud
Date Posted: 14 May 2003 at 3:57pm

??? It works??? I did not touch anything, but the forum works???

I got to get a new server...



-------------
Regards
©[CSiP]@Gud


Posted By: ©[CSiP]@Gud
Date Posted: 18 May 2003 at 7:41am

I don't get it... Anyone know sometime about servers? Sometimes it work, and sometimes it dont? It dosent matter if Im use the 1033 or 1030 code. For most of time, it dosent work, but som times it work all the time?

Got to get a dell server up again Just spend a lot of money on a IBM



-------------
Regards
©[CSiP]@Gud



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net