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
 New Referer MOD Error
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

richfed
Average Member

United States
999 Posts

Posted - 28 January 2004 :  06:20:41  Show Profile  Visit richfed's Homepage
I had this referer mod and didn't notice any problems ... till I read this thread: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=50559, and, sure enough ...

So, I applied the new, fixed version. Received this error:

Microsoft VBScript runtime error '800a0009'

Subscript out of range: 'ubound(...)'

/messageboard/inc_func_common.asp, line 2157


Am I the only one?

Worked fine before the fix [except for the browser title bar thing] ...

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 January 2004 :  07:16:51  Show Profile  Send ruirib a Yahoo! Message
The problem is that you are using an already modded forum. My inc_func_common.asp is not that long. Please post a link to a text version of your inc_func_common.asp.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 28 January 2004 :  12:55:40  Show Profile  Visit richfed's Homepage
Link posted: http://www.mohicanpress.com/inc_func_common.txt

Here's the segment [line 2157 in red]

Function GetNewTitle(strTempScriptName)
Dim StrTempScript
Dim strNewTitle
arrTempScript = Split(strTempScriptName, "/")
strTempScript = arrTempScript(Ubound(arrTempScript))
strTempScript = lcase(strTempScript)


Thanks, ruirib!

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 January 2004 :  13:09:22  Show Profile  Send ruirib a Yahoo! Message
What page are you trying to open when that occurs?


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 28 January 2004 :  13:16:59  Show Profile  Send ruirib a Yahoo! Message
I'm suspecting you didn't copy all the new code to your files. Please post a link to a text version of inc_header.asp.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 29 January 2004 :  04:41:59  Show Profile  Visit richfed's Homepage
It happened on any page I tried to access ...

I reverted back to my previous files to get the forum back up. Let me take another look at this and see what happens. It is very possible I goofed - though the MOD is so easy to install I can't see how, but ... stranger things have happened!!
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 29 January 2004 :  05:18:30  Show Profile  Send ruirib a Yahoo! Message
Can you post a link to a text version of that inc_header.asp? The problem I was suspecting was that, if you started with the files you had after installing the first version of the mod, the statement that sets a value to strScriptName might have been forgotten. I see no reason for the changes to interfere with that function where the error was ocurring, and no one else reported the same error (it did not occur for me, either).


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 29 January 2004 05:26:06
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 30 January 2004 :  05:05:31  Show Profile  Visit richfed's Homepage
Here is a link to inc_header [with the newest MOD code] ... http://www.mohicanpress.com/inc_header.txt This is the file that caused the above error ...
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 30 January 2004 :  05:52:02  Show Profile  Send ruirib a Yahoo! Message
As I suspected (I was right on the money ), you missed this line, that should be present at line#74, inc_header.asp:

strScriptName = request.servervariables("script_name")

This should be present as well in inc_header_short.asp.

The readme file has the code for both files (with the relevant lines), as they should look after the mod has been added. You should make sure your files look like what is shown in the readme file.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 30 January 2004 :  09:35:05  Show Profile
That line looks like this in inc_header_short.asp Rui:
scriptname = split(request.servervariables("SCRIPT_NAME"),"/")
It has the split command.

Support Snitz Forums
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 30 January 2004 :  09:38:41  Show Profile  Send ruirib a Yahoo! Message
You are right David. Better update the readme file for the mod, then.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 30 January 2004 :  09:45:02  Show Profile
It doesn't show it?? darn.

Support Snitz Forums
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 30 January 2004 :  09:48:41  Show Profile
It's updated.

Support Snitz Forums
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 30 January 2004 :  09:49:15  Show Profile  Send ruirib a Yahoo! Message
quote:
Originally posted by Davio

It's updated..


Cool .


Snitz 3.4 Readme | Like the support? Support Snitz too

Edited by - ruirib on 30 January 2004 09:50:51
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 31 January 2004 :  07:26:42  Show Profile  Visit richfed's Homepage
Yes, fellas, that did the trick. All functions properly now. Thank you!
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.39 seconds. Powered By: Snitz Forums 2000 Version 3.4.07