Title: Warning: preg_replace() [function.preg-replace]:
Last modified: August 18, 2016

---

# Warning: preg_replace() [function.preg-replace]:

 *  [camayes81](https://wordpress.org/support/users/camayes81/)
 * (@camayes81)
 * [18 years, 6 months ago](https://wordpress.org/support/topic/warning-preg_replace-functionpreg-replace-1/)
 * I am having a problem directly after upgrading. Where posts should be it gives
   me the following error:
 * `Warning: preg_replace() [function.preg-replace]:Empty regular expression in /
   home/******/******/blog/******/wp-includes/formatting.php on line 668`
 * I looked in formatting.php on line 668 and saw:
 * `$content = preg_replace($wp_smiliessearch, $wp_smiliesreplace, $content);`
 * Any help on this issue would be much appreciated!
 * Thanks.

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

 *  Thread Starter [camayes81](https://wordpress.org/support/users/camayes81/)
 * (@camayes81)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/warning-preg_replace-functionpreg-replace-1/#post-661334)
 * All I can find on this issue relates to smilies, but I never had a smiley plug-
   in and never used any AJAX on the blog. I need some help here…
 *  [calvinms](https://wordpress.org/support/users/calvinms/)
 * (@calvinms)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/warning-preg_replace-functionpreg-replace-1/#post-661434)
 * hello, I just had this problem a minute ago, apparently It caused by moresmilies
   plugin, I had the problem solved by deactivating it. have you used any similar
   plugin that replace your smilies (or anything?)
 * that lines are… scary…

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

The topic ‘Warning: preg_replace() [function.preg-replace]:’ is closed to new replies.

## Tags

 * [formatting.php](https://wordpress.org/support/topic-tag/formatting-php/)
 * [preg_replace](https://wordpress.org/support/topic-tag/preg_replace/)
 * [warning](https://wordpress.org/support/topic-tag/warning/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [calvinms](https://wordpress.org/support/users/calvinms/)
 * Last activity: [18 years, 4 months ago](https://wordpress.org/support/topic/warning-preg_replace-functionpreg-replace-1/#post-661434)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
