• Resolved Franky

    (@liedekef)


    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)
  • Plugin Support Bojan Katusic

    (@bojankatusic)

    Hey @liedekef

    Thanks for pointing this out to us.

    I’ve reproduced the PHP Warning. We will have it fixed in the next MainWP Dashboard release.

    Just a note that the code doesn’t actually use mysqli_ping() unless there’s a compatible setup, which are older PHP versions.
    This Warning is mostly informative and doesn’t imply functional issues.

    Plugin Support Bojan Katusic

    (@bojankatusic)

    The fix for this was included in version 5.4.0.20 of the MainWP Dashboard plugin, released on August 19, 2025.

    Thanks for reporting this to us.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘php 8.4 incompatibility’ is closed to new replies.