Title: WordPress database error when posting
Last modified: August 18, 2016

---

# WordPress database error when posting

 *  [glidetothehoop](https://wordpress.org/support/users/glidetothehoop/)
 * (@glidetothehoop)
 * [20 years ago](https://wordpress.org/support/topic/wordpress-database-error-when-posting/)
 * Hello,
 * I’m getting the flollwing error when posting anything on my blog. The posting
   actually does show and “post”. But why the error message?
 *  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]
    SELECT * FROM wp3_post2cat WHERE post_id =
 * Warning: Cannot modify header information – headers already sent by (output started
   at /srv/www/htdocs/wp3/wp-includes/wp-db.php:102) in /srv/www/htdocs/wp3/wp-admin/
   post.php on line 59
 * Any help is appreciated.
 * Greg

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

 *  [drienne](https://wordpress.org/support/users/drienne/)
 * (@drienne)
 * [20 years ago](https://wordpress.org/support/topic/wordpress-database-error-when-posting/#post-387414)
 * Hi, I have a very similar error. Unfortunately no one has been able to help me
   yet – I have even created a new DB and still have the problem.
 *  [tina2006](https://wordpress.org/support/users/tina2006/)
 * (@tina2006)
 * [20 years ago](https://wordpress.org/support/topic/wordpress-database-error-when-posting/#post-387505)
 * This worked for me:
 * MattRead:
 * “Try removing rpc.pingomatic.com/ from the “Update Services” list in Options 
   > Writing.”
    Posted: 2006-02-17 02:48:58 #
 *  Thread Starter [glidetothehoop](https://wordpress.org/support/users/glidetothehoop/)
 * (@glidetothehoop)
 * [20 years ago](https://wordpress.org/support/topic/wordpress-database-error-when-posting/#post-387520)
 * Thanks for the suggestion, but I don’t have any update services listed there.
   I removed them all.
 *  [tina2006](https://wordpress.org/support/users/tina2006/)
 * (@tina2006)
 * [20 years ago](https://wordpress.org/support/topic/wordpress-database-error-when-posting/#post-387521)
 * I had the same exact error messages and it worked,
    how about you try #1 and #
   2.
 * written by: MattRead
 * 3 things:
 * 1. Ensure that you have run /wp-admin/upgrade.php.
 * 2. Check that the “WordPress address (URI)” and “Blog address (URI)” is correct
   in Options > General (no trailing slash).
 * 3. Try removing rpc.pingomatic.com/ from the “Update Services” list in Options
   > Writing.
    Posted: 2006-02-17 02:48:58 #
 *  Thread Starter [glidetothehoop](https://wordpress.org/support/users/glidetothehoop/)
 * (@glidetothehoop)
 * [20 years ago](https://wordpress.org/support/topic/wordpress-database-error-when-posting/#post-387554)
 * I’ve tried all of these solutions. I can’t figure out why this error is occuring.
   Any other help out there???

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

The topic ‘WordPress database error when posting’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [glidetothehoop](https://wordpress.org/support/users/glidetothehoop/)
 * Last activity: [20 years ago](https://wordpress.org/support/topic/wordpress-database-error-when-posting/#post-387554)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
