Statistics problem

For bug reports and fixes, installation issues, and new ideas for technical features.

Moderator: SEOW Developers

Post Reply
slamelov
Posts: 18
Joined: Wed 07 Feb 2007 12:42 pm
Contact:

Statistics problem

Post by slamelov »

Hi

I'm running a scorched here:
http://www.halconesrojos.com/seow

But statistics
http://halconesrojos.com/seow/Statistic ... istics.php

does not work well. By example, in the statistics campaign name, there is a 404 error because the link points to http://halconesrojos.com/seow/Statistic ... index.html , but there is not any file in statistics/Marianas folder.

What can be wrong?

Thanks
Mhondoz
Posts: 19
Joined: Thu 30 Aug 2007 5:18 am
Location: Norway
Contact:

Post by Mhondoz »

Hi.

I had a similar problem, and for me it was related to write permission on the folder. The new statistics module generates static HTML pages and places them in a folder with the same name as the theater, so in your example it will try to output the statistic files in Statistics/Marianas.


I am running the server on openSuse Linux, and I fixed the problem by creating manually the folder for the theater, and giving write access to that folder for the webserver user. Then it works nicely, - and much faster than earlier releases which generates the statistics dynamically from the database each time. Just remember to run update here http://halconesrojos.com/seow/Statistic ... istics.php after each mission.
slamelov
Posts: 18
Joined: Wed 07 Feb 2007 12:42 pm
Contact:

Post by slamelov »

It works!, thanks.
=69.GIAP=KOSHKA
Posts: 22
Joined: Mon 27 Jul 2009 10:49 am

Post by =69.GIAP=KOSHKA »

I have similar problem. I tried assigning permissions as suggested here but it's not resolving issue.

When i hit rebuild cache i get partial stats, i can click on pilots and im getting script error, at this point pilot page is created in my sector folder under Statistic page (That would suggest permissions are right)

I'm running wamp on windows 7.

Any suggestions ?
Image
IV/JG7_4Shades
Posts: 2202
Joined: Mon 08 Jan 2007 11:10 pm
Location: Perth, Western Australia

Post by IV/JG7_4Shades »

Hi Koshka,

Maybe you did not wait long enough?

Depending on how many pilots you have and how many missions you have run, rebuilding the cache can take a long time. My recommendation is to hit rebuild, then go and make a cup of coffee.

The rebuild command builds the Missions page in the stats, which is echoed to the screen. Then, in the background, the script rebuilds every Mission Details page and every pilot page. When these are ALL finished, the scripts appends a list of all pages built to the bottom of the Missions page on screen, plus some timing/execution details. The process is not complete until you see all these details at the bottom of the Missions page.

Cheers,
4Shades
IV/JG7_4Shades
SEOW Developer

Image
=69.GIAP=KOSHKA
Posts: 22
Joined: Mon 27 Jul 2009 10:49 am

Post by =69.GIAP=KOSHKA »

S! 4Shades

Although waiting didn't help , you pointed me in right direction :)

By default in WAMP - php ver 5.2.9 you get following setting in php.ini

Code: Select all

max_execution_time = 60
And that was why my rebuild kept on stopping after 60 seconds ... Duh ??? :roll: :roll:

Thank you for help 4Shades :)
Image
IV/JG7_4Shades
Posts: 2202
Joined: Mon 08 Jan 2007 11:10 pm
Location: Perth, Western Australia

Post by IV/JG7_4Shades »

Interesting, my max_execution_time is set to 30 seconds. The Stats code re-sets the execution counter periodically, and it works fine on my PC even for very big campaign stats builds. But that doesn't mean it works on all machines with all variants of PHP, I guess. :?

Glad you found a fix!

Cheers,
4Shades
IV/JG7_4Shades
SEOW Developer

Image
Post Reply