• Resolved andreuerj

    (@andreuerj)


    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

    (@andreuerj)

    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.
    • This reply was modified 8 years, 6 months ago by bdbrown.
Viewing 1 replies (of 1 total)

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