Notifications
Clear all

[3.4.2] "Re-calculate Site Statistics" does not work

11 Posts
7 Users
0 Reactions
4,744 Views
(@tracer)
Posts: 5
Active Member
Topic starter
 

eFiction version: 3.4.2
Modifications: SMF bridge, UTF-8 support, tinyMCE 3

Problem:
"Archive Maintenance" > "Re-calculate Site Statistics" does not work properly.

Solution:
Replace code in adminmaintenance.php

	<li><a href="'admin.php?action=maintenance&amp;maint=panels'>"._STATS."</a>" <A HREF=""#"" class="pophelp">[?]<span>"._HELP_STATS."</span></A></li>
<li><a href="'admin.php?action=maintenance&amp;maint=panels'>"._PANELORDER."</a>" <A HREF=""#"" class="pophelp">[?]<span>"._HELP_PANELORDER."</span></A></li>

with this:

	<li><a href="'admin.php?action=maintenance&amp;maint=stats'>"._STATS."</a>" <A HREF=""#"" class="pophelp">[?]<span>"._HELP_STATS."</span></A></li>
<li><a href="'admin.php?action=maintenance&amp;maint=panels'>"._PANELORDER."</a>" <A HREF=""#"" class="pophelp">[?]<span>"._HELP_PANELORDER."</span></A></li>

(notice fixed link "admin.php?action=maintenance&amp;maint=stats")


 
Posted : 02/05/2008 2:55 am
(@marauder-by-midnight)
Posts: 56
Trusted Member
 

When I make the change, re-calculate site statistics doesn't work. It just says "Archive Maintenance". When I leave it as it is ("panels"), it works and says "Action is successful".


 
Posted : 03/05/2008 11:29 pm
(@tracer)
Posts: 5
Active Member
Topic starter
 

Yes, when link is set to "panels" eFiction says "Action is successful" but it perfroms wrong action and does not update statistics.


 
Posted : 03/05/2008 11:44 pm
(@marauder-by-midnight)
Posts: 56
Trusted Member
 

Ah I see. Yeah, for some reason had 4 series listed when I should have none.

Thanks for the correction. πŸ™‚ Very astute


 
Posted : 03/05/2008 11:45 pm
(@jaded)
Posts: 63
Trusted Member
 

This fixed a problem I was also having. Thank you very much!


 
Posted : 06/05/2008 1:25 pm
(@tammy)
Posts: 2577
Member Moderator
 

Confirmed. Will be fixed in next update.


 
Posted : 07/05/2008 1:51 am
(@julieann)
Posts: 60
Trusted Member
 

Thanks for the heads-up on the typo. I also found that in this same file that the write output line was not include for the recalculating of stats:

Find:

		dbquery("UPDATE ".TABLEPREFIX."fanfiction_news SET comments = '".$n['count']."' WHERE nid = '".$n['nid']."' LIMIT 1");
}
}
else if($maint == "panels") {

And insert:

		dbquery("UPDATE ".TABLEPREFIX."fanfiction_news SET comments = '".$n['count']."' WHERE nid = '".$n['nid']."' LIMIT 1");
}
$output .= write_message(_ACTIONSUCCESSFUL);
}
else if($maint == "panels") {

This will cause "The action was successful." to print out when the action is completed.


Julieann

Running 3.4.3 bridged with SMF and Coppermine
Mods: Challenges, cpg-art (not working), Limit Summary Length, Bio to Prefs, Top 20 instead of 10
Wants: Move Betareader to Prefs, Twitter
Gatchaman Fanfic Archive

 
Posted : 23/05/2008 1:46 am
(@julieann)
Posts: 60
Trusted Member
 

Recalculating statistics looks to be fixed with 3.4.3. The only thing that it doesn't do when it runs is to print out the words "The action was successful.", which can be fixed with the code I posted in the above post. That part is really cosmetic anyway. At least the stats are coming out correct now. πŸ™‚


Julieann

Running 3.4.3 bridged with SMF and Coppermine
Mods: Challenges, cpg-art (not working), Limit Summary Length, Bio to Prefs, Top 20 instead of 10
Wants: Move Betareader to Prefs, Twitter
Gatchaman Fanfic Archive

 
Posted : 28/06/2008 5:38 pm
(@zxfactor)
Posts: 22
Eminent Member
 

If I make the changes listed below, will that fix the problem with "Reviewers:" Stats.. I have to go into Archive Maintenance and recalculate my stats in order to see the correct numbers for  "Reviewers:" Stats.. and after a 60 mins or so it goes back to some number that isn't correct?

eFiction version: 3.4.2
Modifications: SMF bridge, UTF-8 support, tinyMCE 3

Problem:
"Archive Maintenance" > "Re-calculate Site Statistics" does not work properly.

Solution:
Replace code in adminmaintenance.php

	<li><a href="'admin.php?action=maintenance&amp;maint=panels'>"._STATS."</a>" <A HREF=""#"" class="pophelp">[?]<span>"._HELP_STATS."</span></A></li>
<li><a href="'admin.php?action=maintenance&amp;maint=panels'>"._PANELORDER."</a>" <A HREF=""#"" class="pophelp">[?]<span>"._HELP_PANELORDER."</span></A></li>

with this:

	<li><a href="'admin.php?action=maintenance&amp;maint=stats'>"._STATS."</a>" <A HREF=""#"" class="pophelp">[?]<span>"._HELP_STATS."</span></A></li>
<li><a href="'admin.php?action=maintenance&amp;maint=panels'>"._PANELORDER."</a>" <A HREF=""#"" class="pophelp">[?]<span>"._HELP_PANELORDER."</span></A></li>

(notice fixed link "admin.php?action=maintenance&amp;maint=stats")


 
Posted : 28/07/2008 1:26 am
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

Can someone please check and see if this is still an issue with 3.5? Thank you!


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 07/04/2009 4:53 am
Jan_AQ
(@jan_aq)
Posts: 1300
Noble Member
 

No response... assumed solved.


Whoever said nothing is impossible never tried slamming a revolving door.

url: https://www.potionsandsnitches.org/fanfiction
php: 7.4.33 msql: 5.6.51-community GPL
efic version: 3.5.5 latest patches: yes
bridges: none mods: challenges, tracker, story end, beta, word

 
Posted : 23/11/2009 7:53 pm
Share: