Symfony - 在呈现模板期间抛出异常

时间:2016-05-22 00:49:40

标签: php twig symfony

我一直在使用Codeigniter,并且认为我会试用Symfony。我是Symfony的新手并且从演示项目开始工作。当我在浏览器中启动演示项目时,出现此错误:

An exception has been thrown during the rendering of a template ("An exception occured in driver: could not find driver") in blog/index.html.twig at line 6.
500 Internal Server Error - Twig_Error_Runtime
3 linked Exceptions: DriverException » PDOException » PDOException »

我不知道从哪里开始。有人可以帮我正确的方向吗?

3 个答案:

答案 0 :(得分:2)

这是您的问题:gawk -F, '{sub(/************/,"-999.9",$3)}1' OFS=, file 2006.0,1.0,-999.9,-5.0

这意味着您还没有为正在使用的RDBMS安装适当的PDO驱动程序。或者在配置文件中指定了一些无效值。

答案 1 :(得分:1)

Ubuntu 16.04没有附带php7和sqlite3。请运行以下命令

sudo apt-get install php7.0-sqlite3

答案 2 :(得分:0)

我运行sudo apt-get install php5-sqlite然后composer install一切都开始有效。

相关问题