Http error 500 when opening admin.php

Ask questions about errors and problems related to the amxbans project.
The more details you give, the better answer you will receive, READ the sticky topics before posting!

Be sure to post in the right sub forum: Bugs and Security
taf130
Posts: 4
Joined: 16 Sep 2018, 15:35

Http error 500 when opening admin.php

Postby taf130 » 16 Sep 2018, 20:15

Hello,

i have been trying some latest versions of amxbans WEB. For all of them installation goes well with no errors, i can login, but when opening Admin area i get http 500 error or just blank page. Browsers developer console gives the error bellow. Quick googling tells me to set charset to UTF-8, but i am unsure which file i should put it into.

"The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. admin.php"

Running on:

Code: Select all

Web-server: Apache2
PHP Version: 5.5.9
MySQL version: 5.5.61
Amxbans version: 6.14.4

User avatar
indianiso1
Posts: 106
Joined: 16 Oct 2015, 01:59
Contact:

Re: Http error 500 when opening admin.php

Postby indianiso1 » 17 Sep 2018, 10:52

Hi,
can you please open admin.php in text editor and put this code under `session_start()` line?

Code: Select all

ini_set('display_errors', 1);
error_reporting(E_ALL);

taf130
Posts: 4
Joined: 16 Sep 2018, 15:35

Re: Http error 500 when opening admin.php

Postby taf130 » 17 Sep 2018, 17:13

Did that, but no errors were displayed, just blank screen
While refreshing the page several times i noticed some lang undefined error, but didnt manage to copy it as it was gone with next refresh.

User avatar
indianiso1
Posts: 106
Joined: 16 Oct 2015, 01:59
Contact:

Re: Http error 500 when opening admin.php

Postby indianiso1 » 18 Sep 2018, 22:20

and what errors does apache output?

taf130
Posts: 4
Joined: 16 Sep 2018, 15:35

Re: Http error 500 when opening admin.php

Postby taf130 » 18 Sep 2018, 23:37

About admin.php no errors are found in Apache2 logs, just status 200 from access.log:

Code: Select all

"GET /counter-strike/amxbans/admin.php HTTP/1.1" 200 3825 "https://taatla.ee/counter-strike/amxbans/view.php"


And in rare cases admin.php displays message:

Code: Select all

Notice: Undefined index: lang in /var/www/taatla.ee/counter-strike/amxbans/include/config.inc.php on line 80
Notice: Undefined index: loggedin in /var/www/taatla.ee/counter-strike/amxbans/include/access.inc.php on line 38


Opening view.php generates punch of errors though in error.log, but i have no clue if they are related to the admin.php problem:

Code: Select all

[Wed Sep 19 00:39:22.662073 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Undefined variable: result in /var/www/taatla.ee/counter-strike/amxbans/include/rcon_hl_net.inc on line 311
[Wed Sep 19 00:39:22.662135 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Undefined variable: result in /var/www/taatla.ee/counter-strike/amxbans/include/rcon_hl_net.inc on line 311
[Wed Sep 19 00:39:22.662147 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Undefined variable: result in /var/www/taatla.ee/counter-strike/amxbans/include/rcon_hl_net.inc on line 311
[Wed Sep 19 00:39:22.662155 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Undefined variable: result in /var/www/taatla.ee/counter-strike/amxbans/include/rcon_hl_net.inc on line 311
[Wed Sep 19 00:39:22.662199 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Undefined variable: result in /var/www/taatla.ee/counter-strike/amxbans/include/rcon_hl_net.inc on line 311
[Wed Sep 19 00:39:22.693176 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Undefined variable: bufferret in /var/www/taatla.ee/counter-strike/amxbans/include/rcon_hl_net.inc on line 630
[Wed Sep 19 00:39:22.693538 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant amxmodx_version - assumed 'amxmodx_version' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 75
[Wed Sep 19 00:39:22.693555 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant amxmodx_version - assumed 'amxmodx_version' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 75
[Wed Sep 19 00:39:22.693568 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant amxbans_version - assumed 'amxbans_version' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 76
[Wed Sep 19 00:39:22.693573 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant amxbans_version - assumed 'amxbans_version' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 76
[Wed Sep 19 00:39:22.693584 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant metamod_version - assumed 'metamod_version' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 77
[Wed Sep 19 00:39:22.693588 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant metamod_version - assumed 'metamod_version' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 77
[Wed Sep 19 00:39:22.693596 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant hltv_report - assumed 'hltv_report' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 78
[Wed Sep 19 00:39:22.693604 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Undefined index: hltv_report in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 78
[Wed Sep 19 00:39:22.693615 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant atac_version - assumed 'atac_version' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 79
[Wed Sep 19 00:39:22.693623 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Undefined index: atac_version in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 79
[Wed Sep 19 00:39:22.693630 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant secure - assumed 'secure' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 82
[Wed Sep 19 00:39:22.693635 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant sbsrv_version - assumed 'sbsrv_version' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 83
[Wed Sep 19 00:39:22.693640 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Undefined index: sbsrv_version in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 83
[Wed Sep 19 00:39:22.693647 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant hlg_version - assumed 'hlg_version' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 84
[Wed Sep 19 00:39:22.693678 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Undefined index: hlg_version in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 84
[Wed Sep 19 00:39:22.693692 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant type - assumed 'type' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 89
[Wed Sep 19 00:39:22.693703 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant version - assumed 'version' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 90
[Wed Sep 19 00:39:22.693742 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant name - assumed 'name' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 91
[Wed Sep 19 00:39:22.693749 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant map - assumed 'map' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 92
[Wed Sep 19 00:39:22.693753 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant mod - assumed 'mod' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 93
[Wed Sep 19 00:39:22.693757 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant game - assumed 'game' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 94
[Wed Sep 19 00:39:22.693765 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant appid - assumed 'appid' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 95
[Wed Sep 19 00:39:22.693769 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant activeplayers - assumed 'activeplayers' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 96
[Wed Sep 19 00:39:22.693777 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant maxplayers - assumed 'maxplayers' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 97
[Wed Sep 19 00:39:22.693784 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant botplayers - assumed 'botplayers' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 98
[Wed Sep 19 00:39:22.693791 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant dedicated - assumed 'dedicated' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 99
[Wed Sep 19 00:39:22.693804 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant os - assumed 'os' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 100
[Wed Sep 19 00:39:22.693815 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant password - assumed 'password' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 101
[Wed Sep 19 00:39:22.693819 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant secure - assumed 'secure' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 102
[Wed Sep 19 00:39:22.693823 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant sversion - assumed 'sversion' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 103
[Wed Sep 19 00:39:22.693829 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant amx_timeleft - assumed 'amx_timeleft' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 104
[Wed Sep 19 00:39:22.693839 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant mp_maxrounds - assumed 'mp_maxrounds' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 105
[Wed Sep 19 00:39:22.693854 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant mp_timelimit - assumed 'mp_timelimit' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 106
[Wed Sep 19 00:39:22.693866 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant amx_nextmap - assumed 'amx_nextmap' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 107
[Wed Sep 19 00:39:22.693871 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant mp_friendlyfire - assumed 'mp_friendlyfire' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 108
[Wed Sep 19 00:39:22.693877 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant activeplayers - assumed 'activeplayers' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 116
[Wed Sep 19 00:39:22.693891 2018] [:error] [pid 15521] [client 84.52.60.64:59828] PHP Notice:  Use of undefined constant players - assumed 'players' in /var/www/taatla.ee/counter-strike/amxbans/view.php on line 130


Return to “Support and Help”

Who is online

Users browsing this forum: No registered users and 5 guests