Symfony:错误:试图调用函数“ctype_digit" [英] Symfony : Error : Attempted to call function "ctype_digit"

查看:41
本文介绍了Symfony:错误:试图调用函数“ctype_digit"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的服务器上安装我的 Symfony (3.3) 项目时遇到错误.我使用的是 Apache HTTP 服务器和 PHP 7.0.

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.

当我访问 app_dev.php 时,它显示错误:

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.

感谢您的帮助.

推荐答案

问题已修复.实际上,在将 PHP 7.0 更新到 7.1 后,它安装了缺少的 ctype 扩展.我不知道为什么我的 PHP 7.0 安装还没有安装和启用它.

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.

非常感谢您的帮助.

这篇关于Symfony:错误:试图调用函数“ctype_digit"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆