WordPress.org

Ready to get started?Download WordPress

Forums

Missing argument 2 for wpdb::prepare() in bordeaux_menu.php (2 posts)

  1. shaifshahin
    Member
    Posted 11 months ago #

    I'm getting warning in my site

    http://martinihouse.ca/catering/
    Warning: Missing argument 2 for wpdb::prepare(), called in /home/barry/public_html/wp-content/themes/bordeaux/footer.php on line 23 and defined in /home/barry/public_html/wp-includes/wp-db.php on line 992
    Warning: Missing argument 2 for wpdb::prepare(), called in /home/barry/public_html/wp-content/themes/bordeaux/functions/bordeaux_menu.php on line 5 and defined in /home/barry/public_html/wp-includes/wp-db.php on line 992

    I checked on my theme code
    For footer:
    $google_loc = $wpdb->get_var($wpdb->prepare("SELECT post_content FROM $wpdb->posts WHERE post_type = 'boderaux_google_loc'"));

    for bordeaux_menu.php

    $count = $wpdb->get_var($wpdb->prepare("SELECT COUNT(id) as Num FROM bordeaux_reservation WHERE approve=''"));

    how can i fix this problem

  2. WPyogi
    Volunteer Moderator
    Posted 11 months ago #

Reply

You must log in to post.

About this Topic