PHP7 crash when adding a new item
-
Hello,
I found out that it’s no longer possible to add a new item to the collection when using PHP7.
The plugin displays a blank page on form submission because the function split has been removed in PHP7 (https://php.net/manual/en/function.split.php).
split is used by the function ValidHumanDate (WEBLIB_Patrons_Admin line 426).You can replace
$datearry=split("/",$datestring); // splitting the array
by
$datearry=preg_split("/\//",$datestring); // splitting the array
I haven’t found any other mention of split in the plugin.
I hope this workaround will help some people.
- The topic ‘PHP7 crash when adding a new item’ is closed to new replies.