If this is your first visit, check our documentation. To post, register or login.
Forums / Installing on a Linux/Unix Server / PHP Fatal error: Uncaught Error: Call to undefined function ctype_digit()

PHP Fatal error: Uncaught Error: Call to undefined function ctype_digit()

Started by katrobb on 28 Jun 2021, 5:36 PM · Views: 3,484

Results 1 to 3 of 3
28 Jun 2021, 5:36 PM
#1
katrobb avatar

katrobb

New Zenner

Join Date:
Nov 2006
Posts:
45
Plugin Contributions:
0

PHP Fatal error: Uncaught Error: Call to undefined function ctype_digit()

I am currently using Zencart 1.5.4 and I have decided to do a new install of 1.5.7c in a different folder and do some major changes/upgrades. I have upgraded the PHP to 7.4.
I am getting the 500 Error after clicking on the new install link and the following is in the log (used MyURLFolder in place of address).

PHP Fatal error: Uncaught Error: Call to undefined function ctype_digit() in /MyURLFolder/zc_install/includes/vendors/yaml/lib/class.sfYamlInline.php:402
Stack trace:
#0 /MyURLFolder/zc_install/includes/vendors/yaml/lib/class.sfYamlInline.php(202): sfYamlInline::evaluateScalar('systemChecks')
#1 /MyURLFolder/zc_install/includes/vendors/yaml/lib/class.sfYamlParser.php(125): sfYamlInline::parseScalar('systemChecks')
#2 /MyURLFolder/zc_install/includes/vendors/yaml/lib/class.sfYaml.php(97): sfYamlParser->parse('#\n# @copyright ...')
#3 /MyURLFolder/zc_install/includes/classes/class.systemChecker.php(17): sfYaml::load('#\n# @copyright ...')
#4 /MyURLFolder/zc_install/includes/modules/pages/index/header_php.php(28): systemChecker->__construct('admin')
#5 /MyURLFolder/zc_install/index.php(40): require('/hermes/walnacw...')
#6 {main}
thrown in /MyURLFolder/zc_install/includes/vendors/yaml/lib/class.sfYamlInline.php on line 402

Can you tell me what I am doing wrong or need to change? Or direct me to the message thread that covers this issue? Thanks.

Katrina Robb
KatalinaKlark.com

28 Jun 2021, 10:26 PM
#2
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,974
Plugin Contributions:
8

Re: PHP Fatal error: Uncaught Error: Call to undefined function ctype_digit()

you need to contact your host and tell them to enable ctype.

you may be able to do it in your php.ini file. but your host should be able to direct you as to how to do it or do it for you.

best.

author of square Webpay, now with Apple Pay and Google Pay.
mXworks
donations: venmo or paypal accepted.
premium consistent excellent support. available for hire.

30 Jun 2021, 1:23 AM
#3
katrobb avatar

katrobb

New Zenner

Join Date:
Nov 2006
Posts:
45
Plugin Contributions:
0

Re: PHP Fatal error: Uncaught Error: Call to undefined function ctype_digit()

Thank you. I made the change for ctype in the php.ini. There were other issues that my host server helped resolve, but this error stopped showing on the log.

Katrina Robb
KatalinaKlark.com