Symfony : Error : Attempted to call function “ctype_digit”

痞子三分冷 提交于 2020-02-04 01:52:05

问题


I'm experiencing an error while trying to install my Symfony (3.3) project on my server. I'm using an Apache HTTP Server and PHP 7.0.

When i'm accessing app_dev.php, it shows that error :

UndefinedFunctionException

Attempted to call function "ctype_digit" from namespace "Symfony\Component\HttpKernel".

in Kernel.php (line 274)

at Kernel->getName()in Kernel.php (line 85)

at Kernel->__construct('dev', true)in app_dev.php (line 25)

My composer update works well.

Does anybody know where it could come from ? .. or simply has an hint on the way to search.

Thank you for your help.


回答1:


Problem fixed. Actually, after updating PHP 7.0 to 7.1, it installed the ctype extension that was missing. I don't know why it wasn't already installed and enabled with my PHP 7.0 installation.

Many thanks for your help.



来源:https://stackoverflow.com/questions/46054704/symfony-error-attempted-to-call-function-ctype-digit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!