<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Web Wiz Support and Community Forums : Hide asp or database error</title>
  <link>https://forums.webwiz.net/</link>
  <description><![CDATA[This is an XML content feed of; Web Wiz Support and Community Forums : Web Wiz Forums : Hide asp or database error]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 17 Apr 2026 16:13:14 +0000</pubDate>
  <lastBuildDate>Tue, 22 Nov 2005 14:46:44 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.08</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forums.webwiz.net/RSS_post_feed.asp?TID=17306</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Web Wiz Support and Community Forums]]></title>
   <url>https://forums.webwiz.net/forum_images/web_wiz_forums.png</url>
   <link>https://forums.webwiz.net/</link>
  </image>
  <item>
   <title><![CDATA[Hide asp or database error : First, since you&amp;#039;re using...]]></title>
   <link>https://forums.webwiz.net/hide-asp-or-database-error_topic17306_post94164.html#94164</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=19649">JJLatWebWiz</a><br /><strong>Subject:</strong> 17306<br /><strong>Posted:</strong> 22&nbsp;November&nbsp;2005 at 2:46pm<br /><br />First, since you're using SQL, your data is much safer compared to the Access version.  And hackers definitely know the SQL tables very well just by installing WWF themselves.  But, this is a very inelegant error to be presented.<br /><br />I assume you do not get this error when you fill in the "new subject" text box.  This appears to be a minor bug from at least 7.01 through 7.96.  I don't know how it would manifest in the Access version, but I think it will produce an error at the same line number with some reference to a referential integrity.<br /><br />Here's what I came up with:  In "move_post.asp", you need to detect that no topic from the list was chosen and no new subject was entered.  So, open "move_post.asp" and insert the <font color=RED>red</font> code:<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />'If the user is user is using a banned IP redirect to an error page<br />If bannedIP() Then<br /> 'Clean up<br /> Set rsCommon = Nothing<br /> adoCon.Close<br /> Set adoCon = Nothing<br /> 'Redirect<br /> Response.Redirect("insufficient_permission.asp?M=IP")<br />End If<br /><font color=RED><br />If (Request.Form("topicSelect") = "") and (Trim(Request.Form("subject")) = "") then<br /> 'Clean up<br /> Set rsCommon = Nothing<br /> adoCon.Close<br /> Set adoCon = Nothing<br />%&gt;<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;meta name="copyright" content="Copyright (C) 2001-2005 Bruce Corkhill" /&gt;<br />&lt;title&gt;Discussion Forum Move Post&lt;/title&gt;<br />&lt;%<br />'***** START WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ******<br />Response.Write("&lt;!--//" & _<br />vbCrLf & "/* *******************************************************" & _<br />vbCrLf & "Application: Web Wiz Forums ver. " & strVersion & "" & _<br />vbCrLf & "Author: Bruce Corkhill" & _<br />vbCrLf & "Info: http://www.webwizforums.com" & _<br />vbCrLf & "Available FREE: http://www.webwizforums.com" & _<br />vbCrLf & "Copyright: Bruce Corkhill ©2001-2005. All rights reserved" & _<br />vbCrLf & "******************************************************* */" & _<br />vbCrLf & "//--&gt;" & vbCrLf & vbCrLf)<br />'***** END WARNING - REMOVAL OR MODIFICATION OF THIS CODE WILL VIOLATE THE LICENSE AGREEMENT ******<br />%&gt;<br />&lt;!--#include file="includes/skin_file.asp" --&gt;<br />&lt;/head&gt;<br />&lt;body bgcolor="&lt;% = strBgColour %&gt;" text="&lt;% = strTextColour %&gt;" background="&lt;% = strBgImage %&gt;" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" OnLoad="self.focus();"&gt;<br />&lt;div align="center" class="heading"&gt;Invalid Topic&lt;/div&gt;<br />&lt;div align="center" class="text"&gt;&lt;br /&gt;You must choose a topic from the list or enter a new topic.&lt;br /&gt;&lt;br /&gt;<br />Click here to &lt;a href="move_post_form.asp?PID=&lt;%=Request.Form("PID")%&gt;"&gt;return to the initial Topic Move form.&lt;/a&gt;<br />&lt;/div&gt;<br />&lt;/body&gt;<br />&lt;/html&gt;<br />&lt;%<br />Else<br /></font><br />'Read in the post ID<br />lngPostID = CLng(Request.Form("PID"))<br /><br /></pre></td></tr></table><br /><br />and at the end<br /><br /><table width="99%"><tr><td><pre class="BBcode"><br />%&gt;<br />&lt;html&gt;<br />&lt;head&gt;<br />&lt;script language="JavaScript"&gt;<br /> window.opener.location.href = "forum_posts.asp?TID=&lt;% = lngTopicID %&gt;"<br /> window.close();<br />&lt;/script&gt;<br />&lt;/head&gt;<br />&lt;/html&gt;<br /><font color=RED>&lt;%<br />End If<br />%&gt;</font><br /></pre></td></tr></table><br /><br />Insert only the red code.  You should find the black code already in the file.<br /><br />With that change, a moderator and adminstrator should no longer be presented with the unaccounted for error.  However, only admins and moderators would ever see that error.  Presumably, such users are people you trust, so you have little to fear from an error in that particular process.  A more complete bug fix would include a javascript in "move_post_form_to.asp" that checks that either a topic is selected or a non-blank subject is entered.  I'll leave that to - boRg - for now.<br /><br />(hopefully the forum filters don't make these suggested changes unintelligible)<br />]]>
   </description>
   <pubDate>Tue, 22 Nov 2005 14:46:44 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/hide-asp-or-database-error_topic17306_post94164.html#94164</guid>
  </item> 
  <item>
   <title><![CDATA[Hide asp or database error : hi, JJLatWebWiz. The following...]]></title>
   <link>https://forums.webwiz.net/hide-asp-or-database-error_topic17306_post94156.html#94156</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=21859">lik&#101;future</a><br /><strong>Subject:</strong> 17306<br /><strong>Posted:</strong> 22&nbsp;November&nbsp;2005 at 11:11am<br /><br /><P><SPAN =bold>hi, JJLatWebWiz. The following are some information about the error:</P><DIV></DIV><DIV></DIV>Enviroment:<DIV></DIV>&nbsp; OS: Windows 2003<DIV></DIV>&nbsp; Database: SQL Server<DIV></DIV><DIV></DIV><DIV><BR>the first step, I move a topic to a empty forum. in the second step, because there is no any topic in this forum, so I cannot choose a topic moved to&nbsp;and also leave the 'new subject' textbox blank, then click 'move', the error message appeared. I&nbsp;translated it to english as below,</DIV><DIV>&nbsp;</DIV><DIV>Microsoft OLE DB Provider for SQL Server error '80040e2f' <BR>UPDATE is violation of COLUMN FOREIGN KEY constraint 'tblThread_FK01' in database 'WWForum'£¬table 'tblTopic', column 'Topic_ID'¡£ </DIV><DIV>/BBS/move_post.asp£¬line 202</DIV><DIV>&nbsp;</DIV><DIV>thanks.</DIV></SPAN>]]>
   </description>
   <pubDate>Tue, 22 Nov 2005 11:11:14 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/hide-asp-or-database-error_topic17306_post94156.html#94156</guid>
  </item> 
  <item>
   <title><![CDATA[Hide asp or database error : likefuture, I&amp;#039;ll look at...]]></title>
   <link>https://forums.webwiz.net/hide-asp-or-database-error_topic17306_post94152.html#94152</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=19649">JJLatWebWiz</a><br /><strong>Subject:</strong> 17306<br /><strong>Posted:</strong> 22&nbsp;November&nbsp;2005 at 10:10am<br /><br />likefuture, I'll look at the code that performs that process, but it would be more useful if you would copy and paste the exact error message.  The asp file name, exact line number, and error code will make it easier to build a more meaningful change.<br /><br />Also, don't worry too much about hiding your forum database column name or file names.  Trust me that hackers know every file and column name already.  Hiding your database in a non-web folder is about all that you can do to protect your Access database.]]>
   </description>
   <pubDate>Tue, 22 Nov 2005 10:10:24 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/hide-asp-or-database-error_topic17306_post94152.html#94152</guid>
  </item> 
  <item>
   <title><![CDATA[Hide asp or database error : hi, JJLatWebWiz. Thanks. I installed...]]></title>
   <link>https://forums.webwiz.net/hide-asp-or-database-error_topic17306_post94121.html#94121</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=21859">lik&#101;future</a><br /><strong>Subject:</strong> 17306<br /><strong>Posted:</strong> 21&nbsp;November&nbsp;2005 at 7:40pm<br /><br />hi, <SPAN =bold>JJLatWebWiz. Thanks. I installed the version 7.96 on my own computer and my website is only in the testing stage. There is no many problems&nbsp;about WWF. but today, I try to move a topic to a forum which has no any topics, the error occured. and then my database name, column name and something else are all diplayed on the Browser. So I think it maybe dangerouse.</SPAN>]]>
   </description>
   <pubDate>Mon, 21 Nov 2005 19:40:48 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/hide-asp-or-database-error_topic17306_post94121.html#94121</guid>
  </item> 
  <item>
   <title><![CDATA[Hide asp or database error : The On Error Resume Next isn&amp;#039;t...]]></title>
   <link>https://forums.webwiz.net/hide-asp-or-database-error_topic17306_post94116.html#94116</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=19649">JJLatWebWiz</a><br /><strong>Subject:</strong> 17306<br /><strong>Posted:</strong> 21&nbsp;November&nbsp;2005 at 6:28pm<br /><br />The On Error Resume Next isn't all-inclusive.  If the main program is in Resume Next mode and the main program calls a subroutine that does not have its own On Error Resume Next, the subroutine could cause an error that halts the whole program.<br /><br />The most dangerous errors are the ones that expose the path of the Access database.  If the Access database is stored in a folder above the WWW root and that is not accessible as a web folder, then even if the path is exposed, the database is still relatively safe.<br /><br />Is there a "most frequent" error that you're seeing?  If so, I wouldn't mind trying to build something that could better protect the path information for you.]]>
   </description>
   <pubDate>Mon, 21 Nov 2005 18:28:47 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/hide-asp-or-database-error_topic17306_post94116.html#94116</guid>
  </item> 
  <item>
   <title><![CDATA[Hide asp or database error : Hi all. I&amp;#039;m trying to find...]]></title>
   <link>https://forums.webwiz.net/hide-asp-or-database-error_topic17306_post94089.html#94089</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="https://forums.webwiz.net/member_profile.asp?PF=21859">lik&#101;future</a><br /><strong>Subject:</strong> 17306<br /><strong>Posted:</strong> 21&nbsp;November&nbsp;2005 at 11:31am<br /><br /><P>Hi all. I'm trying to find a way to hide the error information shown on browsers, which caused by asp code. I think it will make the forum more security. I added &lt;%&nbsp;On Error&nbsp;Resume next&nbsp;%&gt; into header.asp, but it seems don't work. Do you have any idea about it? thanks!<BR></P>]]>
   </description>
   <pubDate>Mon, 21 Nov 2005 11:31:42 +0000</pubDate>
   <guid isPermaLink="true">https://forums.webwiz.net/hide-asp-or-database-error_topic17306_post94089.html#94089</guid>
  </item> 
 </channel>
</rss>