WordPress.org

Forums

iNove
Theme not working properly on WordPress 3.9 anymore (3 posts)

  1. mdempfle
    Member
    Posted 1 year ago #

    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

  2. roadsunknown
    Member
    Posted 11 months ago #

    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.

  3. designers.coders
    Member
    Posted 7 months ago #

    @roadsunknown : Thanks a lot man - You're Simply GENIUS ;)

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags

No tags yet.