Title: thisisjohn's Replies | WordPress.org

---

# thisisjohn

  [  ](https://wordpress.org/support/users/thisisjohn/)

 *   [Profile](https://wordpress.org/support/users/thisisjohn/)
 *   [Topics Started](https://wordpress.org/support/users/thisisjohn/topics/)
 *   [Replies Created](https://wordpress.org/support/users/thisisjohn/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/thisisjohn/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/thisisjohn/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/thisisjohn/engagements/)
 *   [Favorites](https://wordpress.org/support/users/thisisjohn/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress database error](https://wordpress.org/support/topic/wordpress-database-error-1-2-3-4-5-3/)
 *  [thisisjohn](https://wordpress.org/support/users/thisisjohn/)
 * (@thisisjohn)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/wordpress-database-error-1-2-3-4-5-3/#post-489316)
 * OK, I think I’ve found a fix:
    1/ open ‘postie-functions.php’ in /wp-content/
   plugins/postie 2/ edit the following on line 56: CHANGE `'post_title' => $subject,`
   TO ` 'post_title' => preg_replace("/'/","\'",$subject),`
 * It works for me! 🙂
 * -John
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress database error](https://wordpress.org/support/topic/wordpress-database-error-1-2-3-4-5-3/)
 *  [thisisjohn](https://wordpress.org/support/users/thisisjohn/)
 * (@thisisjohn)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/wordpress-database-error-1-2-3-4-5-3/#post-489315)
 * Hi,
    I’ve just experienced this too and quickly realised that it’s due to the
   presence of an apostrophe in the title, which messes with the database INSERT
   statement somewhere in core, I suspect. There probably is a wrapper function 
   that should be used that isn’t in this plug-in?
 * Anyway, this is my hunch and hope this leads to someone more knowledgeable of
   the plug-in / core code to resolve the problem?
 * -John

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