Missing argument 2 for wpdb::prepare()
-
hi, i’m getting this warning:
Warning: Missing argument 2 for wpdb::prepare(), called in /wp-content/plugins/download-monitor/uploader.php on line 244 and defined in /wp-includes/wp-db.php on line 990
as i read here, it’s not the proper way use prepare for such usage, but i’m so noob i don’t know how to call the query directly, as there are no inputs.
could it be from
$total_results = $wpdb->prepare( "SELECT COUNT(id) FROM $wp_dlm_db;" );
to
$total_results = $wpdb->query( "SELECT COUNT(id) FROM $wp_dlm_db;" );
? thanks in advance. if it does solve, hth
https://www.ads-software.com/extend/plugins/download-monitor/
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Missing argument 2 for wpdb::prepare()’ is closed to new replies.