WordPress.org

Forums

404 Redirected
Cron throwing errors in error log (1 post)

  1. SoN9ne
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • 404 Redirected
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags