Symfony Demo - 无法登录 [英] Symfony Demo - unable to sign in

查看:222
本文介绍了Symfony Demo - 无法登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将Symfony项目(基于symfony-demo)推送到github,但是由于这样做,我无法以演示用户或管理员身份登录演示应用程序,而是获取以下内容:

I have upload pushed a Symfony project (based on symfony-demo) to github, however since doing so, I am unable to log in to the demo application as either the demo user or admin - instead I get the the following:


由于系统问题,无法处理身份验证请求。

Authentication request could not be processed due to a system problem.

如果用户不工作,我已经尝试了以下代码:

I have tried the below code as the page advises if the users are not working:

php app/console doctrine:fixtures:load

但是,当我提交这个我收到以下错误: p>

However, when I submit this I get the following error:

  [Doctrine\DBAL\Exception\DriverException]              
  An exception occured in driver: could not find driver  

  [Doctrine\DBAL\Driver\PDOException]  
  could not find driver   

然后,我尝试提交以下内容,希望可以修正原则问题:

I then tried submitting the following in the hope it would fix the doctrine issue:

composer require doctrine/doctrine-fixtures-bundle

然而,这反馈了以下内容:

However this fed back the following:

Using version ^2.2 for doctrine/doctrine-fixtures-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
  Problem 1
    - The requested PHP extension ext-pdo_sqlite * is missing from your system.
  Problem 2
    - sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - sensiolabs/security-checker v2.0.5 requires ext-curl * -> the requested PHP extension curl is missing from your system.
    - Installation request for sensiolabs/security-checker == 2.0.5.0 -> satisfiable by sensiolabs/security-checker[v2.0.5].


Installation failed, reverting ./composer.json to its original content.


推荐答案

输入您的终端 php -m 。你看到 curl

Type into your terminal php -m. Do you see curl?

如果没有,它没有安装。根据您的发行版,您可能会做:

If not, it's not installed. Depending on your distro you might do:

RHEL / Centos:

RHEL/Centos:

yum install php5_curl

Ubuntu / Debian:

Ubuntu/Debian:

apt-get install php5_curl

如果没有找到,尝试以下之一: php_curl php-curl php5_curl php5-curl 。不常见的是 56 而不是 5 。您可以通过搜索 curl 然后查看列表来简化。

If not found, try one of the following: php_curl, php-curl, php5_curl or php5-curl. Less frequently there is 56 instead of 5. You could simplify by searching for curl and then looking over the list.

不知道其他发行版,但它应该是相似的。

Not sure about other distros, but it should be similar.

这篇关于Symfony Demo - 无法登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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