Page 1 of 1

Setting Language

Posted: Sun 25 May 2008 3:55 pm
by Goanna
Hi all,
I'm in the process of rebuilding my server and have got things pretty much up and running. My problem is with the stats - it would appear that I have to set the language somewhere, but for the life of me I can't get it to work. Currently my stats page is blank. In the MP-Statistics.php file the line that seems to be causing me grief is

Code: Select all

//Load the language localization assembly, e.g. 'English.lang'.
$L = LoadLanguage();
Should I be changing something here and if so what's the correct syntax.


running MP 4. 405, stats 1.94, Aces dbase on apache 2.0.54, php 5.0.4 and mysql 4.1.2

Cheers

Goanna

Posted: Sun 25 May 2008 9:41 pm
by IV/JG7_4Shades
Hi Goanna,

The language files are stored in the Statistics folder. You choose your language by editing the Statistics metadata file (also in the Statistics folder).

If your Statistics pages are blank, I would suspect the database configuration is at fault somehow.

Cheers,
4Shades

Posted: Mon 26 May 2008 3:42 am
by Goanna
Hi Shades,
hmmm, something strange happening here :roll: All seems to be working ok except for stats, so I deleted the stats folder and installed the 1.83 stats and all worked ok - got the stats page up with the initialised campaign. So then I deleted the stats folder and installed the 1.94 stats and got the blank page again.

Off to investigate some more - will report later

Cheers

Goanna

Posted: Tue 27 May 2008 4:50 am
by Goanna
well it's got me buggered, if I delete the statistics folder and replace with the 1.83 stats folder I get this;

Image


All as it should be, if I then delete the statics folder and replace with the 1.94 stats folder, I get a blank page.

If I edit the MP-Statistics.php and do this

Code: Select all

//Load the language localization assembly, e.g. 'English.lang'.
//$L = LoadLanguage(); 
Then I get this;

Image

Which is understandable seeing as there are lots of reference to $L which I just remarked out, but at least I'm getting something.

Everything else works as it is supposed to, and as this setup is only for me to do SE maps/sectors on it's not a real biggy if there are no stats. Puzzling is all :-)

Cheers

Goanna

Posted: Sun 01 Jun 2008 6:55 am
by IV/JG7_4Shades
Hey Goanna,

You are using PHP5 with "simple_xml" extension loaded, right?

Cheers,
4Shades

Posted: Sun 01 Jun 2008 4:30 pm
by Goanna
Hi Shades
Running PHP Version 5.0.4, dunno about "simple xml", had to install the xml packages some time ago to get rFactor stats going, it parses xml files.

info.php tells me;

libXML support active
libXML Version 2.6.21
libXML streams enabled

xml
XML Support active
XML Namespace Support active
EXPAT Version expat_1.95.8


xmlrpc
core library version xmlrpc-epi v. 0.51
php extension version 0.51
author Dan Libby
homepage http://xmlrpc-epi.sourceforge.net
open sourced by Epinions.com


Cheers

Goanna

Posted: Sun 01 Jun 2008 10:07 pm
by IV/JG7_4Shades
Hi Goanna,

SimpleXML is a different product. Here is an excerpt from my php_info() dump:
SimpleXML
Simplexml support enabled
Revision $Revision: 1.151.2.22.2.35 $
Schema support enabled
Without this installed, Statistics v1.85+ will not work. I thought that SimpleXML was available in PHPv5 by default, but you may have to enable the extension.

Cheers,
4S

Posted: Mon 02 Jun 2008 3:44 am
by Goanna
rgr that Shades, will dig around and see what I can come up with.

Cheers

Goanna