Author |
Topic  |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 04 June 2013 : 09:52:09
|
An admin is recieving this error message when in the Admin Options area after clicking to reset a member's password.
Microsoft VBScript compilation error '800a0411'
Name redefined
/fp/admin_reset.asp, line 130
Dim strUsername ----^
Here are lines 128-139
if intSendMail = 1 then Dim rsUser Dim strUsername
Set rsUser = Server.CreateObject("ADODB.RecordSet")
strSql = "SELECT M_NAME, M_EMAIL FROM " & strMemberTablePrefix & "MEMBERS " strSql = strSql & " WHERE MEMBER_ID = " & intMid
rsUser.Open strSql, my_Conn
if not rsUser.EOF then
Could someone tell me how to correct this error?
|
"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 04 June 2013 : 11:14:25
|
The "Name redefined" error means that somewhere else in the code, running prior to that line, there exists "Dim strUsername" or some other "Dim" statement that includes "strUsername".
As for how to fix it, it would depend on where/how it's being redefined. |
 |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 05 June 2013 : 05:36:59
|
Easiest is to delete that line and see if it adversely affects the code. |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 05 June 2013 : 10:44:35
|
That's one way to do it. I do wonder though if something isn't being included twice... |
 |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 05 June 2013 : 11:00:15
|
Not in "admin_reset.asp", there isn't. Apparently another mod used the same variable and added it to "config.asp". |
 |
|
AnonJr
Moderator
    
United States
5768 Posts |
Posted - 05 June 2013 : 11:11:24
|
Interesting. Just out of curiosity, which MOD? |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 06 June 2013 : 19:33:53
|
I removed it and I suppose it worked. I received this error message though (while on one of my admin's account. Is this set in stone?
There has been a problem!
Only the Forum Admin can access this page
|
"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley |
 |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 06 June 2013 : 21:18:11
|
quote: AnonJr Interesting. Just out of curiosity, which MOD?
Password Reset
quote: MaGraham I removed it and I suppose it worked. I received this error message though (while on one of my admin's account. Is this set in stone?
There has been a problem!
Only the Forum Admin can access this page
No, since you're using the admin levels mod. |
 |
|
MaGraham
Senior Member
   
USA
1297 Posts |
Posted - 06 June 2013 : 22:40:04
|
That worked PERFECT!
Thank you so much, Carefree!!
|
"Do all the good you can, by all the means you can, in all the ways you can, at all the times you can, to all the people you can, as long as ever you can." - John Wesley |
Edited by - MaGraham on 06 June 2013 22:41:59 |
 |
|
Carefree
Advanced Member
    
Philippines
4217 Posts |
Posted - 07 June 2013 : 05:53:29
|
Any time. |
 |
|
|
Topic  |
|