Errors in the error log

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
BrotaB
Posts: 3
Joined: 27 Mar 2020, 23:29

Errors in the error log

Postby BrotaB » 27 Mar 2020, 23:35

Hello,
Web-server:APACHE / CENTOS 7
PHP Version:It was 7.2 and i changed it to 7.0 to fix my problem but same
MySQL version:5.7
Amxbans version:6.14.4
PHP message: PHP Notice: Use of undefined constant name - assumed 'name' in /files/view.php on line 116
PHP message: PHP Notice: Use of undefined constant frag - assumed 'frag' in files/view.php on line 117
PHP message: PHP Notice: Use of undefined constant time - assumed 'time' in /filesl/csg
2020/03/27 22:32:30 [error] 19462#19462: *792 FastCGI sent in stderr: "files/view.php on line 73
PHP message: PHP Notice: Undefined index: atac_version in /files/view.php on line 73
PHP message: PHP Notice: Use of undefined constant secure - assumed 'secure' in /files/view.php on line 76
PHP message: PHP Notice: Use of undefined constant sbsrv_version - assumed 'sbsrv_version' in /files/view.php on line 77
PHP message: PHP Notice: Undefined index: sbsrv_version in /files/view.php on line 77
PHP message: PHP Notice: Use of undefined constant hlg_version - assumed 'hlg_version' in /files/view.php on line 78
PHP message: PHP Notice: Undefined index: hlg_version in /files/view.php on line 78
I was using php 7.2 then i got those erros so i searched about its not capable for amxbans so i turned to 7.0 and same problem
I changed from nginx to apache also same problems any idea?

tier69
Posts: 11
Joined: 21 Dec 2019, 00:26

Re: Errors in the error log

Postby tier69 » 01 Apr 2020, 15:43

I think that you should be setting php without error notice level in a file php.ini:
error_reporting = E_ERROR
Good luck

BrotaB
Posts: 3
Joined: 27 Mar 2020, 23:29

Re: Errors in the error log

Postby BrotaB » 02 Apr 2020, 02:05

Hey tier69,
Thank you so much for your reply
Is php notice make any trouble i dont need all my error log get errors
Thanks.

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

Re: Errors in the error log

Postby indianiso1 » 02 Apr 2020, 20:33

Umm, not surely got what was the problem? You should consider turning off error reporting for notices since the code was formelly written for ~php 5.0.
When the new web version will be rolled out v7.0 then all the active PHP versions will be supported (for now 7.2-7.4 if I didn't miss anything)
https://www.php.net/supported-versions.php
https://www.php.net/eol.php

P.S. If there are any other problems why You can't run AMXBans - please report them and community will try to help ;)

BrotaB
Posts: 3
Joined: 27 Mar 2020, 23:29

Re: Errors in the error log

Postby BrotaB » 03 Apr 2020, 00:34

Thank you for replying indianiso1,
I was using php 7.2 then i used php 7.0 i thought its gonna work fine but i heard about 6.14.4 supports php 7

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

Re: Errors in the error log

Postby indianiso1 » 03 Apr 2020, 18:15

but isn't Your AMXBans working at all?


Return to “Support and Help”

Who is online

Users browsing this forum: No registered users and 5 guests