Author |
Topic  |
dlyles
New Member

72 Posts |
Posted - 23 August 2002 : 13:05:41
|
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
|
It looks like you have the config.asp file included twice... |
Edited by - Hamlin on 23 August 2002 13:52:39 |
 |
|
dlyles
New Member

72 Posts |
Posted - 23 August 2002 : 14:24:08
|
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 |
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 23 August 2002 : 14:35:26
|
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. |
 |
|
dlyles
New Member

72 Posts |
Posted - 23 August 2002 : 14:49:04
|
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 |
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 23 August 2002 : 14:51:06
|
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. |
 |
|
dlyles
New Member

72 Posts |
Posted - 23 August 2002 : 15:00:33
|
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 |
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 23 August 2002 : 15:16:58
|
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? |
 |
|
dlyles
New Member

72 Posts |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 23 August 2002 : 15:27:02
|
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. |
 |
|
dlyles
New Member

72 Posts |
Posted - 23 August 2002 : 15:33:49
|
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 |
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 23 August 2002 : 15:47:55
|
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.
|
 |
|
dlyles
New Member

72 Posts |
Posted - 23 August 2002 : 15:52:45
|
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 |
 |
|
dlyles
New Member

72 Posts |
Posted - 23 August 2002 : 16:10:25
|
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 |
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 23 August 2002 : 16:16:39
|
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  |
 |
|
dlyles
New Member

72 Posts |
Posted - 23 August 2002 : 16:44:12
|
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 |
 |
|
Topic  |
|