NomisCZ / hlstatsx-community-edition

HLstatsX Community Edition - PHP 7 and GeoIP2 supported
GNU General Public License v2.0
83 stars 48 forks source link

Statistics stopped working #61

Closed TheMrEvgen closed 4 years ago

TheMrEvgen commented 4 years ago

Describe the bug ngnix 2020/07/23 00:09:44 [error] 30863#30863: *27 FastCGI sent in stderr: "PHP message: PHP Warning: Use of undefined constant INCLUDE_PATH - assumed 'INCLUDE_PATH' (this will throw an Error in a future version of PHP) in /var/www/test.game-planet18.ru/hlstats.php on line 123 PHP message: PHP Warning: require(INCLUDE_PATH/class_db.php): failed to open stream: No such file or directory in /var/www/test.game-planet18.ru/hlstats.php on line 123 PHP message: PHP Warning: require(INCLUDE_PATH/class_db.php): failed to open stream: No such file or directory in /var/www/test.game-planet18.ru/hlstats.php on line 123 PHP message: PHP Fatal error: require(): Failed opening required 'INCLUDE_PATH/class_db.php' (include_path='.:/usr/share/php') in /var/www/test.game-planet18.ru/hlstats.php on line 123" while reading response header from upstream, client: 192.145.2.95, server: test.game-planet18.ru, request: "GET /hlstats.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "test.game-planet18.ru"

Environment VDS Linux 4.9.0-12-amd64 #1 SMP Debian 4.9.210-1 (2020-01-20) x86_64 GNU/Linux php info - http://test.game-planet18.ru/info.php mysqld Ver 10.1.44-MariaDB-0+deb9u1 for debian-linux-gnu on x86_64 (Debian 9.11)

TheMrEvgen commented 4 years ago

How to fix?

NomisCZ commented 4 years ago

Hi,

it's a problem with your web server / PHP handler configuration. So check your configuration or reconfigure your server. Maybe you forgot to copy some HLstatsX files to your server. Also check file permissions/owner.

TheMrEvgen commented 4 years ago

The config.php file had different content