Page 1 of 1
Statistics problem
Posted: Thu 25 Mar 2010 8:09 pm
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
Posted: Fri 26 Mar 2010 3:54 am
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.
Posted: Fri 26 Mar 2010 7:13 am
by slamelov
It works!, thanks.
Posted: Sat 04 Dec 2010 9:16 am
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 ?
Posted: Sat 04 Dec 2010 8:06 pm
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
Posted: Sun 05 Dec 2010 9:43 am
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
And that was why my rebuild kept on stopping after 60 seconds ... Duh ???
Thank you for help 4Shades
Posted: Sun 05 Dec 2010 10:00 am
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