Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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;

    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 990

    lines 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

    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)