WordPress.org

Forums

WP-Cron Control
[resolved] Broken in 3.5 (5 posts)

  1. scott swan
    Member
    Posted 2 years ago #

    Missing argument 2 for wpdb::prepare(), called in /public_html/wp-content/plugins/wp-cron-control/wp-cron-control.php on line 291 and defined in <b>/public_html/wp-includes/wp-db.php</b> on line <b>990</b>

    is the error i'm getting

    http://wordpress.org/extend/plugins/wp-cron-control/

  2. Mark de Scande BlogLines
    Member
    Posted 2 years ago #

    I also have the same problem on BlogLines.co.za

    [28-Dec-2012 19:00:01 UTC] PHP Warning:  Missing argument 2 for wpdb::prepare(), called in /home/blogline/public_html/wp-content/plugins/wp-cron-control/wp-cron-control.php on line 291 and defined in /home/blogline/public_html/wp-includes/wp-db.php on line 990
    [28-Dec-2012 19:30:02 UTC] PHP Warning:  Missing argument 2 for wpdb::prepare(), called in /home/blogline/public_html/wp-content/plugins/wp-cron-control/wp-cron-control.php on line 291 and defined in /home/blogline/public_html/wp-includes/wp-db.php on line 990
  3. scott swan
    Member
    Posted 2 years ago #

    This is quite easily fixed by replacing line 291 with

    $wpdb->prepare( "SELECT ID, post_date_gmt FROM $wpdb->posts WHERE post_status = 'future' " , $sql );

  4. Erick Hitter
    Code Wizard
    Plugin Author

    Posted 2 years ago #

    Version 0.7 corrects resolves the PHP warning.

  5. Mark de Scande BlogLines
    Member
    Posted 2 years ago #

    Thank you for the update :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Cron Control
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic