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

  New Posts New Posts RSS Feed - Help me with this problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Help me with this problem

 Post Reply Post Reply
Author
NickyPhils View Drop Down
Newbie
Newbie


Joined: 29 January 2006
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote NickyPhils Quote  Post ReplyReply Direct Link To This Post Topic: Help me with this problem
    Posted: 29 January 2006 at 11:40pm
When I try to go to my forum, the following message appears:
Microsoft VBScript runtime error '800a01f4'

Variable is undefined: 'internationalDateTime'

/[my site name]/Forum/common.asp, line 469

So what is my problem? How do I fix it? I tried searching this forum but I couldn't find anything, so I decided to post my question.

It seems to be referring to this section of the code:
'If the cookie is older than 5 mintues set a new one
If IsDate(Request.Cookies(strCookieName & "LV")("LV")) Then

    If CDate(Request.Cookies(strCookieName & "LV")("LV")) < DateAdd("n", -5, Now()) Then
        Response.Cookies(strCookieName & "LV")("LV") = internationalDateTime()
        Response.Cookies(strCookieName & "LV").Expires = DateAdd("yyyy", 1, Now())
    End If

'If there is no date in the cookie or it is empty then set the date to now()
Else
[469]    Response.Cookies(strCookieName & "LV")("LV") = internationalDateTime()
    Response.Cookies(strCookieName & "LV").Expires = DateAdd("yyyy", 1, Now())
End If
So yeah, how should I go about fixing this?
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: 30 January 2006 at 1:49pm
The function internationalDateTime() is found in the functions/functions_common.asp file.

You haven't said what version your are using or if this is after an upgrade?

If this is a clean install then you may have a corrupted file, so try re-uploading the files again.

If this is an upgrade then you may not have upgraded all the files, so make sure you are using the functions/functions_common.asp from the latest version.
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.