YAFLogo

Posted by: tersmi - Wednesday, 15 June 2011 19:14:13
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.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.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 [/quote] 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

Posted by: logan - Wednesday, 15 June 2011 23:35:26
In Database look for yaf-replace-words table and delete entry

Posted by: tersmi - Thursday, 16 June 2011 14:16:29
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?

Posted by: logan - Thursday, 16 June 2011 14:24:00
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.

Posted by: tersmi - Thursday, 16 June 2011 14:36:41
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.

Posted by: tha_watcha - Friday, 17 June 2011 15:49:41
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.

Posted by: tersmi - Friday, 17 June 2011 19:25:20
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