AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   HLstatsX:CE (https://forums.alliedmods.net/forumdisplay.php?f=156)
-   -   Call to undefined function mysql_connect() (https://forums.alliedmods.net/showthread.php?t=321738)

HiddenConn1 02-26-2020 08:22

Call to undefined function mysql_connect()
 
Code:

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/<snip>/stats.unifiedgaming.net/includes/class_db.php:87 Stack trace: #0 /home/<snip>/stats.unifiedgaming.net/hlstats.php(130): DB_mysql->DB_mysql('localhost', '<snip>_<snip>...', '<snip>', '<snip>', 0) #1 {main} thrown in /home/<snip>/stats.unifiedgaming.net/includes/class_db.php on line 87
Code:

[25-Feb-2020 17:59:42 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; DB_mysql has a deprecated constructor in /home/<snip>/stats.unifiedgaming.net/includes/class_db.php on line 58
[25-Feb-2020 17:59:42 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Table has a deprecated constructor in /home/<snip>/stats.unifiedgaming.net/includes/class_table.php on line 48

I am getting this error when trying to install HLStatsX on my website. :( How can I fix this?

andrepires68 03-15-2020 15:13

Re: Call to undefined function mysql_connect()
 
Hi, this is because you are running on a php version where those functions were replaced with their mysqli* functions. You will have to change those functions to be according with your php version. See https://bitbucket.org/Maverick_of_UC...ble-with-php-7

NomisCZ 03-15-2020 19:09

Re: Call to undefined function mysql_connect()
 
Hello,
PHP 7 and GeoIP2 version: https://github.com/NomisCZ/hlstatsx-community-edition


All times are GMT -4. The time now is 17:05.

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