Author |
Topic |
|
arnold
Starting Member
27 Posts |
Posted - 23 January 2005 : 08:06:30
|
This mod was working fine for a year but since a few days (only NEW) poll's are generating this errormessage:
Microsoft VBScript runtime error '800a0006' Overflow: 'cint' /pfforum/inc_func_common.asp, line 62
Like i said; only the recent polls are having problems. The old ones are still working fine.
Does anybody know the clue? |
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 23 January 2005 : 18:22:24
|
You must be running an older version of the poll mod. Latest version is version 2.0.7.
Basically, you change all those CInt in the code to CLng.
Edit: Oops, it seems like that is how it is in the code. Using CInt. I could have sworn I used CLng for it. Oh well, if anyone else have this problem, they just need to update thier files and use CLng instead. |
Support Snitz Forums
|
Edited by - Davio on 23 January 2005 18:25:58 |
|
|
arnold
Starting Member
27 Posts |
Posted - 24 January 2005 : 07:07:51
|
Hi Davio,
Don't know which version we are running; does that matter? And why does it occur now after 1,5 year running fine?
BTW: you installed it 1,5 years ago :-) www.pim-fortuyn.nl
|
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 24 January 2005 : 12:01:11
|
Oh, lol. Hey Arnold. Long time no see!
Yeah, well as your forum gets bigger and bigger, the topic id's get larger as new topics are created. The CInt function is converting the topic id's to an integer. But it can only handle up to about 32,000. After that, it errors out. CLng handles a higher number.
So you will need to change the CInt to CLng so it can handle the larger topic id's. |
Support Snitz Forums
|
Edited by - Davio on 24 January 2005 12:01:24 |
|
|
arnold
Starting Member
27 Posts |
Posted - 27 January 2005 : 12:08:05
|
Hi Davio,
Thanks for your quick answer but change the CInt to CLng ?? Is there also an easy solution? Like removing (lots of) poll's? Or upgrading? To be honest i really don't know how to change change the CInt to CLng. |
|
|
Davio
Development Team Member
Jamaica
12217 Posts |
Posted - 27 January 2005 : 20:58:29
|
It's an easy change Arnold.
In your inc_func_common.asp file, line 62, it should look like this:if cint(pTopic_ID) = cint(rsPoll2("TOPIC_ID")) then You would change the cint to clng and the result would be:if clng(pTopic_ID) = clng(rsPoll2("TOPIC_ID")) then Easy!
Now if you get this same error anywhere else on your site, concerning polls, just find the line number and make the same change. Chaning the cint to clng. |
Support Snitz Forums
|
|
|
SLiPStreaM
Starting Member
USA
46 Posts |
Posted - 25 May 2005 : 04:56:29
|
I have just put up a Poll on my forum which all seems fine and people are voting okay. I noticed that I had typed one of the questions incorrectly and went to unlock the poll.
I then received the following error:
Microsoft VBScript runtime error '800a000d'
Type mismatch: 'cint'
/forum/post_info.asp, line 460
Do I need to change all the CInt's in post_info.asp to CLng and also in the inc_func_common.asp file? |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 25 May 2005 : 06:45:38
|
Yes. You should also make sure you are running the latest version of the Poll Mod as Davio stated that these changes have already been made.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
SLiPStreaM
Starting Member
USA
46 Posts |
Posted - 25 May 2005 : 07:09:11
|
I am running the latest version, 2.0.7, which I only downloaded about a week ago. I have looked at the two asp files mentioned and both still have the CInt code as opposed to the recommended Clng.
I will change all of these from Cint to Clng. Is this okay to do with an active poll when I upload the modified asp files? |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 25 May 2005 : 07:19:25
|
Yes; they are essentially the same function, the only difference being that clng can handle larger numbers than cint.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
|
Topic |
|