WPIntell

Source evidence

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

User Domain Whitelist · support · 2017-12-22T03:34:00+00:00

neutralsentiment
highseverity
0.64relevance
1replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 23 rows with source links

17.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
andreuerj resolved
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 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, 5 months ago by bdbrown . This reply was modified 8 years, 5 months ago by bdbrown .

Comments

1 shown
andreuerj 2017-12-22T03:48:00+00:00

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, 5 months ago by bdbrown . This reply was modified 8 years, 5 months ago by bdbrown .