Raised This Month: $ Target: $400
 0% 

[TF2 Stats] With Web Ranking and Item Logger [v9.1.0]


Post New Thread Reply   
 
Thread Tools Display Modes
hextasy
Member
Join Date: Oct 2009
Location: Rochester, NY
Old 02-16-2010 , 03:32   Re: [TF2 Stats] With Web Ranking and Item Logger [v6.1/6.5.5]
Reply With Quote #381

nevermind it, I didn't have my database config set

but I'm still having problems. The in command game 'webrank' opens up a window that 404's.
Quote:
[Tue Feb 16 02:28:53 2010] [error] [client 67.247.91.17] File does not exist: /var/www/html/statsid/STEAM_0:1:9663453
[Tue Feb 16 02:28:53 2010] [error] [client 67.247.91.17] File does not exist: /var/www/html/var
I assume this has something to do with the .httaccess file.

ideas?
__________________
hextasy is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 02-16-2010 , 04:14   Re: [TF2 Stats] With Web Ranking and Item Logger [v6.1/6.5.5]
Reply With Quote #382

Quote:
Originally Posted by hextasy View Post
nevermind it, I didn't have my database config set

but I'm still having problems. The in command game 'webrank' opens up a window that 404's.


I assume this has something to do with the .httaccess file.

ideas?
It's broken and needs fixing.
__________________
DarthNinja is offline
hextasy
Member
Join Date: Oct 2009
Location: Rochester, NY
Old 02-16-2010 , 04:20   Re: [TF2 Stats] With Web Ranking and Item Logger [v6.1/6.5.5]
Reply With Quote #383

oh hey, thanks for the quick response. I got it working with a bit of tweaking.

Another config error on my part I just added a trailing / to the end of my rank_webrankurl in tf/cfg/tf2-stats.cfg and a bit of tweaking to the a href tags in the header/footers and a couple of the mian pages (player_ranking.php for example) Nothing too major, I just had to sit and think about it a while

seems to be working just dandy now.
__________________
hextasy is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Old 02-17-2010 , 16:37   Re: [TF2 Stats] With Web Ranking and Item Logger [v6.1/6.5.5]
Reply With Quote #384

Quote:
Originally Posted by DarthNinja View Post
Cool.



Common enough mistake, just takes a little trouble shooting.

Heres the fix (for anyone else that doesn't know):


Double brackets end the file, anything after is ignored.
Image got deleted, can you re-upload again please
`666 is offline
gnarf
Junior Member
Join Date: Feb 2010
Old 02-18-2010 , 03:09   Re: [TF2 Stats] With Web Ranking and Item Logger [v6.1/6.5.5]
Reply With Quote #385

Can anyone link or give me directions like they would their grandma? I've got zero experience with mysql (installed it tonight just for this) and only slightly more with php/apache. I've tried to modify settings.php and do all the steps in the first post but I get "DB Query failed" on the main page and none of the other pages load. For top10 it redirects to top.php but the included file is top10.php going to top10.php manually i get "Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /var/www/top10.php on line 138"

http://idle.no-ip.org is where its hosted, the gameserver and webserver are the same box
gnarf is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 02-18-2010 , 03:18   Re: [TF2 Stats] With Web Ranking and Item Logger [v6.1/6.5.5]
Reply With Quote #386

Quote:
Originally Posted by gnarf View Post
Can anyone link or give me direction
"DB Query failed" means the php page cannot find the database.
Make sure you have everything posted correctly in the config.
If you do, your server may have connection issues.

Need more info on your (web)server/config etc.

Note: you'll also get that error if the database you have the page connecting to has nothing in it.
This would be caused by an issue with the plugin connecting to the mysql server.

Make sure there is ranking data in the database, if not, check the plugin.
If the plugin has ranking data but the database doesnt, the plugin is using sqlite on the server: Check your plugin config.
__________________
DarthNinja is offline
eraserhead
Veteran Member
Join Date: Nov 2009
Old 02-18-2010 , 08:50   Re: [TF2 Stats] With Web Ranking and Item Logger [v6.1/6.5.5]
Reply With Quote #387

Quote:
Originally Posted by gnarf View Post
Can anyone link or give me directions like they would their grandma?
I made a guide that should be easy to follow for everyone. Here it is: https://forums.alliedmods.net/showpo...&postcount=152
eraserhead is offline
Send a message via Skype™ to eraserhead
`666
AlliedModders Donor
Join Date: Jan 2006
Old 02-18-2010 , 13:00   Re: [TF2 Stats] With Web Ranking and Item Logger [v6.1/6.5.5]
Reply With Quote #388

thanks for the tutorial.
`666 is offline
gnarf
Junior Member
Join Date: Feb 2010
Old 02-18-2010 , 13:12   Re: [TF2 Stats] With Web Ranking and Item Logger [v6.1/6.5.5]
Reply With Quote #389

Yes thank you very much

however

Code:
Load Errors:
[TF2] Player Stats: Error detected in plugin startup (see error logs)
sm plugins unload 23
[SM] Plugin [TF2] Player Stats unloaded successfully.
sm plugins refresh
Failed to connect: [2002]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
L 02/18/2010 - 12:05:19: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 02/18/2010 - 12:05:19: [SM] Displaying call stack trace for plugin "n1g-tf2-stats.smx":
L 02/18/2010 - 12:05:19: [SM]   [0]  Line 2915, C:\sourcemod compile\addons\sourcemod\scripting\n1g-tf2-stats.sp::createdbtables()
L 02/18/2010 - 12:05:19: [SM]   [1]  Line 189, C:\sourcemod compile\addons\sourcemod\scripting\n1g-tf2-stats.sp::OnPluginStart()
the last two lines puzzle me as I'm using a linux server.
gnarf is offline
hextasy
Member
Join Date: Oct 2009
Location: Rochester, NY
Old 02-18-2010 , 13:42   Re: [TF2 Stats] With Web Ranking and Item Logger [v6.1/6.5.5]
Reply With Quote #390

compile the plugin from source, see if that resolves
__________________
hextasy is offline
Reply



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


All times are GMT -4. The time now is 06:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode