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
 Mikes File Attachment Addon's - VBScript error
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

hans_
Junior Member

Czech Republic
161 Posts

Posted - 04 August 2005 :  08:56:52  Show Profile  Visit hans_'s Homepage
I tried to install this MOD.
Mikes File Attachment Addon's
MOD Version: 2.02
Forum Version: 3.4
Author: James
http://www.snitzbitz.com/mods/details.asp?Version=All&mid=67
********************
If I try upload file I recive form outputfile.asp following error:
Microsoft VBScript runtime error '800a0005' 

Invalid procedure call or argument 

/2004/v_01/forum/outputFile.asp, line 63

I made query to the server from outputfile.asp and I have this path from the outputFile.asp file.
server.MapPath(".") is d:\home\root\hw017828\2004\v_01\forum

Here is the outputfile.asp : http://www.flashmedia.cz/2004/v_01/forum/outputfile.txt

Where can I set allowed extensions, filesize, is it possible in this MOD?

Can you help me please?


I am still learning.
Sorry for my stupid questions (sometimes) and bad English.

Edited by - hans_ on 05 August 2005 01:41:28

gelliott
Junior Member

USA
268 Posts

Posted - 05 August 2005 :  10:16:39  Show Profile
You can set file sizes at line 44 and file extensions between lines 33 and 43.

* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized.
Go to Top of Page

hans_
Junior Member

Czech Republic
161 Posts

Posted - 05 August 2005 :  13:06:37  Show Profile  Visit hans_'s Homepage
Thank you.
But I can still find out why I during uploading have error:

Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument
/2004/v_01/forum/outputFile.asp, line 63

On server is the file created but write some bytes and recieve this error. Upload is after a while interrupted.

I am still learning.
Sorry for my stupid questions (sometimes) and bad English.
Go to Top of Page

hans_
Junior Member

Czech Republic
161 Posts

Posted - 06 August 2005 :  03:00:10  Show Profile  Visit hans_'s Homepage
If I disable this code in outputfile.asp:

For i = 1 to LenB(value)
 MyFile.Write chr(AscB(MidB(value,i,1)))
 Next
  MyFile.Close

I can see in pop up after click on btn Upload File to "members" post info about uploaded file:
Filename is OK I think.
Extension jpg is accepted in outputfile.asp.
OK filesize is greater.
I dont understand this




I tested it also locally and on more computers and I have still the same error if I enable code in outputfile.asp:

For i = 1 to LenB(value)
 MyFile.Write chr(AscB(MidB(value,i,1)))
 Next
  MyFile.Close


The error:
Microsoft VBScript runtime error '800a0005' 

Invalid procedure call or argument 

/2004/v_01/forum/outputFile.asp, line 63

I am still learning.
Sorry for my stupid questions (sometimes) and bad English.
Go to Top of Page

gelliott
Junior Member

USA
268 Posts

Posted - 06 August 2005 :  18:46:18  Show Profile
Hans, try uploading a file within the filesize requirements, or adjusting the size minimums to a larger size at lines 39 and 102.

As I stated at this post, I do not understand why you are getting the vbscript error if you have permissions enabled and fso enabled. The very fact that it errors out there when you are trying to upload a file that should bypass the upload routine due to it's size implies that you have more problems in the file. I can't help you with this because I don't see what the problem is...

* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized.
Go to Top of Page

hans_
Junior Member

Czech Republic
161 Posts

Posted - 07 August 2005 :  02:48:34  Show Profile  Visit hans_'s Homepage
Present situation is that i tried to set the larger size at lines 39 and 102 and different file extensions.
My test runs on local computer and the error is the same if i test it on the server.
If I disable this code in outputfile.asp the uploading creates the uploaded file with 0 kB size:

For i = 1 to LenB(value)
 MyFile.Write chr(AscB(MidB(value,i,1)))
 Next
  MyFile.Close

If i enable this code, than is created the file with cca about 200 - 600 bytes and ist interrupted.

As I written sooner I made test also on the clean Snitz Forum vers. 3.4.05 and I recieve the same error - isnīt it curious?
I really donīt know how to prevent this MOD to work.
Has somebody working code of own forum of this MOD?

I am still learning.
Sorry for my stupid questions (sometimes) and bad English.
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 07 August 2005 :  04:31:44  Show Profile  Visit modifichicci's Homepage
That is not a code factor. My files are the same as yours.
It is a Vbasic factor, that cannot run quite well the loop or of the file system object that failed something...
I have seen some others users with the same problem, unsolved till now...
What is your Operative system? And server is winXXX?
What db use? What firewall and antivirus are set? What is the protection of your server and your PC?
It's a very hard issue...

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum
Go to Top of Page

hans_
Junior Member

Czech Republic
161 Posts

Posted - 07 August 2005 :  05:07:37  Show Profile  Visit hans_'s Homepage
OK I see modifichicci.
I tested it locallaly on my PC at home.
On my home PC I have Win XP Prof. SP 2, Zone Alarm firewall, Nod 32 Antivirus. I tried the firewall and AV switch off but it does not helped.
----
Upload on the server I tried on my notebook, on firm PC, but I recive the same error es I written.
I donīt know what my web provider use probably WIN 2000.
But if local test shows the same error.
My friend in my work is ASP programmer, but he uses some ASP component for uplading, which was bougth.
I can not use this component because my webserver provider forbid uploading those component on own server.
I try to show my friend the code of this MOD, he is (i think) very good programer. Maybe he can find the error.

I am still learning.
Sorry for my stupid questions (sometimes) and bad English.

Edited by - hans_ on 07 August 2005 05:08:54
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