Title: Warning: preg_split() error in formatting.php
Last modified: August 21, 2016

---

# Warning: preg_split() error in formatting.php

 *  Resolved [BrainTriggers](https://wordpress.org/support/users/braintriggers/)
 * (@braintriggers)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/warning-preg_split-error-in-formattingphp/)
 * I’m tearing my hair out here… specs:
    WP 3.9 / Graphene 1.9.2 [http://www.greatfallsmodelrrclub.org](http://www.greatfallsmodelrrclub.org)
 * Exact error as it appears:
    Warning: preg_split() expects parameter 2 to be string,
   array given in /homepages/38/d92370548/htdocs/greatfallsmodelrrclub.org/wp-includes/
   formatting.php on line 155
 * Warning: Invalid argument supplied for foreach() in /homepages/38/d92370548/htdocs/
   greatfallsmodelrrclub.org/wp-includes/formatting.php on line 157
 * Warning: implode() [function.implode]: Invalid arguments passed in /homepages/
   38/d92370548/htdocs/greatfallsmodelrrclub.org/wp-includes/formatting.php on line
   186
 * Steps to resolve:
    Disabled all plugins – No effect Changed theme to 2014 (with
   and without plugins active) – No effect Uploaded fresh copy of /wp-includes folder–
   No effect
 * Forum and internet searches turn up nothing… Any clue where to go from here?

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/warning-preg_split-error-in-formattingphp/#post-4873747)
 * Try re-uploading all files & folders – **except** the root wp-config.php & .htaccess
   files and the wp-content folder – from a **fresh** download of WordPress. Make
   sure that you delete the old copies of files & folder before uploading the new
   ones.
 *  [Paul](https://wordpress.org/support/users/paultgoodchild/)
 * (@paultgoodchild)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/warning-preg_split-error-in-formattingphp/#post-4873756)
 * This is in the wptexturize() function and it looks like a piece of dodgy text
   is being passed to that function.
 * In fact, your error is that it’s an array() instead of a string. The theme here
   is showing the error in what appears to be a “description” field.
 * Go and look at the tag line of your site and ensure there is a proper string 
   in there for the site description.
 *  Thread Starter [BrainTriggers](https://wordpress.org/support/users/braintriggers/)
 * (@braintriggers)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/warning-preg_split-error-in-formattingphp/#post-4873761)
 * Well now I fell like a complete idiot and utter n00b… the description line in
   the General Settings had the text “Array” as the description. Removed the text
   and voila! Huge thanks to Paul G.!

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

The topic ‘Warning: preg_split() error in formatting.php’ is closed to new replies.

## Tags

 * [formatting.php](https://wordpress.org/support/topic-tag/formatting-php/)
 * [implode](https://wordpress.org/support/topic-tag/implode/)
 * [invalid argument](https://wordpress.org/support/topic-tag/invalid-argument/)
 * [preg_split](https://wordpress.org/support/topic-tag/preg_split/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [BrainTriggers](https://wordpress.org/support/users/braintriggers/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/warning-preg_split-error-in-formattingphp/#post-4873761)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
