BuddyDev

Search

[Resolved] Latest PHP version allowed by mediapress file error

  • Participant
    Level: Enlightened
    Posts: 40
    Jaume Aragay on #27923

    Hi there,

    I can’t move from PHP 5.6 to 7.1 or 7.3 because the version compatibility checker says mediapress does not comply with the requirements to do so. This is the message I get:

    FILE: /home/…/wp-content/plugins/mediapress/admin/tools/debug/mpp-debug-output.php
    —————————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE
    —————————————————————————————————————————
    66 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    —————————————————————————————————————————

    Probably it’s a file left there but I need it fixed to move to the newer/last PHP version available.

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #27924

    Hi Jaume,
    You can safely ignore it.

    it is a false psotove.
    here is the complete code

    
    if ( $wpdb->use_mysqli ) {
    	$mysql_ver = @mysqli_get_server_info( $wpdb->dbh );
    } else {
    	$mysql_ver = @mysql_get_server_info();
    }
    

    We use it on the Debug page(status page in dashboard settings) to get mysql server version and it will only be used if mysqli is not being used.

    Regards
    Brajesh

  • Participant
    Level: Enlightened
    Posts: 40
    Jaume Aragay on #27937

    Great! 😀

    I thought it would be something like that… What else! 😉

    Thanks for your fast answer!

    Best regards!

    Jaume.

  • Keymaster
    (BuddyDev Team)
    Posts: 24623
    Brajesh Singh on #27940

    You are welcome 🙂

The topic ‘ [Resolved] Latest PHP version allowed by mediapress file error’ is closed to new replies.

This topic is: resolved