• lukaspetr

    (@lukaspetr)


    Hello @fakhris, I would like to report that the SEO redirection plugin has this error:

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/lab/nclab.com/wp-content/plugins/seo-redirection/seo-redirection.php on line 661 and defined in /home/lab/nclab.com/wp-includes/wp-db.php on line 1290

    This happens on the WP 4.6.3.

Viewing 1 replies (of 1 total)
  • This line throws a fatal error for me on WP 4.7.2; I keep correcting it but every update breaks it again.

    Current line:

    $wpdb->query($wpdb->prepare(" update $table_name set redirect_from=%s,redirect_to=%s where ID=%d"),$redirect_from,$redirect_to,$ID );

    Fixed line:

    $wpdb->query($wpdb->prepare(" update $table_name set redirect_from=%s,redirect_to=%s where ID=%d",$redirect_from,$redirect_to,$ID));

Viewing 1 replies (of 1 total)
  • The topic ‘Missing argument 2 problem in seo-redirection.php’ is closed to new replies.