YAFLogo

johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time Topic Starter
11 years ago
I downloaded the latest version from codeplex. Built it and ran /install/default.aspx

I created two users (one admin and one normal user).

I added posts to each account. However the post count remains 0. It is showing zero in all places (forum posts, user profile, etc). It does list all posts under user post history.

Everything else is working fine. I can add post, edit post, delete post, etc.

Sponsor
johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time Topic Starter
11 years ago
I am guessing there is a try catch block in the code. If there is an error in getting post count it defaults to 0.

Any idea in which file I can find this try catch block?

johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time Topic Starter
11 years ago
Update: I got the same error when I used (a) the empty Database.mdf file from YAF and (b) existing Database.mdf file.

Steps are same as above:

1. Download latest build from codeplex.

2. Build and install it.

3. Create new users and post few forum posts

Expected: Forum post count to increase

Actual: Forum post count is 0 for all users.

Bug Priority: High

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.0 rc 2
11 years ago
Check the Forums Setting the Default subforum "test forum" has the setting "no post count" enabled. If you disable this setting the posts will be counted
johnk
  • johnk
  • 74.8% (Friendly)
  • YAF All-the-Time Topic Starter
11 years ago
Thank you so much for letting me know. I was browsing through all the sql code trying to find the code :)

I removed the "no count" checkbox from default forum setting and forum posts are been counted correctly. :-d