• I had an wp update 4.9.2 last night and now this plus in gives an eror message in

    easy-contact-forms-database.php
    line 153 $replacement = “‘” . mysql_real_escape_string($value) . “‘”;

    now the question is if wp fails here or does this plugin needs an update?

    I commented it out and now i can access my wp site again but this is just a temporary workaround.

    I try to reproduce the error message by uncommenting, but fails ???

    the site works again. very weird.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I ran into this with a custom plugin I wrote. I don’t know the details about what changed between wordpress 4.9.1 and 4.9.2, but with this update, mysql_real_escape_string triggers an error. It’s a really common function, especially in code that’s been around for a while, used to guard against SQL injection attacks. The recommended fix is to use $wpdb->prepare() instead (code reference; wpdb class reference (with examples)).

    Hi
    I am not a web developer but maintaining a non-profit site and tried to upgrade to the latest 4.9.4 version of WP and received the following error:
    Warning: mysql_real_escape_string(): Access denied for user ”@’localhost’ (using password: NO) in /home/iswmonline/public_html/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/iswmonline/public_html/wp-content/plugins/easy-contact-forms/easy-contact-forms-database.php on line 152

    Warning: Cannot modify header information – headers already sent by (output started at /home/iswmonline/public_html/wp-content/plugins/easy-contact-forms/easy-contact-forms-database.php:152) in /home/iswmonline/public_html/wp-includes/pluggable.php on line 1216

    How do i access the site and how to fix this problem.
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘form gives warming message after update wp 4.9.2 update’ is closed to new replies.