Title: Call to undefined function split()
Last modified: August 6, 2018

---

# Call to undefined function split()

 *  Resolved [bkesting](https://wordpress.org/support/users/bkesting/)
 * (@bkesting)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-split/)
 * I am in the proces of moving a wordpress site to a new server and at the same
   time updating software versions.
 * Current (old) and running site is running on Apache 2.2, WordPress ver. 4.1, 
   PHP 5.3.17 and MySQL 5.5.60. Everything is running fine.
 * Migrating to new server and have upgraded to Apache 2.4, WordPress ver. 4.9.8,
   MariaDB 10.0.35 and PHP 7.0.7.
 * The site loads fine on the new system, but everytime I click on a menu item to
   go to a sub page I get the following message:
 * ERROR THROWN: Call to undefined function split ()
 * Thoughts?
 * Thank you for any advice.

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

 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-split/#post-10562135)
 * [http://php.net/split](http://php.net/split)
 * The split() function was deprecated in PHP 5.3 and removed in 7.0. That means
   that anything trying to use it can’t any more.
 * The way to fix it is to find out where it is in the code and cange it to something
   else that works. It will most likely be in something that is either custom-made,
   or hasn’t been updated for years. There’s no calls to that function in the WordPress
   core.
 *  Thread Starter [bkesting](https://wordpress.org/support/users/bkesting/)
 * (@bkesting)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-split/#post-10562314)
 * Thanks. I read that a little a bit ago. Looks like I need to replace any call
   to “split” with “explode”, correct?
 * So to be clear, I’m going to have to go through the individual php files and 
   see where “split” is being called?
 *  [catacaustic](https://wordpress.org/support/users/catacaustic/)
 * (@catacaustic)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-split/#post-10562318)
 * It’s most likely to be explode(), but there’s no way to be sure until you see
   how it’s being used in the code.
 * And yes, you will have ot go through the code. A good IDE will help you there
   as anything that’s even remotely decent will let you do a global search for that.
 *  Thread Starter [bkesting](https://wordpress.org/support/users/bkesting/)
 * (@bkesting)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-split/#post-10563743)
 * Found the issue. An old plugin reference split one time. Disabled the plugin 
   or replacing “split” with “explode” solved it.
 * Thanks for the advice folks!

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

The topic ‘Call to undefined function split()’ is closed to new replies.

## Tags

 * [explode](https://wordpress.org/support/topic-tag/explode/)
 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)
 * [image](https://wordpress.org/support/topic-tag/image/)
 * [php](https://wordpress.org/support/topic-tag/php/)
 * [split](https://wordpress.org/support/topic-tag/split/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 0 participants
 * Last reply from: [bkesting](https://wordpress.org/support/users/bkesting/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/call-to-undefined-function-split/#post-10563743)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
