Support » Theme: iNove » Theme not working properly on WordPress 3.9 anymore

  • Theme is not working properly on WordPress 3.9 anymore.

    Since the last update the following error appears:

    Warning: Missing argument 2 for wpdb::prepare(), called in /home/httpd/vhosts/tinywebgallery.com/httpdocs/blog/wp-content/themes/inove/footer.php on line 22 and defined in /home/httpd/vhosts/tinywebgallery.com/httpdocs/blog/wp-includes/wp-db.php on line 1147

    Best, Michael

Viewing 2 replies - 1 through 2 (of 2 total)
  • Update the line 22 in footer.php 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 > 1970", null));

    Basically, add ,null to send a null parameter as the second argument of the prepare function.

    @roadsunknown : Thanks a lot man – You’re Simply GENIUS 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Theme not working properly on WordPress 3.9 anymore’ is closed to new replies.