Unfortunately, it doesn’t solve for me. Any other idea ?
hi lelebart
$total_results = $wpdb->prepare( “SELECT COUNT(‘%s’) FROM $wp_dlm_db;”, id );
Just a little thing more, when I add a download to a post, the list to choose the output format doesn’t work, perhaps someone has an idea? but it’s just a detail.
good luck
Thanks a lot, @wp_newbe the chang works for me. But it woul be nice to include file name and line number the next time.
I am still seeing problems:
New downloads are not inserted into post when (Insert) is pressed in Download-Monitor. I had to look thru the download list and then select Insert there to get the download inserted into my post.
regards
Josef
Actually, if you read carefully, the file name and line number is just in the first lelebart’s post.
thanks @wp_newbe, dunno if you missed the quotes or bbpress removed them, here the line in use on my site
$total_results = $wpdb->prepare( "SELECT COUNT('%s') FROM $wp_dlm_db;", "id" );
about the insert button, i have the same issue: it doesn’t work, even with the default value. atm i switch to the other tab, search for the just-made download entry and insert from there: it does work with the format select too. (maybe a jQuery problem? new thread is coming.)
A similar problem here after WP 3.6.1 update.
How can I fix that?
There are two instances of incorrect $wpdb->prepare usage in the current version – this will be fixed in the next minor release.
Turn off WP_DEBUG/error reporting if you have a production site.
Actually scrub that, there are no issues in 1.1.2. If you are using legacy, you’ll need to search the source for the $wpdb->prepare statements which have no arguments and fix them manually.