• I receive errors like:
    [Thu Jun 12 10:10:40 2014] [error] [client 127.0.0.1] WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'status timestamp <= 1307977840 and id not in (select redirect_id from wp_wbz404_' at line 1 for query select id from wp_wbz404_redirects where status = 2 status timestamp <= 1307977840 and id not in (select redirect_id from wp_wbz404_logs) made by do_action_ref_array, call_user_func_array, wbz404_cleaningCron

    A closer look shows that line 402 of functions.php seems to be the issue.
    This line is: $query = "select id from " . $wpdb->prefix . "wbz404_redirects where status = " . $wpdb->escape(WBZ404_AUTO) . " status ";

    I believe the fix is: $query = "select id from " . $wpdb->prefix . "wbz404_redirects where status = " . $wpdb->escape(WBZ404_AUTO) . " AND ";

    Thanks.

    https://wordpress.org/plugins/404-redirected/

  • The topic ‘Cron throwing errors in error log’ is closed to new replies.