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!
Thanks to @Demerit I have run a couple of tests, and here are the results:
# pkg info php56-ctype
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,
So the ctype extension seems to be activated. But now: when I use
print_r(get_loaded_extensions()); I get
Array (  => Core  => date  => ereg  => libxml  => pcre  => Reflection  => SPL  => hash  => session  => cgi-fcgi  => standard  => curl  => filter  => ftp  => gd  => mysqlnd  => json  => mbstring  => mysql  => mysqli  => openssl  => PDO  => SimpleXML  => tokenizer  => xml  => zip  => zlib  => pdo_mysql  => 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!