Thread Starter
tm8228
(@tm8228)
hi, sure, where to send them?
… no, sorry, not in my case.
Search for
$trash_num = $wpdb->get_var($wpdb->prepare(‘SELECT COUNT(*) FROM ‘.$pTable.’ WHERE trash = TRUE));
and
$active_num = $wpdb->get_var($wpdb->prepare(‘SELECT COUNT(*) FROM ‘.$pTable.’ WHERE trash = FALSE));
Should be 3 lines or so above …
Hi,
read this post
http://make.wordpress.org/core/2012/12/12/php-warning-missing-argument-2-for-wpdb-prepare/
and then change in
/wordpress/wp-content/plugins/simple-ads-manager/list.admin.class.php
lines 118 and 119 to
$trash_num = $wpdb->get_var($wpdb->prepare(‘SELECT COUNT(*) FROM ‘.$pTable.’ WHERE trash = %s’, TRUE));
$active_num = $wpdb->get_var($wpdb->prepare(‘SELECT COUNT(*) FROM ‘.$pTable.’ WHERE trash = %s’, FALSE));