WordPress.org

Ready to get started?Download WordPress

Forums

need help to fix this (3 posts)

  1. vplum44
    Member
    Posted 1 year ago #

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/vplum44/public_html/AikenPetsReunited.org/wp-content/themes/inove/footer.php on line 22 and defined in /home/vplum44/public_html/AikenPetsReunited.org/wp-includes/wp-db.php on line 990

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

  3. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    you could post this in http://wordpress.org/support/theme/inove to alert the theme developer, however, the theme has not been updated in two years ...

    this is the line 22 in footer.php of the 'inove' theme:

    $post_datetimes = $wpdb->get_row($wpdb->prepare("SELECT YEAR(min(post_date_gmt)) AS firstyear, YEAR(max(post_date_gmt)) AS lastyear FROM $wpdb->posts WHERE post_date_gmt > 1970"));

    change it to:

    $post_datetimes = $wpdb->get_row($wpdb->prepare("SELECT YEAR(min(post_date_gmt)) AS firstyear, YEAR(max(post_date_gmt)) AS lastyear FROM $wpdb->posts WHERE post_date_gmt > %s",'1970'));

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags