Sirusdv
2009-03-30T03:40:37Z
Memberships arn't upgraded from old yaf_Users table to the ASP.NET membership provider service due to the fact that once the the install page is hit:


Cache ["DBVersion"] = DB.DBVersion;


is enclosed in a try catch block:


		public static int DBVersion
		{
			get
			{
				try
				{
					using ( DataTable dt = registry_list( "version" ) )
					{
						if ( dt.Rows.Count > 0 )
						{
							// get the version...
							return Convert.ToInt32( dt.Rows[0]["Value"] );
						}
					}
				}
				catch
				{
					// not installed...
				}

				return -1;
			}
		}





which causes MailTimerCallback in YafInitModule.cs to get triggered. which in turn calls SendMailThread.SendMailThreaded( _uniqueId )

which down the list tries to call mail_list sp which does not yet exist causing a SQLException bubbling up to the catch all in DBVersion causing it to return -1 instead of the version the install script to skip the user migration:


if (((int)version) >= 30 || ((int)version) == -1 )
					{
						// migration is NOT needed...
						InstallWizard.ActiveStepIndex++;
					}




All solutions that I can think of are hacks and its 6:40AM so you guys are on your own there :P


Let me know if you need it clarified further.





Sponsor
xuanvu
  •  xuanvu
  • 78.8% (Friendly)
  • YAF Forumling Topic Starter
2009-03-30T17:13:56Z
Hi all,
I've created a new forum but have not been able to post message to that forum for almost a full day already. Whenever I click on the "New Topic" button, it brings me back to the forum' default page. Is there a place where I can clear the cache? It seems like it only caches the username that I've used to create the forum (with Admin right), because when I login as a different user, the "New Topic" button works just fine, but I don't want to use this username (for testing purposes, Member right only) to create new post.

Any help would be appreciated. Thanks,
Kenny.
herman_herman
2009-03-30T19:16:02Z
Hi
If you are on 1.9.3 then you can simply use admin section to clear the cache.But if you are on 1.9.1.X then you should ask your host support to do it for you or you may have access in your control panel to do it yourself.It can also be done programmatically.
But to me looks like Cookie problem maybe:?:
xuanvu
  •  xuanvu
  • 78.8% (Friendly)
  • YAF Forumling Topic Starter
2009-03-31T06:41:37Z
Thanks. The cached is finally cleared and I'm able to post to the new forum now.
Sirusdv
2009-04-02T15:10:05Z
Why did my post get moved into this completely unrelated topic?
xuanvu
  •  xuanvu
  • 78.8% (Friendly)
  • YAF Forumling Topic Starter
2009-04-07T08:26:22Z
😃 I'm not sure why your post got on top of my initial post either... a bug?
Sirusdv
Jaben
  •  Jaben
  • 100% (Exalted)
  • YAF Developer
2009-04-11T18:10:18Z
I'll fix. Thanks for the bug report.
newbie_User
2009-04-14T15:47:58Z
Hello,

I am new to using the forum. Just wanted to say thanks for all the great work!!!!


I did notice this bug though. Did you find a solutions?


I set up a forum with several boards. When I move between boards/pages, I get the same problem as listed above. The new topics button no longer works. It is certainly something to do with the cache.

I did some testing and basically did this when going to another page/board:

protected void Page_PreInit(object sender, EventArgs e)
{
SetNextImage();
if (!IsPostBack)
{
ResetCacheAll_Click();
}
}


protected void ResetCacheAll_Click()
{
// clear all cache keys
YafCache.Current.Clear();

}

This obviously fixes the cache issue, but obviously isn't a good solution.

It seems to be board/user specific. Is board/userid combo saved to the cache?


Did you find a solutions to this yet?

Thanks again!!


Jaben wrote:

I'll fix. Thanks for the bug report.


Users browsing this topic

    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