Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Developers' Forum

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #21  
Old 2nd October 2011, 06:43
erosbk erosbk is offline
Senior Member
 
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 36 Times in 30 Posts
Default

** Update: Bug Fix **

index.php must be changed to keep order of year-month in list. (/usr/local/ispconfig/server/conf/awstats/index.php.awstats)

In months with two digits (10, 11, 12) order is broken => 1,10,11,12,2,3...9

Custom key and order by key fixed this bug.

Main post has been updated with modification. It should work ok now, without bugs...

All index.php must be updated in stats folder if someone is using this.

Till, could you update svn please?

Regards

Last edited by erosbk; 2nd October 2011 at 06:52.
Reply With Quote
Sponsored Links
  #22  
Old 2nd October 2011, 10:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I've added this to our bugtracker.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #23  
Old 2nd October 2011, 17:08
erosbk erosbk is offline
Senior Member
 
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 36 Times in 30 Posts
Default

Thanks Falko, this bug also gives 404 when selecting stats for current month, I hope this be updated before release xD

Edit: error with variable names in index.php.awstats. Thread updated.

Last edited by erosbk; 2nd October 2011 at 22:04.
Reply With Quote
  #24  
Old 3rd October 2011, 07:30
erosbk erosbk is offline
Senior Member
 
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 36 Times in 30 Posts
Default

Main thread updated, code added (new variable to format key for future years and keep sort) in index.php.awstats:

...
$orderkey = substr($file,0,4).substr($file,5,2);
if (substr($file,5,2) < 10 )
{
$orderkey = substr($file,0,4)."0".substr($file,5,2);
}
$awprev[$orderkey] = $file;
...

I think that there are no more bugs...
Reply With Quote
  #25  
Old 24th October 2011, 11:07
zbuzanic zbuzanic is offline
Member
 
Join Date: Sep 2011
Location: Zagreb
Posts: 79
Thanks: 43
Thanked 20 Times in 13 Posts
Default

I've updated to latest svn, deleted stats content for one site and run manuallly cron and got 404 again: http://weboteka.net/awstats.jpg
__________________
ISPConfig -> the best open source control panel
Reply With Quote
  #26  
Old 24th October 2011, 11:13
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,202
Thanks: 829
Thanked 5,420 Times in 4,262 Posts
Default

I will check that.

Please be aware that the fixes for 3.0.4 are not developed in trunk (latest), the fixes are in the stable branch and will get merged with trunk only from time to time. The stable branch is:

svn://svn.ispconfig.org/ispconfig3/branches/ispconfig-3.0.4/

so if a bug is reported as fixed here, then it is fixed in the stable branch. To update your install to to svn stable branch, you can get the code like this:

svn export svn://svn.ispconfig.org/ispconfig3/branches/ispconfig-3.0.4

then go to the install folder and run the update.php script.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #27  
Old 24th October 2011, 11:20
zbuzanic zbuzanic is offline
Member
 
Join Date: Sep 2011
Location: Zagreb
Posts: 79
Thanks: 43
Thanked 20 Times in 13 Posts
Default

Yes, I'm aware of branches and I'm using 3.0.4 branch, any ideas what/where should I check?
__________________
ISPConfig -> the best open source control panel
Reply With Quote
  #28  
Old 24th October 2011, 12:15
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,202
Thanks: 829
Thanked 5,420 Times in 4,262 Posts
Default

I think I've found the problem. There was a mismatch in the filnename. Please edit the index.php file in the stats directory and replace:

$aw['aw_renamed_index'] = 'fixedindex.html';

with:

$aw['aw_renamed_index'] = 'awsindex.html';

to see if that solves the problem.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.

Last edited by till; 24th October 2011 at 12:32.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
zbuzanic (24th October 2011)
  #29  
Old 24th October 2011, 12:30
zbuzanic zbuzanic is offline
Member
 
Join Date: Sep 2011
Location: Zagreb
Posts: 79
Thanks: 43
Thanked 20 Times in 13 Posts
Default

Yes, it works now. I tought it was something like that but didn't want to mess with code atm. Thank you .
__________________
ISPConfig -> the best open source control panel
Reply With Quote
  #30  
Old 24th October 2011, 12:32
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,202
Thanks: 829
Thanked 5,420 Times in 4,262 Posts
 
Default

Thanks for testing it! I've uploaded the fixed files to svn.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPconfig 3 - awstats Mouton Tips/Tricks/Mods 99 27th January 2011 10:31


All times are GMT +2. The time now is 13:36.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.