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

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

问题描述

尝试在服务器上安装Symfony(3.3)项目时遇到错误。
我正在使用Apache HTTP Server和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天全站免登陆