This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » User management plugins » trouble upgrading sfGuardPlugin to work with symfony 1.1
icon14.gif  trouble upgrading sfGuardPlugin to work with symfony 1.1 [message #58542] Tue, 12 August 2008 19:28 Go to next message
n8vo  is currently offline n8vo
Messages: 12
Registered: March 2007
Location: Fairbanks, Alaska
Junior Member
I'm stuck. I have a project using sfGuardPlugin that was working under symfony 1.0, but when I followed the UPGRADE instructions to make it work with 1.1, the sfGuard plugin fails with this error:

Fatal error: Call to undefined method sfRouting::getinstance() in C:\project_path\plugins\sfGuardPlugin\config\config.php on line 5


I've tried the install, uninstall and upgrade tasks without luck. This is what happens when I run the plugin upgrade task:

$ ./symfony plugin:upgrade sfGuardPlugin  
>> plugin    upgrading plugin "sfGuardPlugin"
>> sfPearFrontendPlugin downloading sfGuardPlugin-2.1.0.tgz ...
>> sfPearFrontendPlugin Starting to download sfGuardPlugin-2.1.0.tgz (16,254 bytes)
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin ...done: 16,254 bytes
>> sfPearFrontendPlugin Failed to download symfony/symfony (version >= 1.1.0, version
>> sfPearFrontendPlugin <= 1.2.0, excluded versions: 1.2.0), latest release is version
>> sfPearFrontendPlugin 1.1.1, stability "stable", use
>> sfPearFrontendPlugin "channel://pear.symfony-project.com/symfony-1.1.1" to install

                                                                                                                      
  Installation of "sfGuardPlugin" plugin failed: plugins.symfony-project.org/sfGuardPlugin: conflicting files found:  
                                         sfguardplugin\config/config.php (pear.symfony-project.com/sfguardplugin)     
                                         sfguardplugin\config/schema.yml (pear.symfony-project.com/sfguardplugin)     
                   sfguardplugin\lib/model/plugin/PluginsfGuardGroup.php (pear.symfony-project.com/sfguardplugin)     
               sfguardplugin\lib/model/plugin/PluginsfGuardGroupPeer.php (pear.symfony-project.com/sfguardplugin)     
         sfguardplugin\lib/model/plugin/PluginsfGuardGroupPermission.php (pear.symfony-project.com/sfguardplugin)     
     sfguardplugin\lib/model/plugin/PluginsfGuardGroupPermissionPeer.php (pear.symfony-project.com/sfguardplugin)     
              sfguardplugin\lib/model/plugin/PluginsfGuardPermission.php (pear.symfony-project.com/sfguardplugin)     
          sfguardplugin\lib/model/plugin/PluginsfGuardPermissionPeer.php (pear.symfony-project.com/sfguardplugin)     
                    sfguardplugin\lib/model/plugin/PluginsfGuardUser.php (pear.symfony-project.com/sfguardplugin)     
                sfguardplugin\lib/model/plugin/PluginsfGuardUserPeer.php (pear.symfony-project.com/sfguardplugin)     
               sfguardplugin\lib/model/plugin/PluginsfGuardUserGroup.php (pear.symfony-project.com/sfguardplugin)     
           sfguardplugin\lib/model/plugin/PluginsfGuardUserGroupPeer.php (pear.symfony-project.com/sfguardplugin)     
          sfguardplugin\lib/model/plugin/PluginsfGuardUserPermission.php (pear.symfony-project.com/sfguardplugin)     
      sfguardplugin\lib/model/plugin/PluginsfGuardUserPermissionPeer.php (pear.symfony-project.com/sfguardplugin)     
             sfguardplugin\lib/model/plugin/PluginsfGuardRememberKey.php (pear.symfony-project.com/sfguardplugin)     
         sfguardplugin\lib/model/plugin/PluginsfGuardRememberKeyPeer.php (pear.symfony-project.com/sfguardplugin)     
                                sfguardplugin\lib/model/sfGuardGroup.php (pear.symfony-project.com/sfguardplugin)     
                            sfguardplugin\lib/model/sfGuardGroupPeer.php (pear.symfony-project.com/sfguardplugin)     
                      sfguardplugin\lib/model/sfGuardGroupPermission.php (pear.symfony-project.com/sfguardplugin)     
                  sfguardplugin\lib/model/sfGuardGroupPermissionPeer.php (pear.symfony-project.com/sfguardplugin)     
                           sfguardplugin\lib/model/sfGuardPermission.php (pear.symfony-project.com/sfguardplugin)     
                       sfguardplugin\lib/model/sfGuardPermissionPeer.php (pear.symfony-project.com/sfguardplugin)     
                                 sfguardplugin\lib/model/sfGuardUser.php (pear.symfony-project.com/sfguardplugin)     
                             sfguardplugin\lib/model/sfGuardUserPeer.php (pear.symfony-project.com/sfguardplugin)     
                            sfguardplugin\lib/model/sfGuardUserGroup.php (pear.symfony-project.com/sfguardplugin)     
                        sfguardplugin\lib/model/sfGuardUserGroupPeer.php (pear.symfony-project.com/sfguardplugin)     
                       sfguardplugin\lib/model/sfGuardUserPermission.php (pear.symfony-project.com/sfguardplugin)     
                   sfguardplugin\lib/model/sfGuardUserPermissionPeer.php (pear.symfony-project.com/sfguardplugin)     
                          sfguardplugin\lib/model/sfGuardRememberKey.php (pear.symfony-project.com/sfguardplugin)     
                      sfguardplugin\lib/model/sfGuardRememberKeyPeer.php (pear.symfony-project.com/sfguardplugin)     
                    sfguardplugin\lib/user/sfGuardSecurityUser.class.php (pear.symfony-project.com/sfguardplugin)     
                  sfguardplugin\lib/sfGuardBasicSecurityFilter.class.php (pear.symfony-project.com/sfguardplugin)     
             sfguardplugin\modules/sfGuardAuth/actions/actions.class.php (pear.symfony-project.com/sfguardplugin)     
                   sfguardplugin\modules/sfGuardAuth/config/security.yml (pear.symfony-project.com/sfguardplugin)     
  sfguardplugin\modules/sfGuardAuth/lib/BasesfGuardAuthActions.class.php (pear.symfony-project.com/sfguardplugin)     
           sfguardplugin\modules/sfGuardAuth/templates/secureSuccess.php (pear.symfony-project.com/sfguardplugin)     
           sfguardplugin\modules/sfGuardAuth/templates/signinSuccess.php (pear.symfony-project.com/sfguardplugin)     
            sfguardplugin\modules/sfGuardGroup/actions/actions.class.php (pear.symfony-project.com/sfguardplugin)     
                 sfguardplugin\modules/sfGuardGroup/config/generator.yml (pear.symfony-project.com/sfguardplugin)     
                    sfguardplugin\modules/sfGuardGroup/validate/edit.yml (pear.symfony-project.com/sfguardplugin)     
       sfguardplugin\modules/sfGuardPermission/actions/actions.class.php (pear.symfony-project.com/sfguardplugin)     
            sfguardplugin\modules/sfGuardPermission/config/generator.yml (pear.symfony-project.com/sfguardplugin)     
               sfguardplugin\modules/sfGuardPermission/validate/edit.yml (pear.symfony-project.com/sfguardplugin)     
             sfguardplugin\modules/sfGuardUser/actions/actions.class.php (pear.symfony-project.com/sfguardplugin)     
                  sfguardplugin\modules/sfGuardUser/config/generator.yml (pear.symfony-project.com/sfguardplugin)     
  sfguardplugin\modules/sfGuardUser/lib/BasesfGuardUserActions.class.php (pear.symfony-project.com/sfguardplugin)     
               sfguardplugin\modules/sfGuardUser/templates/_password.php (pear.symfony-project.com/sfguardplugin)     
           sfguardplugin\modules/sfGuardUser/templates/_password_bis.php (pear.symfony-project.com/sfguardplugin)     
                     sfguardplugin\modules/sfGuardUser/validate/edit.yml (pear.symfony-project.com/sfguardplugin)     
                                                    sfguardplugin\README (pear.symfony-project.com/sfguardplugin)     
                                                   sfguardplugin\LICENSE (pear.symfony-project.com/sfguardplugin)     


Any clues?

-n

[Updated on: Tue, 19 August 2008 23:10]

Re: trouble upgrading sfGuardPlugin to work with symfony 1.1 [message #58830 is a reply to message #58542 ] Fri, 15 August 2008 21:34 Go to previous messageGo to next message
pgodel  is currently offline pgodel
Messages: 11
Registered: May 2008
Location: Miami, FL
Junior Member
same problem here, not much info...

any solutions?


ServerGrove - Symfony Hosting
http://servergrove.com/symfonyhosting
Re: trouble upgrading sfGuardPlugin to work with symfony 1.1 [message #58831 is a reply to message #58830 ] Fri, 15 August 2008 22:35 Go to previous messageGo to next message
n8vo  is currently offline n8vo
Messages: 12
Registered: March 2007
Location: Fairbanks, Alaska
Junior Member
no solutions so far.
Re: trouble upgrading sfGuardPlugin to work with symfony 1.1 [message #58832 is a reply to message #58542 ] Fri, 15 August 2008 23:00 Go to previous messageGo to next message
pgodel  is currently offline pgodel
Messages: 11
Registered: May 2008
Location: Miami, FL
Junior Member
I got around the problem. I removed by hand the plugins/sfGuardPlugin directory and other references (specially the files in cache/pear related to sfGuardPlugin)

then I run the install and worked.

hope it helps.

Pablo


ServerGrove - Symfony Hosting
http://servergrove.com/symfonyhosting
Re: trouble upgrading sfGuardPlugin to work with symfony 1.1 [message #58849 is a reply to message #58542 ] Sat, 16 August 2008 13:55 Go to previous messageGo to next message
cprior  is currently offline cprior
Messages: 50
Registered: December 2005
Location: #symfony
Member
Yes, mind the hidden dot-directories in cache and plugin!

(Don't nuke .svn though, in case zou are using it!)


--
Chris Prior
My docu-mirror(offline)
icon14.gif  Re: trouble upgrading sfGuardPlugin to work with symfony 1.1 [message #59065 is a reply to message #58542 ] Tue, 19 August 2008 23:10 Go to previous messageGo to next message
n8vo  is currently offline n8vo
Messages: 12
Registered: March 2007
Location: Fairbanks, Alaska
Junior Member
Thanks a lot for the tips!

For some reason it took me a few tries, and a bit to make Subversion happy, but this combination finally worked:

  svn rm plugins/sfGuardPlugin
  svn ci plugins/sfGuardPlugin -m 'removed old version of sfGuardPlugin'
  rm -rf plugins/sfGuardPlugin plugins/.channels plugins/.depdb plugins/.depdblock plugins/.filemap plugins/.lock plugins/.registry/
  rm -rf cache/.pear
  ./symfony plugin:install sfGuardPlugin
  svn add plugins/sfGuardPlugin/


my successful plugin installation looked like this:
$  ./symfony plugin:install sfGuardPlugin
>> plugin    installing plugin "sfGuardPlugin"
>> sfPearFrontendPlugin Attempting to discover channel "pear.symfony-project.com"...
>> sfPearFrontendPlugin downloading channel.xml ...
>> sfPearFrontendPlugin Starting to download channel.xml (663 bytes)
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin ...done: 663 bytes
>> sfPearFrontendPlugin Auto-discovered channel "pear.symfony-project.com", alias
>> sfPearFrontendPlugin "symfony", adding to registry
>> sfPearFrontendPlugin Attempting to discover channel
>> sfPearFrontendPlugin "plugins.symfony-project.org"...
>> sfPearFrontendPlugin downloading channel.xml ...
>> sfPearFrontendPlugin Starting to download channel.xml (639 bytes)
>> sfPearFrontendPlugin ...done: 639 bytes
>> sfPearFrontendPlugin Auto-discovered channel "plugins.symfony-project.org", alias
>> sfPearFrontendPlugin "symfony-plugins", adding to registry
>> sfPearFrontendPlugin downloading sfGuardPlugin-2.2.0.tgz ...
>> sfPearFrontendPlugin Starting to download sfGuardPlugin-2.2.0.tgz (18,589 bytes)
>> sfPearFrontendPlugin ...done: 18,589 bytes
>> sfPearFrontendPlugin Failed to download symfony/symfony (version >= 1.1.0, version
>> sfPearFrontendPlugin <= 1.2.0, excluded versions: 1.2.0), latest release is version
>> sfPearFrontendPlugin 1.1.1, stability "stable", use
>> sfPearFrontendPlugin "channel://pear.symfony-project.com/symfony-1.1.1" to install
>> sfSymfonyPluginManager Installation successful for plugin "sfGuardPlugin"


icon14.gif  Re: trouble upgrading sfGuardPlugin to work with symfony 1.1 [message #61457 is a reply to message #59065 ] Mon, 22 September 2008 03:33 Go to previous messageGo to next message
cdub
Messages: 5
Registered: October 2006
Location: Oakland, CA
Junior Member
Phwew! This worked for me! Thanks.
Re: trouble upgrading sfGuardPlugin to work with symfony 1.1 [message #70099 is a reply to message #59065 ] Fri, 16 January 2009 22:03 Go to previous messageGo to next message
weiserc  is currently offline weiserc
Messages: 23
Registered: December 2007
Junior Member
I tried this but when installing the plugin I get the following error

>> plugin    installing plugin "sfGuardPlugin"
>> sfPearFrontendPlugin downloading sfGuardPlugin-2.2.0.tgz ...
>> sfPearFrontendPlugin Starting to download sfGuardPlugin-2.2.0.tgz (19,512 bytes)
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin .
>> sfPearFrontendPlugin ...done: 19,512 bytes
>> sfPearFrontendPlugin failed to change mode of
>> sfPearFrontendPlugin ../plugins/sfGuardPlugin/config/.tmpconfig.php:
>> sfPearFrontendPlugin chmod(): Operation not permitted
>> sfPearFrontendPlugin failed to change mode of
>> sfPearFrontendPlugin ../plugins/sfGuardPlugin/config/.tmpschema.yml:
>> sfPearFrontendPlugin chmod(): Operation not permitted
>> sfPearFrontendPlugin failed to change mode of
>> sfPearFrontendPlugin ../plugins/sfGuardPlugin/data/fixtures/.tmpfixtures.yml.sample:
>> sfPearFrontendPlugin chmod(): Operation not permitted
>> sfPearFrontendPlugin failed to change mode of
>> sfPearFrontendPlugin ../plugins/sfGuardPlugin/lib/form/.tmpsfGuardFormSignin.class.php:
>> sfPearFrontendPlugin chmod(): Operation not permitted
>> sfPearFrontendPlugin failed to change mode of
>> sfPearFrontendPlugin ../plugins/sfGuardPlugin/lib/form/.tmpsfGuardGroupForm.class.php:
>> sfPearFrontendPlugin chmod(): Operation not permitted
>> sfPearFrontendPlugin failed to change mode of
>> sfPearFrontendPlugin ../plugins/sfGuardPlugin/lib/form/.tmpsfGuardGroupPermissionForm.class.php:
.
.
.
  Installation of "sfGuardPlugin" plugin failed: commit failed  


I am running ubuntu 8.04 and the folder is on a FAT32 partition. I get the error for chmod() a lot, but it didn't stop me from installing the plugin initially.


Would you like to be a candidate in your own US presidential election? Check out http://www.yourelection.net/us_election_game.php (powered by symfony)
Re: trouble upgrading sfGuardPlugin to work with symfony 1.1 [message #70101 is a reply to message #70099 ] Fri, 16 January 2009 22:19 Go to previous messageGo to next message
n8vo  is currently offline n8vo
Messages: 12
Registered: March 2007
Location: Fairbanks, Alaska
Junior Member
That's a permissions issue. You probably have part of the directory structure or hidden subversion files (filenames beginning with '.') owned by 'root' but you're running commands as yourself.

Try either,

1. changing the ownership of everything to yourself:

sudo chown -R . yourusername

or

2. run the plugin install command(s) with `sudo`

[Updated on: Fri, 16 January 2009 22:20]

Re: trouble upgrading sfGuardPlugin to work with symfony 1.1 [message #70102 is a reply to message #70101 ] Fri, 16 January 2009 22:22 Go to previous message
weiserc  is currently offline weiserc
Messages: 23
Registered: December 2007
Junior Member
yup running the command with "sudo" did the job thanks Smile


Would you like to be a candidate in your own US presidential election? Check out http://www.yourelection.net/us_election_game.php (powered by symfony)
Previous Topic:user registration/password reminder plugin bundled wih sfGuard
Next Topic:How would I translate the sfGuardUser module?
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software