Title: Fatal error: Uncaught Error: Call to undefined function split()
Last modified: December 22, 2017

---

# Fatal error: Uncaught Error: Call to undefined function split()

 *  Resolved [andreuerj](https://wordpress.org/support/users/andreuerj/)
 * (@andreuerj)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-split/)
 * After updating to WP 4.9.1 and setting php to 7.1, the plugin user domain whitelist
   started to fail.
 * Fatal error: Uncaught Error: Call to undefined function split() in /public_html/
   wp-content/plugins/user-domain-whitelist/user-domain-whitelist.php:112

Viewing 1 replies (of 1 total)

 *  Thread Starter [andreuerj](https://wordpress.org/support/users/andreuerj/)
 * (@andreuerj)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-split/#post-9805016)
 * The function **split()** was DEPRECATED in PHP 5.3.0, and REMOVED in PHP 7.0.0.
 * To fix the error, modify manually the function split() by explode() in /public_html/
   wp-content/plugins/user-domain-whitelist/user-domain-whitelist.php (lines #112
   and #113).
 * FROM:
    $validDomains = split( “\r\n”, $pluginOptions[‘domain_whitelist’] ); $
   invalidDomains = split( “\r\n”, $pluginOptions[‘domain_blacklist’] );
 * TO:
    $validDomains = explode( “\r\n”, $pluginOptions[‘domain_whitelist’] ); $
   invalidDomains = explode( “\r\n”, $pluginOptions[‘domain_blacklist’] );
    -  This reply was modified 8 years, 6 months ago by [bdbrown](https://wordpress.org/support/users/bdbrown/).
    -  This reply was modified 8 years, 6 months ago by [bdbrown](https://wordpress.org/support/users/bdbrown/).

Viewing 1 replies (of 1 total)

The topic ‘Fatal error: Uncaught Error: Call to undefined function split()’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/user-domain-whitelist.svg)
 * [User Domain Whitelist](https://wordpress.org/plugins/user-domain-whitelist/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-domain-whitelist/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-domain-whitelist/)
 * [Active Topics](https://wordpress.org/support/plugin/user-domain-whitelist/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-domain-whitelist/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-domain-whitelist/reviews/)

## Tags

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

 * 1 reply
 * 1 participant
 * Last reply from: [andreuerj](https://wordpress.org/support/users/andreuerj/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-error-call-to-undefined-function-split/#post-9805016)
 * Status: resolved