Cannot do reload after updating to 2.5.1

Hi. I was using freepbx 2.4.1 and I updated to 2.5.1 and now I get the following when I do the reload

Reload failed because retrieve_conf encountered an error: 255
exit: 255
Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Checking for /etc/amportal.conf …OK
Bootstrapping /etc/amportal.conf …OK
Parsing /etc/amportal.conf …OK
Parsing /etc/asterisk/asterisk.conf …OK
Connecting to database…OK
Connecting to Asterisk manager interface…OK
Fatal error: Call to undefined function ctype_digit() in /var/www/html/admin/modules/core/functions.inc.php
on line 854
1 error(s) occured, you should view the notification log on the dashboard or main
screen to check for more details.
I added the line
FOPRUN=no
ZAP2DAHDICOMPAT=true

Any assistance with this would be apreciated.

You need to provide more information:

  1. Your distribution (Elastix, PBX in a Flash, trixbox or home brew)
  2. What version of php you are running, do a php -v in a shell and post the response here.
  3. How did you do the upgrade?

The error you are seeing is a php error, and that is strange as that function have been in php since version 4. This leads me to the conclusion that your php installation is not correct.

OK, I think I found the problem – I am using gentoo and for unknown reasons, the php5 build has a use flag of -ctype which compiles without those functions. Insane!