Has anybody else seen this fatal error after upgrading to CiviCRM 5.3.2? It appears when trying to manage groups or create a new group in "Contacts" and I don't think we had this under 5.3.0.
The full error is:
Fatal error: Call to undefined function ctype_space() in /usr/local/www/wordpress/wp-content/plugins/civicrm/civicrm/packages/IDS/vendors/htmlpurifier/HTMLPurifier/Token/Text.php on line 26
We are running Wordpress 4.9.7 and PHP 5.6.37.
Any ideas and help is highly appreciated! Thank you!
EDIT1:
Thanks to @Demerit I have run a couple of tests, and here are the results:
# pkg info php56-ctype
php56-ctype-5.6.37
Name : php56-ctype
Version : 5.6.37
Installed on : Fri Jul 27 16:42:39 2018 UTC
Origin : textproc/php56-ctype
Architecture : FreeBSD:11:amd64
(...)
So the ctype extension is installed.
# php --ini
Configuration File (php.ini) Path: /usr/local/etc
Loaded Configuration File: /usr/local/etc/php.ini
Scan for additional .ini files in: /usr/local/etc/php
Additional .ini files parsed: /usr/local/etc/php/ext-18-session.ini,
/usr/local/etc/php/ext-20-ctype.ini,
/usr/local/etc/php/ext-20-curl.ini,
/usr/local/etc/php/ext-20-filter.ini,
(...)
So the ctype extension seems to be activated. But now: when I use print_r(get_loaded_extensions());
I get
Array ( [0] => Core [1] => date [2] => ereg [3] => libxml [4] => pcre [5] => Reflection [6] => SPL [7] => hash [8] => session [9] => cgi-fcgi [10] => standard [11] => curl [12] => filter [13] => ftp [14] => gd [15] => mysqlnd [16] => json [17] => mbstring [18] => mysql [19] => mysqli [20] => openssl [21] => PDO [22] => SimpleXML [23] => tokenizer [24] => xml [25] => zip [26] => zlib [27] => pdo_mysql [28] => mhash )
So here it doesn't seem activated at all. And when I do phpinfo();
ext-20-ctype.ini doesn't appear in the list of parsed .ini files either. So again, it doesn't seem activated.
How is it possible that PHP provides contradictory info on the command line and via web browser? May this be linked to the fact that my CiviCRM and PHP is running in a FreeBSD jail?
Thank you for any ideas you might have!