• Resolved Texiwill

    (@texiwill)


    Hello,

    This plugin suffers from the following PHP 7 issues as found by PHP Compatibility Checker. Could they be fixed?

    FILE: /usr/share/wordpress/wp-content/plugins/user-photo/user-photo.php
    ---------------------------------------------------------------------------------------------------------------------------------------------
    FOUND 1 ERROR AND 1 WARNING AFFECTING 1 LINE
    ---------------------------------------------------------------------------------------------------------------------------------------------
     103 | WARNING | The use of function mysql_escape_string is discouraged from PHP version 5.3; use mysql_real_escape_string instead
     103 | ERROR   | Extension 'mysql_' is deprecated since PHP 5.5 and deprecated since PHP 5.6 and removed since PHP 7.0 - use mysqli instead.
    ---------------------------------------------------------------------------------------------------------------------------------------------

    THank you ,
    Edward

    https://www.ads-software.com/plugins/user-photo/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,
    this line is a problem also in php5.6 due to deprecated mysql_ .
    Please fix that line with something like that :
    $userid = (int)$wpdb->get_var($wpdb->prepare("SELECT ID FROM $wpdb->users WHERE user_email = %s", $id_or_email));

    thank you,
    Luigi

    Plugin Author Glen Scott

    (@glen_scott)

    Fixed in version 0.9.9

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP 7.0 Compatibility’ is closed to new replies.