Title: error in wp-db.php and pluggable.php
Last modified: August 19, 2016

---

# error in wp-db.php and pluggable.php

 *  [weenskee](https://wordpress.org/support/users/weenskee/)
 * (@weenskee)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/error-in-wp-dbphp-and-pluggablephp/)
 * Hi…
 * I just uploaded the version 2.3.2 to my host and this message was shown:
 * Warning: error_log() has been disabled for security reasons in /www/freeweb7.
   com/w/e/e/weenskee/htdocs/wp-includes/wp-db.php on line 163
 * Warning: Cannot modify header information – headers already sent by (output started
   at /www/freeweb7.com/w/e/e/weenskee/htdocs/wp-includes/wp-db.php:163) in /www/
   freeweb7.com/w/e/e/weenskee/htdocs/wp-includes/pluggable.php on line 391
 * what do I do to solve this??
 * Thanks…

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

 *  [Huda Toriq](https://wordpress.org/support/users/hudatoriq/)
 * (@hudatoriq)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/error-in-wp-dbphp-and-pluggablephp/#post-672916)
 * Maybe it’s because error_log() function is disabled by your server administrator.
   Not all server faces this problem.
 * And I think it’s a bug in 2.3.2. WordPress should check whether the function 
   is enabled by the server or not before calling it. Try commenting the error_log()
   call on wp-db.php line 163 until future fixes.
 * e.g.:
    /* error_log($error_str, 0); */
 *  [aidanacker](https://wordpress.org/support/users/aidanacker/)
 * (@aidanacker)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/error-in-wp-dbphp-and-pluggablephp/#post-672965)
 * Thanks for the advice. Commenting the error log out worked for me. I think some
   web hosts don’t enable the function as you said.
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/error-in-wp-dbphp-and-pluggablephp/#post-673002)
 * re: host [http://www.zymic.com](http://www.zymic.com)
 * Confirming this change (commenting out line 163 in /wp-includes/wp-db.php at 
   2.3.2) fixed the problem when using host [http://www.zymic.com](http://www.zymic.com)
   and allowed installation of WordPress to complete successfully.
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/error-in-wp-dbphp-and-pluggablephp/#post-673010)
 * re: [http://www.110mb.com](http://www.110mb.com)
 * Confirming this change (commenting out line 163 in /wp-includes/wp-db.php at 
   2.3.2) fixed the problem when using host [http://www.110mb.com](http://www.110mb.com)
   and allowed installation of WordPress to complete successfully.
 *  [rankspace](https://wordpress.org/support/users/rankspace/)
 * (@rankspace)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/error-in-wp-dbphp-and-pluggablephp/#post-673013)
 * This change had no effect for me regarding this error. I did find extra lines
   beneath the final ?> in my functions.php. Removal of these corrected the problem.
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/error-in-wp-dbphp-and-pluggablephp/#post-673014)
 * [@rankspace](https://wordpress.org/support/users/rankspace/) – which functions.
   php file did you edit? There’s more than one.
 *  [digthedupe](https://wordpress.org/support/users/digthedupe/)
 * (@digthedupe)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/error-in-wp-dbphp-and-pluggablephp/#post-673019)
 * The same problem on 1 hosting on half of my WordPress 2.3.2 blogs:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/ga/public_html/wp-settings.php:266) in /home/ga/public_html/wp-includes/
   pluggable.php on line 341
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/gasyoun/public_html/esiod.com/wp-content/themes/illacrimo/functions.
   php:24) in /home/ga/public_html/ga/wp-includes/pluggable.php on line 391
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/error-in-wp-dbphp-and-pluggablephp/#post-673020)
 * [http://wordpress.org/support/topic/152736?replies=3](http://wordpress.org/support/topic/152736?replies=3)
 * dont crosspost, DigTheDupe
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/error-in-wp-dbphp-and-pluggablephp/#post-673021)
 * The resolution (comment out line 163 in wp-includes/wp-db.php at 2.3.2) worked
   on a [http://www.plus.net](http://www.plus.net) hosted account. Interestingly,
   just an internal server error message was displayed before the fix was applied.
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/error-in-wp-dbphp-and-pluggablephp/#post-673040)
 * The fix (comment out line 163 in wp-includes/wp-db.php at **2.3.3**) worked on
   a [http://www.daily.co.uk](http://www.daily.co.uk) hosted account. Interestingly,
   attempting the wp-admin/install.php, the site just kept trying and trying, then
   after 2 or 3 minutes, an “Internal Server Error” message was displayed. Applying
   the fix allowed the installation to happen.
 *  [jphill77](https://wordpress.org/support/users/jphill77/)
 * (@jphill77)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/error-in-wp-dbphp-and-pluggablephp/#post-673042)
 * None of the fixes above seemed to work for me, even after upgrading to the latest
   version of WordPress. The actual blog works fine, but then when I try to login
   I get this error…
 * > Warning: Cannot modify header information – headers already sent by (output
   > started at /home/trideade/public_html/blog/wp-config.php:25) in /home/trideade/
   > public_html/blog/wp-login.php on line 12
   > Warning: Cannot modify header information – headers already sent by (output
   > started at /home/trideade/public_html/blog/wp-config.php:25) in /home/trideade/
   > public_html/blog/wp-login.php on line 24
 * Can someone help me out please?
 *  [whooami](https://wordpress.org/support/users/whooami/)
 * (@whooami)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/error-in-wp-dbphp-and-pluggablephp/#post-673043)
 * remove the line breaks OR spaces that are after the closing `?>` inside your 
   wp-config.php
 *  [jonbolden](https://wordpress.org/support/users/jonbolden/)
 * (@jonbolden)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/error-in-wp-dbphp-and-pluggablephp/#post-673097)
 * > remove the line breaks OR spaces that are after the closing ?> inside your 
   > wp-config.php
 * That worked! I was getting “Headers already sent” on wp-config was well and all
   I did was delete the extra spacing, lines after the ?> on wp-config.php. Thanks
   whooami

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

The topic ‘error in wp-db.php and pluggable.php’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 13 replies
 * 9 participants
 * Last reply from: [jonbolden](https://wordpress.org/support/users/jonbolden/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/error-in-wp-dbphp-and-pluggablephp/#post-673097)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
