php 8.4 incompatibility
-
On fedora (php 8.4), I get this php warning:
Deprecated: Function mysqli_ping() is deprecated since 8.4, because the reconnect feature has been removed in PHP 8.2 and this function is now redundant in /var/www/html/wordpress/wp-content/plugins/mainwp/class/class-mainwp-db-base.php on line 262
Bypassing the ping-function in class-mainwp-db-base.php on line 262 (by just making it return true), works fine:public static function ping( $link ) { return true; if ( self::use_mysqli() ) { // NOSONAR - required. return \mysqli_ping( $link ); } else { return \mysql_ping( $link ); } }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘php 8.4 incompatibility’ is closed to new replies.