Title: headers and pluggable.php
Last modified: August 18, 2016

---

# headers and pluggable.php

 *  [davedorm](https://wordpress.org/support/users/davedorm/)
 * (@davedorm)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/headers-and-pluggablephp/)
 * Getting this error when editing pages:
 * `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'
   s xxxxx... </p>`
 * and then a crapload of MySQL stuff…
 * and then this:
 * `Warning: Cannot modify header information - headers already sent by (output 
   started at /home/xxx/wp-includes/wp-db.php:133) in /home/xxx/wp-includes/pluggable.
   php on line 341`

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

 *  Thread Starter [davedorm](https://wordpress.org/support/users/davedorm/)
 * (@davedorm)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/headers-and-pluggablephp/#post-626061)
 * bump
 * I know it seems impatient of me, but I am really stuck here. Need an answer ASAP.
 * I have optimized/repaired the Database.
 * I have replaced the offending files mentioned:
 * * wp-admin/page.php
    * wp-includes/pluggable.php * wp-includes/wp-db.php
 * …with unedited originals from 2.2.3 (the correct version I am running.)
 * The only thing I can see is that it is the apostrophe that harfs it. If I escape
   it ( \’ ) it parses fine.
 * Could this have something to do with “magic quotes”? I disabled the functions
   because it was crashing on any apostrophe and curly quote character. Maybe I 
   need to un-do those changes?
 *  Thread Starter [davedorm](https://wordpress.org/support/users/davedorm/)
 * (@davedorm)
 * [18 years, 8 months ago](https://wordpress.org/support/topic/headers-and-pluggablephp/#post-626062)
 * ah…
 * I can escape an apostrophe ( \’ )
    or use the HTML entity ( & #39 ; ) no spaces
   of course
 * but a plain ‘ is right out…
 * HELP!

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

The topic ‘headers and pluggable.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 1 participant
 * Last reply from: [davedorm](https://wordpress.org/support/users/davedorm/)
 * Last activity: [18 years, 8 months ago](https://wordpress.org/support/topic/headers-and-pluggablephp/#post-626062)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
