Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Pollmod problem
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

arnold
Starting Member

27 Posts

Posted - 23 January 2005 :  08:06:30  Show Profile  Visit arnold's Homepage
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  Show Profile
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
Go to Top of Page

arnold
Starting Member

27 Posts

Posted - 24 January 2005 :  07:07:51  Show Profile  Visit arnold's Homepage
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
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 24 January 2005 :  12:01:11  Show Profile
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
Go to Top of Page

arnold
Starting Member

27 Posts

Posted - 27 January 2005 :  12:08:05  Show Profile  Visit arnold's Homepage
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.
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 27 January 2005 :  20:58:29  Show Profile
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
Go to Top of Page

SLiPStreaM
Starting Member

USA
46 Posts

Posted - 25 May 2005 :  04:56:29  Show Profile  Visit SLiPStreaM's Homepage  Send SLiPStreaM an AOL message
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?
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 25 May 2005 :  06:45:38  Show Profile
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.”
Go to Top of Page

SLiPStreaM
Starting Member

USA
46 Posts

Posted - 25 May 2005 :  07:09:11  Show Profile  Visit SLiPStreaM's Homepage  Send SLiPStreaM an AOL message
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?
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 25 May 2005 :  07:19:25  Show Profile
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.”
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.36 seconds. Powered By: Snitz Forums 2000 Version 3.4.07