Author |
Topic |
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 03 December 2002 : 09:36:00
|
There must be an error related to the server time, don't know exactly what. Can't have a look now, will try to do it later. Meanwhile I would suggest that you use the 24hr time format, to have your forum running. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
Edited by - ruirib on 03 December 2002 09:36:38 |
|
|
McTurok
Starting Member
USA
6 Posts |
Posted - 03 December 2002 : 10:22:00
|
I wonder what I earth could cause that problem. Thanks for looking into it for me. I don't know about you but I would think most forums would be 12 hr instead of 24 hr format. Thanks again. |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 03 December 2002 : 12:14:05
|
quote: Originally posted by McTurok
I don't know about you but I would think most forums would be 12 hr instead of 24 hr format.
Maybe in the US, but less likely in Europe. I prefer the 24 hour format.
Open your site and go to a topic. Then add these two lines immediately after the beginning of chkTime and let me know what it shows:
Response.Write fTime
Response.End
Do these changes immediately before performing the action that causes the errors. Then perform that action (trying to reply to the topic, right?) and let me know what is shown. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 03 December 2002 : 13:23:36
|
I also prefer 24 hr format.
quote: Microsoft VBScript runtime error '800a000d'
Type mismatch: 'cLng'
A call to function chkTime will cause this error if the argument passed to the function is a datestring with date part only or length of the argument passedis 8 characters only.
For example:
chkTime(20021203) will cause the error
chkTime(200212030) will not cause the error
The correct argument should be 14 digits long and all numbers for correct results.
chkTime(20021203130500) is correct format for the argument passed.
function chkTime only checks for empty or null strings passed as an argument. There is no check for the length of the argument string and for all numbers in the argument string, and thus the function cannot handle the wrong argument passed to it properly and will return an error.
Since function chkTime expects a string of 14 digits, IMO, there should be check for length of the string as well as numeric string to make sure that all digits are numbers.
At code level, i don't think there is a scenario where an incorrect argument is passed to the function. May be it is some Mod. The mod developers must make sure that the argument passed is in correct format.
This error will happen only when the strTimeType = 12 i.e for 12 hr time format. Selecting 24hr time format will not cause any error but results will not be as expected if the argument is not in correct format.
|
CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain
It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.
Prayer Of Forgiveness "I forgive all living beings. May all living beings forgive me! I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated) |
|
|
sirsmiley
New Member
77 Posts |
Posted - 21 December 2002 : 04:58:42
|
Ok I am having some similar problems. I have set up new version 3.4.03, works fine. I installed active user mod 4.17, works fine. Now, I just installed Private message 34-340301 and it seemed like it was working right but now comes the problems....first the members link on the main page, ends up acting as the Home link,and also the private message link does the same thing when clicked goes to whats on the home link. 2nd when I go and open a topic, you can see the first , original posts, but after that all you see is a reply of:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'cLng'
/inc_func_common.asp, line 809
I then tried what you all were talking about and reset the time to 24hr instead of 12 hr....well.......now when I go look at a topic, I can see the original post, but after that all the other post say ERROR ...all the way down, and the last post shows this inside.....
Microsoft VBScript runtime error '800a0006' Overflow: 'cLng'
/inc_func_secure.asp, line 50
Im not sure what to do now, I tried a search but wasn't able to find this exact problem, but this post was similar. Anyone know what I should do? Any help would certainly be very much appreciated!! Thanks!
|
|
|
sirsmiley
New Member
77 Posts |
Posted - 21 December 2002 : 05:26:37
|
on that first error, here is line 804 through line 824 in inc_function_common_.asp
function chkTime(fTime) if fTime = "" or isNull(fTime) then exit function end if if strTimeType = 12 then 809~~~> if cLng(Mid(fTime, 9,2)) > 12 then chkTime = ChkTime & " " & _ (cLng(Mid(fTime, 9,2)) -12) & ":" & _ Mid(fTime, 11,2) & ":" & _ Mid(fTime, 13,2) & " " & "PM" elseif cLng(Mid(fTime, 9,2)) = 12 then chkTime = ChkTime & " " & _ cLng(Mid(fTime, 9,2)) & ":" & _ Mid(fTime, 11,2) & ":" & _ Mid(fTime, 13,2) & " " & "PM" elseif cLng(Mid(fTime, 9,2)) = 0 then chkTime = ChkTime & " " & _ (cLng(Mid(fTime, 9,2)) +12) & ":" & _ Mid(fTime, 11,2) & ":" & _ Mid(fTime, 13,2) & " " & "AM" else |
|
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 21 December 2002 : 05:35:55
|
Sirsmiley,
Please start a new topic in the Help: Mod Implementation forum. You can even copy the contents of these two posts into that topic, but topics regarding mod implementation issues must go there. It's not the same thing to provide help on a base code issue or a mod issue. TO help with mods people need to know the changes inserted by the mod and not everybody does it.
Sorry about it, but I'm locking this topic here. |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
Topic |
|
|
|