Statistic Panel: Activity is 0%

Started by Prosoi, September 07, 2008, 04:39:23 AM

Previous topic - Next topic

Prosoi

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:)

greyknight17

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.

Prosoi

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

greyknight17

Is this happening to all the members? Anything in your SMF Error Log?

Try running the upgrade again to see if it helps.

Prosoi

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 :)

Prosoi

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!

Prosoi

PLEASE HELP! I think it's very small, but annoying problem.

Prosoi


greyknight17

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?

Prosoi

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!

greyknight17

Did you see if you an see the activity page for the members before installing any mods (clean upgrade basically)?

Advertisement: