PHP 7.3 problem with modernizer

Discuss everything about Xymph's Aseco flavoured server control scripts for TM Forever / classic TMN and for TM² Canyon.

Moderators: Xymph, TM-Patrol

Post Reply
gorn_z34
sunday driver
sunday driver
Posts: 53
Joined: 25 Feb 2019 17:32
Owned TM-games: TMUF

PHP 7.3 problem with modernizer

Post by gorn_z34 » 18 Apr 2021 03:45

I got issue with modernizer, i put a screenshot here: https://ibb.co/JB3vwnW any suggestions?

gorn_z34
sunday driver
sunday driver
Posts: 53
Joined: 25 Feb 2019 17:32
Owned TM-games: TMUF

Re: PHP 7.3 problem with modernizer

Post by gorn_z34 » 21 Apr 2021 16:15

ok this helped:
find in modernizer.inc.php
// ...
if (!function_exists('mysql_insert_id')) {
function mysql_insert_id($res){
global $_db;
return mysqli_insert_id($_db->conn);
}
}
// ...
replace with
// ...
if (!function_exists('mysql_insert_id')) {
function mysql_insert_id($link = null){
global $_db;
return mysqli_insert_id(is_null($link) ? $_db->conn : $link);
}
}
// ...

Post Reply