Symfony sfGuardPlugin doesn't work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • swetha851991
    New Member
    • Jun 2013
    • 14

    Symfony sfGuardPlugin doesn't work

    I have tried to install sfGuardPlugin for hours an still it doesn't work.

    First I tried to install it this way:
    php symfony plugin:install sfGuardPlugin

    But I am getting the error.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    What does "the error" say, exactly?

    Error messages aren't printed just for the hell of it; they usually contain information that's vital to actually fixing the error. You should always include them in posts like these.

    Comment

    • swetha851991
      New Member
      • Jun 2013
      • 14

      #3
      Sorry..
      It shows the following.
      C:\wamp\www\sf_ sandbox>php symfony plugin:install sfGuardPlugin
      >> plugin installing plugin "sfGuardPlu gin"
      PHP Warning: require_once(PE AR.php): failed to open stream: No such file or dir
      ectory in C:\wamp\www\sf_ sandbox\lib\sym fony\plugin\sfP earEnvironment. class.php
      on line 15
      PHP Stack trace:
      PHP 1. {main}() C:\wamp\www\sf_ sandbox\symfony :0
      PHP 2. include() C:\wamp\www\sf_ sandbox\symfony :14
      PHP 3. sfSymfonyComman dApplication->run() C:\wamp\www\sf_ sandbox\lib\sym fony\c
      ommand\cli.php: 20
      PHP 4. sfTask->runFromCLI() C:\wamp\www\sf_ sandbox\lib\sym fony\command\sf Symfo
      nyCommandApplic ation.class.php :76
      PHP 5. sfBaseTask->doRun() C:\wamp\www\sf_ sandbox\lib\sym fony\task\sfTas k.clas
      s.php:77
      PHP 6. sfPluginInstall Task->execute() C:\wamp\www\sf_ sandbox\lib\sym fony\task\
      sfBaseTask.clas s.php:63
      PHP 7. sfPluginBaseTas k->getPluginManag er() C:\wamp\www\sf_ sandbox\lib\sym fony
      \task\plugin\sf PluginInstallTa sk.class.php:10 6
      PHP 8. sfCoreAutoload->autoload() C:\wamp\www\sf_ sandbox\lib\sym fony\task\plug
      in\sfPluginInst allTask.class.p hp:0
      PHP 9. require() C:\wamp\www\sf_ sandbox\lib\sym fony\autoload\s fCoreAutoload.c l
      ass.php:102

      Warning: require_once(PE AR.php): failed to open stream: No such file or director
      y in C:\wamp\www\sf_ sandbox\lib\sym fony\plugin\sfP earEnvironment. class.php on li
      ne 15

      Call Stack:
      0.0004 323280 1. {main}() C:\wamp\www\sf_ sandbox\symfony :0
      0.0039 566192 2. include('C:\wam p\www\sf_sandbo x\lib\symfony\c ommand\c
      li.php') C:\wamp\www\sf_ sandbox\symfony :14
      0.3353 4664920 3. sfSymfonyComman dApplication->run() C:\wamp\www\sf_ san
      dbox\lib\symfon y\command\cli.p hp:20
      0.3404 4831144 4. sfTask->runFromCLI() C:\wamp\www\sf_ sandbox\lib\sym fo
      ny\command\sfSy mfonyCommandApp lication.class. php:76
      0.3405 4831736 5. sfBaseTask->doRun() C:\wamp\www\sf_ sandbox\lib\sym fon
      y\task\sfTask.c lass.php:77
      0.4479 4855952 6. sfPluginInstall Task->execute() C:\wamp\www\sf_ sandbox
      \lib\symfony\ta sk\sfBaseTask.c lass.php:63
      0.4483 4856608 7. sfPluginBaseTas k->getPluginManag er() C:\wamp\www\sf_ s
      andbox\lib\symf ony\task\plugin \sfPluginInstal lTask.class.php :106
      0.4483 4856848 8. sfCoreAutoload->autoload() C:\wamp\www\sf_ sandbox\lib
      \symfony\task\p lugin\sfPluginI nstallTask.clas s.php:0
      0.4491 4919056 9. require('C:\wam p\www\sf_sandbo x\lib\symfony\p lugin\sf
      PearEnvironment .class.php') C:\wamp\www\sf_ sandbox\lib\sym fony\autoload\s fCoreAu
      toload.class.ph p:102

      PHP Fatal error: require_once(): Failed opening required 'PEAR.php' (include_pa
      th='C:\wamp\www \sf_sandbox\lib \symfony\plugin s\sfPropelPlugi n\lib\vendor;C: \wamp
      \www\sf_sandbox \lib\symfony\pl ugins\sfPropelP lugin\lib\task; C:\wamp\www\sf_ sandb
      ox;C:\wamp\www\ sf_sandbox\lib\ symfony;C:\php\ pear') in C:\wamp\www\sf_ sandbox\li
      b\symfony\plugi n\sfPearEnviron ment.class.php on line 15
      PHP Stack trace:
      PHP 1. {main}() C:\wamp\www\sf_ sandbox\symfony :0
      PHP 2. include() C:\wamp\www\sf_ sandbox\symfony :14
      PHP 3. sfSymfonyComman dApplication->run() C:\wamp\www\sf_ sandbox\lib\sym fony\c
      ommand\cli.php: 20
      PHP 4. sfTask->runFromCLI() C:\wamp\www\sf_ sandbox\lib\sym fony\command\sf Symfo
      nyCommandApplic ation.class.php :76
      PHP 5. sfBaseTask->doRun() C:\wamp\www\sf_ sandbox\lib\sym fony\task\sfTas k.clas
      s.php:77
      PHP 6. sfPluginInstall Task->execute() C:\wamp\www\sf_ sandbox\lib\sym fony\task\
      sfBaseTask.clas s.php:63
      PHP 7. sfPluginBaseTas k->getPluginManag er() C:\wamp\www\sf_ sandbox\lib\sym fony
      \task\plugin\sf PluginInstallTa sk.class.php:10 6
      PHP 8. sfCoreAutoload->autoload() C:\wamp\www\sf_ sandbox\lib\sym fony\task\plug
      in\sfPluginInst allTask.class.p hp:0
      PHP 9. require() C:\wamp\www\sf_ sandbox\lib\sym fony\autoload\s fCoreAutoload.c l
      ass.php:102

      Fatal error: require_once(): Failed opening required 'PEAR.php' (include_path=' C
      :\wamp\www\sf_s andbox\lib\symf ony\plugins\sfP ropelPlugin\lib \vendor;C:\wamp \www\
      sf_sandbox\lib\ symfony\plugins \sfPropelPlugin \lib\task;C:\wa mp\www\sf_sandb ox;C:
      \wamp\www\sf_sa ndbox\lib\symfo ny;C:\php\pear' ) in C:\wamp\www\sf_ sandbox\lib\sym
      fony\plugin\sfP earEnvironment. class.php on line 15

      Call Stack:
      0.0004 323280 1. {main}() C:\wamp\www\sf_ sandbox\symfony :0
      0.0039 566192 2. include('C:\wam p\www\sf_sandbo x\lib\symfony\c ommand\c
      li.php') C:\wamp\www\sf_ sandbox\symfony :14
      0.3353 4664920 3. sfSymfonyComman dApplication->run() C:\wamp\www\sf_ san
      dbox\lib\symfon y\command\cli.p hp:20
      0.3404 4831144 4. sfTask->runFromCLI() C:\wamp\www\sf_ sandbox\lib\sym fo
      ny\command\sfSy mfonyCommandApp lication.class. php:76
      0.3405 4831736 5. sfBaseTask->doRun() C:\wamp\www\sf_ sandbox\lib\sym fon
      y\task\sfTask.c lass.php:77
      0.4479 4855952 6. sfPluginInstall Task->execute() C:\wamp\www\sf_ sandbox
      \lib\symfony\ta sk\sfBaseTask.c lass.php:63
      0.4483 4856608 7. sfPluginBaseTas k->getPluginManag er() C:\wamp\www\sf_ s
      andbox\lib\symf ony\task\plugin \sfPluginInstal lTask.class.php :106
      0.4483 4856848 8. sfCoreAutoload->autoload() C:\wamp\www\sf_ sandbox\lib
      \symfony\task\p lugin\sfPluginI nstallTask.clas s.php:0
      0.4491 4919056 9. require('C:\wam p\www\sf_sandbo x\lib\symfony\p lugin\sf
      PearEnvironment .class.php') C:\wamp\www\sf_ sandbox\lib\sym fony\autoload\s fCoreAu
      toload.class.ph p:102


      C:\wamp\www\sf_ sandbox>

      Comment

      • swetha851991
        New Member
        • Jun 2013
        • 14

        #4
        The server is not loading the requires classes...Pleas e help me to solve the problem.

        Comment

        • Atli
          Recognized Expert Expert
          • Nov 2006
          • 5062

          #5
          Your PHP installation doesn't have PEAR installed. Symfony's plugin installer is trying to use PEAR to install your plugin, and thus is failing like that. You need to install PEAR to get this to work.

          The few times I've tried to install PEAR on Windows it was a major pain. It never worked right for me. You can try following the instructions here and see if you can get it to work.

          Otherwise, if you are developing this on Windows, but will be deploying it on a Unix server, then you may want to set your development environment up on a Linux host instead, so you can set this up properly. You don't have to actually work on Linux if you don't want to; you could set the development server up inside a virtual host (like VirtualBox or VMWare) and just sync your work there through SSH or FTP. It's actually not that complicated to set up, especially if you use Linux server distros like Ubuntu or Fedora. They are pretty much built to be LAMP hosts, and come with all the standard stuff built in.

          Comment

          • swetha851991
            New Member
            • Jun 2013
            • 14

            #6
            Thanks for your respose..I have selected it as the best answer.

            Comment

            Working...