Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: Prosoi on September 07, 2008, 04:39:23 AM

Title: Statistic Panel: Activity is 0%
Post by: Prosoi on September 07, 2008, 04:39:23 AM
Hi!  :)

I upgraded my forum from previous version to Powered by SMF 2.0 Beta 3.1, and now, when I want to see user's activity on forum (http://myforum.com/index.php?action=profile;u=**;sa=statPanel), there's showing 0%, but blue bar seams to be working.

What's problem? Is this a bug? How can I fix it?

Thank you and sorry for my english  O:)
Title: Re: Statistic Panel: Activity is 0%
Post by: greyknight17 on September 07, 2008, 10:25:05 AM
See if this helps:

Go into Admin->Forum Maintenance and run the following:

Optimize all tables to improve performance.
Find and repair any errors.
Recount all forum totals and statistics.
Title: Re: Statistic Panel: Activity is 0%
Post by: Prosoi on September 07, 2008, 09:34:29 PM
Thank you for advice, but it doesn't help.

I went Admin->Forum Maintenance and ran:
Optimize all tables to improve performance.
Find and repair any errors.
Recount all forum totals and statistics.
+ Clear cache

But it's still 0% activity in statPanel
Title: Re: Statistic Panel: Activity is 0%
Post by: greyknight17 on September 07, 2008, 10:09:29 PM
Is this happening to all the members? Anything in your SMF Error Log?

Try running the upgrade again to see if it helps.
Title: Re: Statistic Panel: Activity is 0%
Post by: Prosoi on September 07, 2008, 11:26:08 PM
Yes, it is. For all members - 0% activity. But blue bar is working, and message number too.
Only percents doesn't work :(
Oh, my forum is pretty big and old (many topics and users). So re-updating is very painful procedure :)
Title: Re: Statistic Panel: Activity is 0%
Post by: Prosoi on September 17, 2008, 04:02:40 AM
Somebody can help me?  :'(
I already upgraded my forum to 2.0b4, but it's still 0% activity for all users in threir's StatPanel. :(
I scanned two files: /Themes/default/Profile.template.php and /Sources/Profile-View.php

and din't found anything strange. Except this part of code:


$max_percent = max($max_percent, $row['percentage']);
$context['board_activity'][$row['id_board']] = array(
'id' => $row['id_board'],
'href' => $scripturl . '?board=' . $row['id_board'] . '.0',
'link' => '<a href="' . $scripturl . '?board=' . $row['id_board'] . '.0">' . $row['name'] . '</a>',
'percent' => $row['percentage'],
);


So, is it means, there is should be "percentage" row in my database (in smf_messages table)?
I haven't such row in my database.
And in my phpmyadmin log I saw this message:
QuoteUNIQUE and INDEX keys should not both be set for column `id_topic`

UNIQUE and INDEX keys should not both be set for column `id_member`

More than one INDEX key was created for column `id_member`

Is it normal? Thanks!
Title: Re: Statistic Panel: Activity is 0%
Post by: Prosoi on September 18, 2008, 05:15:34 AM
PLEASE HELP! I think it's very small, but annoying problem.
Title: Re: Statistic Panel: Activity is 0%
Post by: Prosoi on September 22, 2008, 06:37:26 AM
YARRRRR!  ;D
Waiting for your help!
Title: Re: Statistic Panel: Activity is 0%
Post by: greyknight17 on October 05, 2008, 10:14:00 PM
Is this issue resolved? Where are you seeing that code that you copied?

Since you said you upgraded to SMF 2.0 beta 4, I assume you overwrote all your files on the server with the new files right? Did you install any mods? Please attach your Profile.template.php file here.

Also, are there any errors in your forum error log?
Title: Re: Statistic Panel: Activity is 0%
Post by: Prosoi on October 19, 2008, 09:44:32 PM
QuoteIs this issue resolved? Where are you seeing that code that you copied?
Still, unresolved. This code from Profile.template.php

QuoteSince you said you upgraded to SMF 2.0 beta 4, I assume you overwrote all your files on the server with the new files right? Did you install any mods? Please attach your Profile.template.php file here.

Bug appears after upgrade to 2.0 beta 3.1 version (from 1.1.5). All files is new. I've install few mods: Prettier_Quotes, Images On Board. You can see my Profile.template.php in attachment.

There's no any errors in error log, except error login, big attachments and such minor things.

Thank you for help!
Title: Re: Statistic Panel: Activity is 0%
Post by: greyknight17 on October 30, 2008, 09:42:19 PM
Did you see if you an see the activity page for the members before installing any mods (clean upgrade basically)?