Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - CDate error still happening
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CDate error still happening

 Post Reply Post Reply
Author
skacorechris View Drop Down
Newbie
Newbie


Joined: 18 November 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote skacorechris Quote  Post ReplyReply Direct Link To This Post Topic: CDate error still happening
    Posted: 09 December 2003 at 5:50am
Hi,

I was getting the CDate error as described in the documentation when I uploaded my forum to my webspace. I followed instructions for setting the LCID in the common.asp file, which didn't solve the problem, and neither has the creation of a global.asa file. I have been deleting cookies on each attempt, but still to no avail.

Quote
Microsoft VBScript runtime error '800a000d'

Type mismatch: 'CDate'

/ahchrist/forum/default.asp, line 154


The forum's address is www.adriangreenwood.co.uk/ahchrist/forum if that's of any use to you.

I'm using the latest release of the forum. Any ideas what could still be wrong?

Thanks

Edited by skacorechris
Back to Top
madolik View Drop Down
Newbie
Newbie
Avatar

Joined: 28 September 2003
Status: Offline
Points: 11
Post Options Post Options   Thanks (0) Thanks(0)   Quote madolik Quote  Post ReplyReply Direct Link To This Post Posted: 09 December 2003 at 6:50am

I had the same kind of problems.

 



Edited by madolik
Back to Top
Badaboem View Drop Down
Senior Member
Senior Member


Joined: 12 April 2002
Location: Netherlands
Status: Offline
Points: 600
Post Options Post Options   Thanks (0) Thanks(0)   Quote Badaboem Quote  Post ReplyReply Direct Link To This Post Posted: 09 December 2003 at 7:21am

it may be that you installed a different language os on your pc. I have US windows 2003 server and use lcid 1043 although I'm located in the netherlands.



Edited by Badaboem
Back to Top
skacorechris View Drop Down
Newbie
Newbie


Joined: 18 November 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote skacorechris Quote  Post ReplyReply Direct Link To This Post Posted: 10 December 2003 at 4:56pm
i do have a different time setting on my PC, which could cause the problem. but i have set the LCID to various settings to try and fix the problem and it hasn't worked. I'm going to try overwriting the database with the blank one that came with it to see if that fixes it.
Back to Top
skacorechris View Drop Down
Newbie
Newbie


Joined: 18 November 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote skacorechris Quote  Post ReplyReply Direct Link To This Post Posted: 12 December 2003 at 12:22pm
hmm, that still doesn't seem to help...any ideas?
Back to Top
Badaboem View Drop Down
Senior Member
Senior Member


Joined: 12 April 2002
Location: Netherlands
Status: Offline
Points: 600
Post Options Post Options   Thanks (0) Thanks(0)   Quote Badaboem Quote  Post ReplyReply Direct Link To This Post Posted: 15 December 2003 at 5:10pm
Each time you change your lcid code you have to clear your cookies.
Back to Top
shem View Drop Down
Newbie
Newbie
Avatar

Joined: 21 December 2003
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote shem Quote  Post ReplyReply Direct Link To This Post Posted: 21 December 2003 at 8:10pm

On install got the same problem in UK host in Germany (+1 hours) 2003 shared server. Did all the Locale stuff and problem persisted perhaps host hasn't got locale installed, anyway ...

Tracked the cookie and noted that the LTVST was being recorded with a , not . I thought this was probably due to a server/database/locale setup, but just wanted to find a solution so checked recording a straight numeric date in the form 12345.123456789 in the cookie and found the . replaced by a comma when read straight out quite bizarre and probably not a locale issue.

This might not be complete fix as I haven't finished testing and it's not elegant but replaced in the following files common.asp, default.asp, active_topics.asp some code as follows.

Replace

isNumeric(Request.Cookies(strCookieName)("LTVST"))

with

isNumeric(Left(Request.Cookies(strCookieName)("LTVST"),5) & "." & Right(Request.Cookies(strCookieName)("LTVST"),9))

and

CDate(Request.Cookies(strCookieName)("LTVST"))

with

CDate(Left(Request.Cookies(strCookieName)("LTVST"),5) & "." & Right(Request.Cookies(strCookieName)("LTVST"),9))

If those who have the problem with cdate and the cookie issue and find anything else to change or if this solves your problem let us know.

Back to Top
TT-Fan View Drop Down
Newbie
Newbie


Joined: 22 December 2003
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote TT-Fan Quote  Post ReplyReply Direct Link To This Post Posted: 22 December 2003 at 4:02am

I also had a lot of problems after changing CDATE.

But now it all works, my Problem was that my Provider Company hade there Server in another country!! Perhaps you have the same Problems?

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.