Title: Error reading database
Last modified: August 21, 2016

---

# Error reading database

 *  Resolved [Er_Maqui](https://wordpress.org/support/users/er_maqui/)
 * (@er_maqui)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/error-reading-database/)
 * It’s the plugin still developed?
 * I doesn’t require great changes, or new features for them. The plugin works great
   now, but i have one problem:
 * The plugin are getting an error reading database on each blog who it’s active:
 * “SELECT blog_id, registered, last_updated from wp_blogs where public = 1\tAND
   spam = 0 AND archived = ‘0’ AND deleted = 0 AND blog_id NOT IN (3) ORDER BY path
   asc”
 * It’s a bit molest, because this error it’s triggered several times a minute and
   they are filling my error logs.
 * I think, if investigate a bit, i can resolve by myself at code. But, it can be
   interesting if some developer can upload a fix for all another users.
 * [https://wordpress.org/plugins/diamond-multisite-widgets/](https://wordpress.org/plugins/diamond-multisite-widgets/)

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

 *  Plugin Author [Daniel J. Lewis](https://wordpress.org/support/users/djosephdesign/)
 * (@djosephdesign)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-reading-database/#post-4809803)
 * Hi! I’m helping with this plugin now. Did you already figure out a fix for this
   that I can incorporate into the main plugin?
 *  Thread Starter [Er_Maqui](https://wordpress.org/support/users/er_maqui/)
 * (@er_maqui)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-reading-database/#post-4809804)
 * The query appears to be valid, but, i can’t understand why they are showing the\
   t on the debug.
 * If you see at lines 147, 170, this tab are hardcoded at the query.
 * I cannot understand why wordpress are registering this error, they show them 
   also without the tab, but i think who when i’ve deleted the tab the error appears
   on less cases. The complete line are:
 * [Mon Jun 30 18:35:31 2014] [error] [client *] Error de la base de datos de WordPress
   para la consulta SELECT blog_id, registered, last_updated from wp_blogs where
   public = 1 AND spam = 0 AND archived = ‘0’ AND deleted = 0 AND blog_id NOT IN(
   10) ORDER BY path asc realizada por require(‘wp-blog-header.php’), require_once(‘
   wp-includes/template-loader.php’), include(‘/themes/weaver-ii-pro/tag.php’), 
   weaverii_get_footer, get_footer, locate_template, load_template, require_once(‘/
   themes/weaver-ii-pro/footer.php’), get_sidebar, locate_template, load_template,
   require_once(‘/themes/weaver-ii-pro/sidebar-footer.php’), dynamic_sidebar, call_user_func_array,
   DiamondBL->widget_endView, DiamondBL->render_output
 * I’ve searched the text and they only are at the file diamond-multisite-widgets/
   diamond-bloglist.php.
    Also these file needs a great cleanup, they have a lot
   of unused spaces (Read the file with linux nano for example).
 * I also have another error, but i doesn’t know what plugin produces them. They
   are: [Mon Jun 30 18:37:41 2014] [error] [client *] Request exceeded the limit
   of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’
   to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace.,
   referer:
 * The two errors appears on [http://www.tabletpractico.com/](http://www.tabletpractico.com/)
   or [http://www.iphonepractico.com/](http://www.iphonepractico.com/), for example.
   
   Thanks,
 *  Plugin Author [Daniel J. Lewis](https://wordpress.org/support/users/djosephdesign/)
 * (@djosephdesign)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/error-reading-database/#post-4809805)
 * I removed the tabs and double-spacing in the query and I’m testing it.
 *  Plugin Author [Daniel J. Lewis](https://wordpress.org/support/users/djosephdesign/)
 * (@djosephdesign)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/error-reading-database/#post-4809812)
 * I pushed this fix out in a minor update to 1.8.1.

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

The topic ‘Error reading database’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/diamond-multisite-widgets.svg)
 * [Diamond MultiSite Widgets](https://wordpress.org/plugins/diamond-multisite-widgets/)
 * [Support Threads](https://wordpress.org/support/plugin/diamond-multisite-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/diamond-multisite-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/diamond-multisite-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/diamond-multisite-widgets/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [Daniel J. Lewis](https://wordpress.org/support/users/djosephdesign/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/error-reading-database/#post-4809812)
 * Status: resolved