Quote:
Originally Posted by koscar12
Why i get this error when i try to go MYWEBSITE/STATS/INSTALL/
Parse error: syntax error, unexpected T_CONST in C:\APM_Setup\htdocs\stats\inc\config.php on line 45
Hellllp.....
|
I just go the exact same error. I was using php 5.2 but I I believe you need at least 5.3 for const. I tried to screw around with php.ini and .htaccess files/settings to get my main site to keep using 5.2 while stats install to use 5.4 but in the end this is what I did and seems to be working:
Code:
//const STEAM_APIKEY = 'whateveryourownkeyis'';
define('STEAM_APIKEY', 'whateveryourownkeyis');
Source:
http://stackoverflow.com/questions/1...sing-constants
So check your php version and update if doesn't break anything else...and you should be good OR change that line of code. Someone with ALOT more experience can probably shed some light on whether this should be ok or not but like I said everything seems ok so far.
UPDATE:
Every things seems to be going well except getting a lot of "spam" in TF2STATS_WEAPONERRORS.log
Going to assume these weapons aren't added...jar_milk, etc..didn't find these in weapons.sql ?
Just looked at the install/sql directory..I see items and weapons.sql are more extensive than in /sql folder. The 'wiki' says to import all sql files from/ sql directory but no mention of files in install/sql directory. I am going to assume to import these sql files (the more complete ones). Do I do anything with Players and Player_backup.sql files? Thanks
UPDATE #2: Anyone else having problems with "webrank" command...says cannot find when I am in the database. !rank works fine.