Print Page | Close Window

Advice needed (functions_filters.asp)

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=15876
Printed Date: 13 April 2026 at 1:48pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Advice needed (functions_filters.asp)
Posted By: kiklop
Subject: Advice needed (functions_filters.asp)
Date Posted: 18 July 2005 at 3:47pm

Hi to all,

 

After searching for quite a long time for adequate forum application (and after many questions about forum form on my site) I have decided to go with Web Wiz.

I had some difficulties in setting it, since I already had a membership database with various pages with restrict access but after some work up (to be precise I changed a lot of my older code on the site to use the new one) I uploaded the whole thing to server yesterday.

 

After getting used to admin section ( I have read that the new version 8 will bring some improvements in this regard and that’s great since I must confess that I was little confused with some sections) now it's running fine.

The only problem is that I get many Invalid use of Null: 'Replace' errors (functions_filters.asp lines 316, and 436) when old user try to log in.

I used my old users data, including usernames and emails, but I forced old users to reactivate their accounts trough "password recovery" process.

 
Now my question is; can I add on all format functions one check like

 If strInputEntry then

   …. Format process …

End If

 This will prevent that use of Null: 'Replace' errors  but I'm not sure if it will lead to some additional and maybe serious problems.

 

Thanks you in advance

 Mladen Sever

p.s.

website in question is http://www.dyxum.com/ - www.dyxum.com and the forum is located at http://www.dyxum.com/dforum/ - www.dyxum.com/dforum/ in case anyone interested.




Replies:
Posted By: dj air
Date Posted: 18 July 2005 at 3:57pm
when the users where added to the new system did you put the username and email addresses through the filter files to make them the same as the forum system

ie so userames etc are changed to work correctly with the forum security systems


Posted By: kiklop
Date Posted: 18 July 2005 at 4:08pm
Originally posted by dj air dj air wrote:

when the users where added to the new system did you put the username and email addresses through the filter files to make them the same as the forum system

ie so userames etc are changed to work correctly with the forum security systems


Well, I'm not sure if I understood you correctly but I copy pasted the data from the old to the new access database. So i presume I didn't do it in the way you have asked.

Any suggestion on how to minimize those errors?
Can I modify functions_filters.asp as stated before and will that do the trick?

Thanks for help.


Posted By: WebWiz-Bruce
Date Posted: 18 July 2005 at 5:17pm
These types of errors are usually coursed if there is no data to process.

You could always try checking if there is data first using something along the lines of:-

If NOT null(variableName) Then


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: kiklop
Date Posted: 18 July 2005 at 5:31pm
Originally posted by -boRg- -boRg- wrote:

These types of errors are usually coursed if there is no data to process.

You could always try checking if there is data first using something along the lines of:-

If NOT null(variableName) Then


Thanks !!
You guys are great.
I will add this check to functions_filters.asp file. I wanted to be sure that is safe to do so without causing additional problems.


Posted By: dj air
Date Posted: 18 July 2005 at 5:46pm
you wiull have ot add it in other places not the function filters setcion, as this is what is calling the problem.

i believe.


you will need to do the check around the lines that are coursing the errors within the actual files.

please note im not to sure on this but think its right.


Posted By: kiklop
Date Posted: 18 July 2005 at 7:06pm
Originally posted by dj air dj air wrote:

you wiull have ot add it in other places not the function filters setcion, as this is what is calling the problem.

i believe.
you will need to do the check around the lines that are coursing the errors within the actual files.

please note im not to sure on this but think its right.


Thanks dj air for your suggestion.

I'm trying to figure out what is exactlly causing the problem (is on the register.asp file); what field (or fields) but unfortunattely I can't reproduce this problem myself, but i'm getting server error messages (trough small email notification aplication).

Thanks again.



Posted By: dj air
Date Posted: 18 July 2005 at 7:15pm
if you look within the register.asp section you wiull see a list of formatSQLInput, remveformatting

is there a certain line within the page you where getting it?


Posted By: kiklop
Date Posted: 18 July 2005 at 7:26pm
Originally posted by dj air dj air wrote:



is there a certain line within the page you where getting it?


That would be too easy :):)
I will try to remove one formating at a time, in effort to discover the problematic field.
Most users do not experience this problems, but some other do.
Once all old users wil reactivacte their account i hope this error will not show up again.

Thanks


Posted By: dpyers
Date Posted: 18 July 2005 at 9:33pm
Did you turn off friendly error messages in IE? That should give you the line number.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: kiklop
Date Posted: 19 July 2005 at 7:36am
Thank you for the post.

I wasn't clear apparentlly and I apologize for that.
I have coded a small aplications to notify me about server errors. I know the lines that is causing the error and those are in filter_function.asp file. However, that file is "hosted" by common.asp that is hosted by most forum pages so, i can't find the line in resistration.asp file that is causing invalid call for format funcrion; only the line inside filter_functon.asp file).

I have done some if not null checks (inside filter_function.asp)  and it seems to work now. I will remove this additional check as soon most old users reactivate thir account.

Thanks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net