Support » Plugin: Olimometer » Missing argument 2 for wpdb::prepare() error

Viewing 2 replies - 1 through 2 (of 2 total)
  • Change line 1303 of olimometer.php

    from
    $olimometer_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM $table_name;" ) );

    to
    $olimometer_count = $wpdb->get_var( $wpdb->prepare( "SELECT COUNT(*) FROM %d;", $table_name ) );

    That should fix it.

    Plugin Author oshingler

    (@oshingler)

    I’ve just rolled this out to the main release. v2.51 should include this fix shortly.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Missing argument 2 for wpdb::prepare() error’ is closed to new replies.