ramizaher
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Installing WordPress
In reply to: Missing Argument 2 for wpdb::prepare()Nope didnt try the not showing error
Here is the e_posts
// get excluded post IDs... $e_posts = get_option('nofutureposts_posts'); if ( empty($e_posts) ) $e_posts = 0;$res = $wpdb->get_results($wpdb->prepare($sql)); foreach ( $res as $r ) $e_posts .= ','.$r->ID;Forum: Installing WordPress
In reply to: Missing Argument 2 for wpdb::prepare()Hey
I would appreciate it if anyone can help me fixing the issue here
ERROR
Warning: Missing argument 2 for wpdb::prepare(), called in /home/!@#$%^/public_html/wp-content/plugins/no-future-posts/no-future-posts.php on line 74 and defined in /home/!@#$%^/public_html/wp-includes/wp-db.php on line 990 Warning: Missing argument 2 for wpdb::prepare(), called in /home/!@#$%^/public_html/wp-content/plugins/no-future-posts/no-future-posts.php on line 81 and defined in /home/!@#$%^/public_html/wp-includes/wp-db.php on line 990lines between 74 and 81
// set future posts $sql = "UPDATE $tposts SET post_status = 'publish' WHERE post_status = 'future' AND id NOT IN ($e_posts)"; $wpdb->query($wpdb->prepare($sql)); // reset excluded posts $sql = "UPDATE $tposts SET post_status = 'future' WHERE id IN ($e_posts) AND post_date > now()"; $wpdb->query($wpdb->prepare($sql)); NoFuturePosts::update_count(); }please let me know how to fix it, Thanks
Forum: Fixing WordPress
In reply to: "Invalid argument supplied for foreach() in" "post.php on line 3588"i found deactivating “WordPress Shortcodes” plugin fixes it, but you reactivating it wont fix it ! also there is lots of plugins stopped working ! but they dont give any errors !
Viewing 3 replies - 1 through 3 (of 3 total)