Title: errors in log
Last modified: August 30, 2016

---

# errors in log

 *  [djsteveb](https://wordpress.org/support/users/djsteveb/)
 * (@djsteveb)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/errors-in-log-2/)
 * 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://wordpress.org/plugins/tor-exit-nodes-blocker/](https://wordpress.org/plugins/tor-exit-nodes-blocker/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [hqpeak](https://wordpress.org/support/users/hqpeak/)
 * (@hqpeak)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/errors-in-log-2/#post-6661108)
 * 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](https://wordpress.org/support/users/hqpeak/)
 * (@hqpeak)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/errors-in-log-2/#post-6661110)
 * [https://gist.github.com/Slavco/2740fe2d7be17158a456](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.

 * ![](https://s.w.org/plugins/geopattern-icon/tor-exit-nodes-blocker.svg)
 * [Tor Blocker](https://wordpress.org/plugins/tor-exit-nodes-blocker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tor-exit-nodes-blocker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tor-exit-nodes-blocker/)
 * [Active Topics](https://wordpress.org/support/plugin/tor-exit-nodes-blocker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tor-exit-nodes-blocker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tor-exit-nodes-blocker/reviews/)

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [sql](https://wordpress.org/support/topic-tag/sql/)

 * 2 replies
 * 2 participants
 * Last reply from: [hqpeak](https://wordpress.org/support/users/hqpeak/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/errors-in-log-2/#post-6661110)
 * Status: not resolved