Raised This Month: $51 Target: $400
 12% 

Webpage not working


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 11-15-2012 , 01:36   Webpage not working
Reply With Quote #1

So, i've checked with sb_debug_connection.php

[+] SourceBans "Error Connecting()" Debug starting for server MASKED_IP:27015

[+] Trying to establish UDP connection
[+] UDP connection successfull!
[+] Trying to write to the socket
[+] Successfully requested server info. (That doesn't mean anything on an UDP stream.) Reading...
[+] Got an response! Server:

[+] Trying to establish TCP connection
[+] TCP connection successfull!
[+] Trying to write to TCP socket and authenticate via rcon
[+] Successfully sent authentication request. Reading...
[+] Got an response

Also, i've tried both adding server manualy or adding automatic.
My dashboard and ban list are empty(except the headers), the server can't be queryed (error connecting).
I have played with some functions in config files, also with no success. I increased memory_limit up to 128M with the same result.
I even rececked and reinstalled php (5.2.9 since 5.2 is the required version) with the same result. I basicly did everything that i found on the web, nothing helped.
I have tryed almost everything with no succes.
I've checked, error logs from the tf2 server, but there aren't any. It's adding corectly bans in mysql.
Thankfuly there's a log in mysql,maybe you can help me with it, i suck at this.


This is a direct copy from mysql, so maybe it will come with some extra backslashes or <br> tags.

Message:
Code:
[256] Smarty error: [in page_bans.tpl line 91]: syntax error: unrecognized tag: $ban.player|escape:''html''|stripslashes (Smarty_Compiler.class.php, line 446)<br />
Fatal error on line 1092 in file /xxx/tfbans/includes/smarty/Smarty.class.php
Function:
Code:
/xxx/tfbans/includes/smarty/Smarty.class.php - 1092<br />/xxx/tfbans/includes/smarty/Smarty.class.php - 1814<br />/xxx/tfbans/includes/smarty/Smarty_Compiler.class.php - 2221<br />/xxx/tfbans/includes/smarty/Smarty_Compiler.class.php - 446<br />
At this point i gave up, i don't know what to de anymore, since the error stated that there a syntax error or something like that ...

Please HELP !!!!
EDUTz is offline
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 11-16-2012 , 11:44   Re: Webpage not working
Reply With Quote #2

Sorry for double posting, i see nobody answers here anymore.

Does anyone have a version of the webpanel written with curl and NOT fsockopen ? ? ?
EDUTz is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 11-19-2012 , 09:39   Re: Webpage not working
Reply With Quote #3

Are you using some custom theme for sourcebans?
It might be just the error message adding a tick, but the tag should be
http://code.google.com/p/sourcebans/...ge_bans.tpl#91
Code:
{$ban.player|escape:'html'|stripslashes}
instead of
Code:
{$ban.player|escape:''html''|stripslashes}
Concerning fsockopen, you could try defining BIND_IP in your config.php as your webservers' ip to use the sockt_ api instead.
http://de1.php.net/manual/en/book.sockets.php
Code:
define("BIND_IP", "YOURWEBSERVERIP");
__________________
Peace-Maker is offline
EDUTz
Senior Member
Join Date: Jun 2010
Location: Dracula's Homeland
Old 11-21-2012 , 01:54   Re: Webpage not working
Reply With Quote #4

Holy crap, binding did the trick I've read some other messages here but i thought it's just had to be placed something simmilar in my.cnf

Regarding the other problem, yea, everything is normal, i used both of "default" or "dark" themes, both with the same problem.

Dashboard example:



This also goes for banlist.


EDIT: the errors goes for this pages:
p=admin&c=bans
p=banlist
p=home
N/A


I also noticed the "add ban" button in admin panel doesn't work, also when uploading a demo when banning, i hit "save" and the page doesn't close(if it should do that), but in logs it states that the demo was uploaded. Nevertheless, the "add ban" button doesn't work (althow i have the default admin

I must mention i use the latest version, without any modification. Everything is default

Last edited by EDUTz; 11-21-2012 at 02:01.
EDUTz 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 04:34.


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