tersmi
  •  tersmi
  • 56.6% (Neutral)
  • YAF Camper Topic Starter
2011-06-15T17:14:13Z
Hello all,

I've been working at setting up my forum for the past week now. I had an ASP.NET expert colleague install the forum on my Windows Server 2008 server. From that point I've been configuring the forums (with a good deal of help from this group!) but have hit another issue I need help in resolving.

I received the following error when trying to post my very first topic:

System.ArgumentException: parsing "*dyke" - Quantifier {x,y} following nothing.

After looking this up on the forum here I discovered this can be attributed to the badwords list, and to simply delete that entry. Unfortunately, I mistakenly deleted the "dyke" entry rather than the "*dyke" entry in my bad words list. Now, I cannot access my forum at all. Whenever I enter the address I get the following error page:

Quote:

Server Error in '/' Application.



parsing "*dyke" - Quantifier {x,y} following nothing.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: parsing "*dyke" - Quantifier {x,y} following nothing.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:


[ArgumentException: parsing "*dyke" - Quantifier {x,y} following nothing.]
System.Text.RegularExpressions.RegexParser.ScanRegex() +5245150
System.Text.RegularExpressions.RegexParser.Parse(String re, RegexOptions op) +113
System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options, Boolean useCache) +300
System.Text.RegularExpressions.Regex..ctor(String pattern, RegexOptions options) +11
YAF.Types.BadWordReplaceItem..ctor(String goodWord, String badWord, RegexOptions options) +80
YAF.Core.Services.YafBadWordReplace.<get_ReplaceItems>b__1(DataRow row) +70
System.Linq.WhereSelectEnumerableIterator`2.MoveNext() +184
System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) +7667556
System.Linq.Enumerable.ToList(IEnumerable`1 source) +61
YAF.Core.Services.YafBadWordReplace.<get_ReplaceItems>b__0() +141
YAF.Core.HttpRuntimeCache.GetOrSetInternal(String key, Func`1 getValue, Action`1 addToCacheFunction) +332
YAF.Core.HttpRuntimeCache.GetOrSet(String key, Func`1 getValue, TimeSpan timeout) +288
YAF.Core.Services.YafBadWordReplace.get_ReplaceItems() +149
YAF.Core.Services.YafBadWordReplace.Replace(String searchText) +67
YAF.Controls.ForumActiveDiscussion.LatestPosts_ItemDataBound(Object sender, RepeaterItemEventArgs e) +831
System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +108
System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +136
System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +443
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +51
System.Web.UI.WebControls.Repeater.DataBind() +75
YAF.Controls.ForumActiveDiscussion.Page_Load(Object sender, EventArgs e) +671
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +99
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627





Version Information: Microsoft .NET Framework Version:2.0.50727.3620; ASP.NET Version:2.0.50727.3618



Does anyone have any suggestions on how I fix this? Where might I edit that bad word list aside from using the forum GUI?

appreciated,
Terry
Sponsor
logan
  •  logan
  • 100% (Exalted)
  • YAF Leader
2011-06-15T21:35:26Z
In Database look for yaf-replace-words table and delete entry
test
tersmi
  •  tersmi
  • 56.6% (Neutral)
  • YAF Camper Topic Starter
2011-06-16T12:16:29Z
Thanks for the reply logan. I am quite new to this. Do you mean in the database.mdf file under app_data or something else?
logan
  •  logan
  • 100% (Exalted)
  • YAF Leader
2011-06-16T12:24:00Z

if your just in dev say visual studio you can open the mdf in database explorer open the tables tab and right click to show table data then edit or delete the offending row. if this is hosted you should have some sort of database control panel that you can access the tables and edit or delete that row.
test
tersmi
  •  tersmi
  • 56.6% (Neutral)
  • YAF Camper Topic Starter
2011-06-16T12:36:41Z
all right. That sounds just about right. I'll see if I can get it done at let you know how it goes. Thanks again logan.
tha_watcha
2011-06-17T13:49:41Z
I Just fixed this crash for Yaf 1.9.5.6 it will ignore such bad expressions.

Also when you enter just the "*" as Bad Expression on the "Add/Edit Word Replace Word" Page, it will not save the item, only a warning info will be shown.
UserPostedImage
tersmi
  •  tersmi
  • 56.6% (Neutral)
  • YAF Camper Topic Starter
2011-06-17T17:25:20Z
Thanks for the heads up. Things seem to be up and running quite well now. I'm having some trouble getting my logo to appear, but I'll start another post for that issue.

Terry

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved