• found these in error log with my wp / bp / multi-site setup:
    [18-Oct-2015 21:10:44 UTC] 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 ” at line 1 for query SELECT * FROM wp_1_blocker WHERE ip= made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, check_stealth, match_address
    [18-Oct-2015 21:10:44 UTC] 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 ” at line 1 for query SELECT * FROM wp_1_blocker WHERE ip= made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, tor_read_content, match_address
    [18-Oct-2015 21:10:44 UTC] 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 ” at line 1 for query SELECT * FROM wp_1_blocker WHERE ip= made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, tor_post_comments, match_address
    [18-Oct-2015 21:10:44 UTC] 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 ” at line 1 for query SELECT * FROM wp_1_blocker WHERE ip= made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, tor_subscription, match_address
    [18-Oct-2015 21:10:44 UTC] 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 ” at line 1 for query SELECT * FROM wp_1_blocker WHERE ip= made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, tor_post_request_deny, match_address
    [18-Oct-2015 21:10:44 UTC] 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 ” at line 1 for query SELECT * FROM wp_1_blocker WHERE ip= made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, tor_block_requests, match_address
    [18-Oct-2015 21:20:12 UTC] 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 ” at line 1 for query SELECT * FROM wp_1_blocker WHERE ip= made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, check_stealth, match_address
    [18-Oct-2015 21:20:12 UTC] 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 ” at line 1 for query SELECT * FROM wp_1_blocker WHERE ip= made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, tor_read_content, match_address
    [18-Oct-2015 21:20:12 UTC] 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 ” at line 1 for query SELECT * FROM wp_1_blocker WHERE ip= made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, tor_post_comments, match_address
    [18-Oct-2015 21:20:12 UTC] 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 ” at line 1 for query SELECT * FROM wp_1_blocker WHERE ip= made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, tor_subscription, match_address
    [18-Oct-2015 21:20:13 UTC] 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 ” at line 1 for query SELECT * FROM wp_1_blocker WHERE ip= made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, tor_post_request_deny, match_address
    [18-Oct-2015 21:20:13 UTC] 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 ” at line 1 for query SELECT * FROM wp_1_blocker WHERE ip= made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), call_user_func_array, tor_block_requests, match_address

    There are a bunch of these. Have not checked my single wp installs yet to see if it’s affecting all wp installs.

    https://www.ads-software.com/plugins/tor-exit-nodes-blocker/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author hqpeak

    (@hqpeak)

    This errors could be caused by the following scenario:
    1. remote address could not be resolved
    2. Forwarded for header is sent but it is empty

    Anyway this is case scenario that should not rise errors. Fast fix would be to add ” ( single quotes ) around ip variable and query will return an empty result e.g. not found. If this is the case all the time then check if your php is able to resolve client remote ip.

    Plugin Author hqpeak

    (@hqpeak)

    https://gist.github.com/Slavco/2740fe2d7be17158a456 here it is fixed version. Just replace the plugin torblocker.php with the content of the gist.

    edit: changed link for the gist. This is the right one. replace torblocker.php with content of this file.

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘errors in log’ is closed to new replies.