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: General / Classic ASP versions(v3.4.XX)
 Name redefined error
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

dlyles
New Member

72 Posts

Posted - 23 August 2002 :  13:05:41  Show Profile  Visit dlyles's Homepage
Just upgraded and working throught the kinks. I'm getting the following error when viewing a post. I don't know if it has something to do with the fact that I'm using the confi and inc_header file in the web root. The forum is in a separate folder.

Microsoft VBScript compilation error '800a0411'

Name redefined

config.asp, line 44

dim strDBType, strConnString, strTablePrefix, strMemberTablePrefix '## Do Not Edit
----^

I've taken out line 44 altogether and I'm still getting this message. I've tried on 4 computers since taking out line 44 (on computers that never accessed the script) and it's still giving me the error.

D. Lyles
http://www.uniquestdesigns.com

Edited by - dlyles on 23 August 2002 13:43:23

Hamlin
Advanced Member

United Kingdom
2386 Posts

Posted - 23 August 2002 :  13:51:59  Show Profile
It looks like you have the config.asp file included twice...

Edited by - Hamlin on 23 August 2002 13:52:39
Go to Top of Page

dlyles
New Member

72 Posts

Posted - 23 August 2002 :  14:24:08  Show Profile  Visit dlyles's Homepage
I checked and I don't. What I do have is the config file referenced at the root during login and again in the forum in the forum folder. Should that matter?

D. Lyles
http://www.uniquestdesigns.com
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 23 August 2002 :  14:35:26  Show Profile
if you're using the same inc_header.asp and have config.asp included in inc_header.asp like I told you to do in the other topic, you do have it included twice: once in inc_header.asp and once in the "page files" like default.asp, forum.asp and topic.asp.
Go to Top of Page

dlyles
New Member

72 Posts

Posted - 23 August 2002 :  14:49:04  Show Profile  Visit dlyles's Homepage
Ok, I took the include statement out of the forum.asp page, but of course am getting the following error.

There has been a problem...

Your strDBType is not set, please edit your config.asp
to reflect your database type.

D. Lyles
http://www.uniquestdesigns.com
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 23 August 2002 :  14:51:06  Show Profile
right, well the only way to fix that is by using a new inc_header.asp for your site. You could use inc_header_copy.asp and include config.asp there and use that on your site and be done with all problems.

Remember that on the forums you shouldn't include inc_sha256.asp in inc_header.asp either, but you do need it for your site's login.
Go to Top of Page

dlyles
New Member

72 Posts

Posted - 23 August 2002 :  15:00:33  Show Profile  Visit dlyles's Homepage
I changed the inc_header that's on the login to incheader.asp and this is the message I'm getting when I try to go to the folder.
(http://www.nyoil.net/forum/default.asp). Also, If I take the config.asp file out of the default and other pages, it's still not working.

Microsoft VBScript compilation error '800a0411'

Name redefined

inc_iconfiles.asp, line 42

Const strIconAIM = "icon_aim.gif|15|15"

This is what the inc_header file includes are like for the forum
<!--#INCLUDE FILE="inc_func_common.asp" -->

for the site
<!--#INCLUDE FILE="inc_func_common.asp" -->
<!--#INCLUDE FILE="config.asp"-->

<!--#INCLUDE FILE="inc_sha256.asp"-->


<!--#INCLUDE FILE="inc_moderation.asp" -->
<!--#INCLUDE FILE="inc_subscription.asp" -->




D. Lyles
http://www.uniquestdesigns.com

Edited by - dlyles on 23 August 2002 15:06:56
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 23 August 2002 :  15:16:58  Show Profile
recap time...

you're using the "normal" files for the forums

you're using an include on your site called incheader.asp with inc_func_common.asp, config.asp, inc_sha256.asp, inc_moderation.asp and inc_subscription.asp included in it

you're getting an error where?
Go to Top of Page

dlyles
New Member

72 Posts

Posted - 23 August 2002 :  15:23:30  Show Profile  Visit dlyles's Homepage
I'm getting the error on the forums. I put the "normal" pages back they way they were and I'm still getting that message
here it is

http://www.nyoil.net/forums/default.asp
(you'll need to use "guest" as the username and password)



D. Lyles
http://www.uniquestdesigns.com
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 23 August 2002 :  15:27:02  Show Profile
you didn't edit config.asp in any way? 'Cause that's the only thing that can create this problem.

make sure you removed the ' from the line saying strDBType = that corresponds with the type of database you're using.
Go to Top of Page

dlyles
New Member

72 Posts

Posted - 23 August 2002 :  15:33:49  Show Profile  Visit dlyles's Homepage
No, I didn't change it, henceforth I can login to the site. I only get this error on the forum pages. While I'm using the inc_header.asp file for the login it works fine but only on login. I also have the following includes in the "login" incheader.asp (as it has been named), but not in the forum inc_header.asp. (I only have inc_func_common.asp include in the forum inc_header.asp)

<!--#INCLUDE FILE="inc_func_common.asp" -->
<!--#INCLUDE FILE="config.asp"-->

<!--#INCLUDE FILE="inc_sha256.asp"-->


<!--#INCLUDE FILE="inc_moderation.asp" -->
<!--#INCLUDE FILE="inc_subscription.asp" -->

D. Lyles
http://www.uniquestdesigns.com
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 23 August 2002 :  15:47:55  Show Profile
I'm getting this error on your forums now:
quote:
ADODB.Connection.1 error '80004005'

SQLState: S1000
Native Error Code: 2005
[TCX][MyODBC]Unknown MySQL Server Host 'SERVER_IP' (2)


inc_header.asp, line 106


I still think this is a config.asp problem because that line is for opening the connection to the database, which is defined in config.asp.
Go to Top of Page

dlyles
New Member

72 Posts

Posted - 23 August 2002 :  15:52:45  Show Profile  Visit dlyles's Homepage
Yeah, I uploaded the config file from scratch between post and forgot to make the db changes. I did, but am still getting the message. Guess I have to wait for the cookie to expire to check on this. Is this true?

D. Lyles
http://www.uniquestdesigns.com
Go to Top of Page

dlyles
New Member

72 Posts

Posted - 23 August 2002 :  16:10:25  Show Profile  Visit dlyles's Homepage
I've made the changes, and am still getting the error on machines that have never access this page.

D. Lyles
http://www.uniquestdesigns.com
Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 23 August 2002 :  16:16:39  Show Profile
It might be due to server caching. The only thing that can solve that is resetting or rebooting the server. The error Unknown MySQL Server Host 'SERVER_IP' (2) has got me puzzled, but then again, I'm not much of a wizard when it comes to MySQL
Go to Top of Page

dlyles
New Member

72 Posts

Posted - 23 August 2002 :  16:44:12  Show Profile  Visit dlyles's Homepage
Ok, I rebooted the server, which helped. Now I can see the forum list on the default.asp page. However, when I click a topic I get the following

ADODB.Recordset.1 error '80004005'

SQLState: S1000
Native Error Code: 1146
[TCX][MyODBC]Table 'NYOIL.TOPICS' doesn't exist


/forum/forum.asp, line 289


I ran setup again, just to make sure.

D. Lyles
http://www.uniquestdesigns.com
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.41 seconds. Powered By: Snitz Forums 2000 Version 3.4.07