• Resolved Grégory Viguier

    (@greglone)


    Hello.

    There’s an error when posting a comment.
    mysql_query() and mysql_query_row() have been deprecated since WordPress 3.9.

    Fix:
    subscribe-to-comments-reloaded.php Line 945, replace this:

    // Get the parent comment author email so we can search for any Replies Only subscriptions
    $parent_comment_author_email_query = mysql_query( "SELECT <code>comment_author_email</code> FROM $wpdb->comments WHERE <code>comment_ID</code> = '$parent_comment_id'" );
    $parent_comment_author_email       = mysql_fetch_row( $parent_comment_author_email_query );
    $parent_comment_author_email       = "\_stcr@\_" . $parent_comment_author_email[0];

    with this:

    // Get the parent comment author email so we can search for any Replies Only subscriptions
    $parent_comment_author_email = "\_stcr@\_" . get_comment_author_email( $parent_comment_id );

    Cheers 🙂
    Greg

    https://wordpress.org/plugins/subscribe-to-comments-reloaded/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello @greg

    Thank you for your feedback. We are going to make the changes, debug, test and then upload the fix.

    Thank you for making this plugin better.

    Regards.!!

    thatsgame1

    (@thatsgame1)

    Can you tell me if this has been fixed in latest version yet? I run WP 3.9.

    I have run some test using mysql_query() and mysql_query_row(). The plugin works on WP 3.9.

    I am developing a new feature running WP 3.9 and this is not causing any trouble, though I would change it in order to get rid of the deprecated functions.

    You can update to the newest version of WP.

    Regards.!!

    Hello, This fix is now available on version 140515. Please update.

    Regards.!!

    Thread Starter Grégory Viguier

    (@greglone)

    Thanks, Reedyseth!

    Thanks to you @ScreenfeedFr for caught it out !!

    Best Regards.!!

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

The topic ‘Error since WP 3.9’ is closed to new replies.