• doublesharp

    (@doublesharp)


    WordPress 3.9+ and PHP 5.5 now use mysqli, so the following needs to be updated to use $wpdb->escape():

    ./plugins/easy-contact-forms/easy-contact-forms-baseclass.php: mysql_real_escape_string($name);
    ./plugins/easy-contact-forms/easy-contact-forms-baseclass.php: $name = mysql_real_escape_string($name);
    ./plugins/easy-contact-forms/easy-contact-forms-baseclass.php: $name = mysql_real_escape_string($name);
    ./plugins/easy-contact-forms/easy-contact-forms-files.php: $filetype = mysql_real_escape_string($_FILES[$filerequestid]['type']);
    ./plugins/easy-contact-forms/easy-contact-forms-files.php: $Type = mysql_real_escape_string($_uldmap['t']);
    ./plugins/easy-contact-forms/easy-contact-forms-files.php: $fieldname = mysql_real_escape_string($_uldmap['fld']);
    ./plugins/easy-contact-forms/easy-contact-forms-files.php: $filename = mysql_real_escape_string($filename);
    ./plugins/easy-contact-forms/easy-contact-forms-securitymanager.php:		$sessid = mysql_real_escape_string($map['sid']);
    ./plugins/easy-contact-forms/easy-contact-forms-securitymanager.php: $sessid = mysql_real_escape_string($sid['sid']);
    ./plugins/easy-contact-forms/easy-contact-forms-database.php: $item = mysql_real_escape_string($item);
    ./plugins/easy-contact-forms/easy-contact-forms-database.php: $replacement = "'" . mysql_real_escape_string($value) . "'";
    ./plugins/easy-contact-forms/easy-contact-forms-database.php: $update .= $comma . $key . " = '" . mysql_real_escape_string($value) . "'";
    ./plugins/easy-contact-forms/easy-contact-forms-applicationsettings.php: $name = mysql_real_escape_string($map['fld']);
    ./plugins/easy-contact-forms/easy-contact-forms-applicationsettings.php: $value = mysql_real_escape_string($map['a']);
    ./plugins/easy-contact-forms/easy-contact-forms-applicationsettings.php: $group = mysql_real_escape_string($map['undef']);

    https://wordpress.org/plugins/easy-contact-forms/

Viewing 8 replies - 1 through 8 (of 8 total)
  • valeweb

    (@valeweb)

    Hi! Do you mean that editing what you wrote it will work also with WP3.8.3 ?
    If yes, could you please tell me where do I have to change the file and how?
    Regards

    Same error evarywere on my site:
    Warning: mysql_real_escape_string(): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) in /web/htdocs/www.sgnuffitech.it/home/sito/wp-content/plugins/easy-contact-forms/easy-contact-forms-database.php on line 152

    I’ve the same problem !
    WordPress 3.9.1 PHP 5.5

    Warning: mysql_real_escape_string(): No such file or directory in /home/.sites/32/site609/web/schutzhaus/blog/wp-content/plugins/easy-contact-forms/easy-contact-forms-database.php on line 152

    Warning: mysql_real_escape_string(): A link to the server could not be established in /home/.sites/32/site609/web/schutzhaus/blog/wp-content/plugins/easy-contact-forms/easy-contact-forms-database.php on line 152

    $wpdb->escape() is depreciated.

    mysql_real_escape_string() must be replaced to esc_sql()

    Hi,

    I had the same problem.
    I applied the replacement, and it works.
    But a new problem appeared in the “contact form” section in WordPress panel andminsitration.
    I had these message :
    Warning: require_once(/homepages/32/d328899264/htdocs/wp2014/wp-content/plugins/easy-contact-forms/styles//easy-contact-forms-getstyle.php): failed to open stream: No such file or directory in /homepages/32/d328899264/htdocs/wp2014/wp-content/plugins/easy-contact-forms/easy-contact-forms.php on line 554

    Fatal error: require_once(): Failed opening required ‘/homepages/32/d328899264/htdocs/wp2014/wp-content/plugins/easy-contact-forms/styles//easy-contact-forms-getstyle.php’ (include_path=’.:/usr/lib/php5.5′) in /homepages/32/d328899264/htdocs/wp2014/wp-content/plugins/easy-contact-forms/easy-contact-forms.php on line 554

    Can anyone help?

    @nextscripts: your solution really worked for me… thanks a lot… 🙂

    Yes, excuse me, it works for me too.
    But there is a new problem…
    The plugin can’t be found any more on WordPress!
    Or, if you have a link?….
    It will be welcome!

    Hi,

    I have this problem:

    Warning: require(/homepages/35/d405686410/htdocs/nothingbox/www/wp-includes/theme.php): failed to open stream: No such file or directory in /homepages/35/d405686410/htdocs/nothingbox/www/wp-settings.php on line 118

    Fatal error: require(): Failed opening required ‘/homepages/35/d405686410/htdocs/nothingbox/www/wp-includes/theme.php’ (include_path=’.:/usr/lib/php5.5′) in /homepages/35/d405686410/htdocs/nothingbox/www/wp-settings.php on line 118

    I need help please.

    Thanks!!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Incompatible with WordPress 3.9 and PHP 5.5’ is closed to new replies.