[symfony-users] Re: where does symfony hard-code paths?

2009-06-16 Thread Jake Barnes

Weird. Today the problem has returned. Yet if I look for 'bp2':

grep -R bp2 *

All I get is what is left over from when the files were auto-generated
at the original site:

apps/frontend/modules/authority_status/actions/actions.class.php: *
@packagebp2
apps/frontend/modules/payment_type/actions/actions.class.php: *
@packagebp2
apps/frontend/modules/category/actions/actions.class.php: *
@packagebp2
apps/frontend/modules/contact/actions/actions.class.php: * @package
bp2
apps/frontend/modules/authority/actions/actions.class.php: *
@packagebp2
apps/frontend/modules/prize_type/actions/actions.class.php: *
@packagebp2
apps/frontend/modules/user/actions/actions.class.php: * @package
bp2
apps/frontend/modules/wait_list/actions/actions.class.php: *
@packagebp2
apps/frontend/modules/priority/actions/actions.class.php: *
@packagebp2
apps/frontend/modules/question_status/actions/actions.class.php: *
@packagebp2
apps/frontend/modules/authority_type/actions/actions.class.php: *
@packagebp2
apps/frontend/modules/page/actions/actions.class.php: * @package
bp2
apps/frontend/modules/payment_status/actions/actions.class.php: *
@packagebp2
apps/frontend/modules/email/actions/actions.class.php: * @package
bp2
apps/frontend/modules/question/actions/actions.class.php: *
@packagebp2
apps/backend/modules/category/actions/actions.class.php: * @package
bp2
apps/backend/modules/dashboard/actions/actions.class.php: *
@packagebp2
apps/backend/modules/category-bak/actions/actions.class.php: *
@packagebp2
apps/backend/modules/sf_guard_user/actions/actions.class.php: *
@packagebp2
apps/backend/modules/sf_guard_user/lib/
sf_guard_userGeneratorConfiguration.class.php: * @packagebp2
apps/backend/modules/sf_guard_user/lib/
sf_guard_userGeneratorHelper.class.php: * @packagebp2
apps/backend/modules/page/actions/actions.class.php: * @packagebp2


but if I switch over to this path:

/home/mypail/home/sfprojects/betatest/

and try this:

symfony cc

I once again get this:

Fatal error: Cannot redeclare class ProjectConfiguration in /home/
mypail/home/sfprojects/bp2/config/ProjectConfiguration.class.php on
line 28

So somewhere, somehow, the symfony commands are hardcoded to the old
path. But I can not find where that hard-coding is.

Any thoughts?





On Jun 15, 3:53 am, Lawrence lkrub...@geocities.com wrote:
 This was a surprising problem. I suppose it shows how poorly I
 understand Symfony.

 We were doing development on our server at this path:

 /home/mypail/home/sfprojects/bp2/

 On the server, in the directory that is available on the web, we
 created an alias so that the above path could be reached at an url
 like:

 http://www.domain.com/v1/

 After 2 months of hard-work, it was time to let some people test the
 site. Of course, we didn't want beta-testers looking at a site that
 the programmers were working on, since there was always the chance of
 some transitory bug arising during work. So I created a new directory,
 and then I copied everything over:

 cp -r /home/mypail/home/sfprojects/bp2/* /home/mypail/home/sfprojects/
 betatest/

 Then I created an alias so that our beta testers could see this site
 by pointing their browsers here:

 http://www.domain.com/v1/

 But when I ssh'ed to the server and cd'ed to here:

 /home/mypail/home/sfprojects/betatest/

 Every command I entered went back to the other, earlier path. For
 instance, if I went here:

 /home/mypail/home/sfprojects/betatest/

 and did this:

 # symfony cc

 then I got this error:

 Fatal error: Cannot redeclare class ProjectConfiguration in /home/
 mypail/home/sfprojects/bp2/config/ProjectConfiguration.class.php on
 line 28

 That is the path of the other site.

 I did all the obvious things:

 1.) I deleted everything in the cache folder.

 2.) I chased down every reference to the first site in the config
 files:

 grep bp2 config/*

 I looked in the symfony file itself, but I didn't see anything
 hardcoded there, other than the shebang line.

 Still the problem persisted.

 Finally, I tracked down, and changed, every single instance of bp2:

 grep -R bp2 *

 I deleted everything in the log folder, I deleted an error_log file
 that someone had started in the web directory. I deleted a backup of
 the database that had bp2 in it.

 None of these files struck me as important, but once I had deleted or
 changed every single instance of 'bp2', the symfony cc command began
 to work again.

 But where was the reference to the other path? It wasn't in the cache
 and it wasn't in any of the config files, because I took care of those
 early on. So where was it? Where else would Symfony store a hard-coded
 path?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 

[symfony-users] Re: where does symfony hard-code paths?

2009-06-16 Thread Fabien Potencier

2 possibilities:

  * The path is hardcoded in the config/ProjectConfiguration.class.php
  * You use a PHP accelerator and you need to restart Apache

Fabien

--
Fabien Potencier
Sensio CEO - symfony lead developer
sensiolabs.com | symfony-project.org | fabien.potencier.org
Tél: +33 1 40 99 80 80


Jake Barnes wrote:
 Weird. Today the problem has returned. Yet if I look for 'bp2':
 
 grep -R bp2 *
 
 All I get is what is left over from when the files were auto-generated
 at the original site:
 
 apps/frontend/modules/authority_status/actions/actions.class.php: *
 @packagebp2
 apps/frontend/modules/payment_type/actions/actions.class.php: *
 @packagebp2
 apps/frontend/modules/category/actions/actions.class.php: *
 @packagebp2
 apps/frontend/modules/contact/actions/actions.class.php: * @package
 bp2
 apps/frontend/modules/authority/actions/actions.class.php: *
 @packagebp2
 apps/frontend/modules/prize_type/actions/actions.class.php: *
 @packagebp2
 apps/frontend/modules/user/actions/actions.class.php: * @package
 bp2
 apps/frontend/modules/wait_list/actions/actions.class.php: *
 @packagebp2
 apps/frontend/modules/priority/actions/actions.class.php: *
 @packagebp2
 apps/frontend/modules/question_status/actions/actions.class.php: *
 @packagebp2
 apps/frontend/modules/authority_type/actions/actions.class.php: *
 @packagebp2
 apps/frontend/modules/page/actions/actions.class.php: * @package
 bp2
 apps/frontend/modules/payment_status/actions/actions.class.php: *
 @packagebp2
 apps/frontend/modules/email/actions/actions.class.php: * @package
 bp2
 apps/frontend/modules/question/actions/actions.class.php: *
 @packagebp2
 apps/backend/modules/category/actions/actions.class.php: * @package
 bp2
 apps/backend/modules/dashboard/actions/actions.class.php: *
 @packagebp2
 apps/backend/modules/category-bak/actions/actions.class.php: *
 @packagebp2
 apps/backend/modules/sf_guard_user/actions/actions.class.php: *
 @packagebp2
 apps/backend/modules/sf_guard_user/lib/
 sf_guard_userGeneratorConfiguration.class.php: * @packagebp2
 apps/backend/modules/sf_guard_user/lib/
 sf_guard_userGeneratorHelper.class.php: * @packagebp2
 apps/backend/modules/page/actions/actions.class.php: * @packagebp2
 
 
 but if I switch over to this path:
 
 /home/mypail/home/sfprojects/betatest/
 
 and try this:
 
 symfony cc
 
 I once again get this:
 
 Fatal error: Cannot redeclare class ProjectConfiguration in /home/
 mypail/home/sfprojects/bp2/config/ProjectConfiguration.class.php on
 line 28
 
 So somewhere, somehow, the symfony commands are hardcoded to the old
 path. But I can not find where that hard-coding is.
 
 Any thoughts?
 
 
 
 
 
 On Jun 15, 3:53 am, Lawrence lkrub...@geocities.com wrote:
 This was a surprising problem. I suppose it shows how poorly I
 understand Symfony.

 We were doing development on our server at this path:

 /home/mypail/home/sfprojects/bp2/

 On the server, in the directory that is available on the web, we
 created an alias so that the above path could be reached at an url
 like:

 http://www.domain.com/v1/

 After 2 months of hard-work, it was time to let some people test the
 site. Of course, we didn't want beta-testers looking at a site that
 the programmers were working on, since there was always the chance of
 some transitory bug arising during work. So I created a new directory,
 and then I copied everything over:

 cp -r /home/mypail/home/sfprojects/bp2/* /home/mypail/home/sfprojects/
 betatest/

 Then I created an alias so that our beta testers could see this site
 by pointing their browsers here:

 http://www.domain.com/v1/

 But when I ssh'ed to the server and cd'ed to here:

 /home/mypail/home/sfprojects/betatest/

 Every command I entered went back to the other, earlier path. For
 instance, if I went here:

 /home/mypail/home/sfprojects/betatest/

 and did this:

 # symfony cc

 then I got this error:

 Fatal error: Cannot redeclare class ProjectConfiguration in /home/
 mypail/home/sfprojects/bp2/config/ProjectConfiguration.class.php on
 line 28

 That is the path of the other site.

 I did all the obvious things:

 1.) I deleted everything in the cache folder.

 2.) I chased down every reference to the first site in the config
 files:

 grep bp2 config/*

 I looked in the symfony file itself, but I didn't see anything
 hardcoded there, other than the shebang line.

 Still the problem persisted.

 Finally, I tracked down, and changed, every single instance of bp2:

 grep -R bp2 *

 I deleted everything in the log folder, I deleted an error_log file
 that someone had started in the web directory. I deleted a backup of
 the database that had bp2 in it.

 None of these files struck me as important, but once I had deleted or
 changed every single instance of 'bp2', the symfony cc command began
 to work again.

 But where was the reference to the other path? It wasn't in the cache
 and it wasn't in any of the config files, because I took 

[symfony-users] Re: where does symfony hard-code paths?

2009-06-16 Thread Eno

On Jun 16, 12:49 am, Jake Barnes lkrub...@geocities.com wrote:

 You are sending me to a URL that has no relevance to what I wrote. Did
 you mean to post this in a different thread?

The chapter therein describes how to customize symfony.  You need to
edit the configuration of your controller so it refers to the newly
copied tree rather than the old tree. So, yeah, I think it was
relevant.


--

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: where does symfony hard-code paths?

2009-06-15 Thread alvaro

Depends on the version of symfony you are using.

Check on the config.php files or in the ProjectConfiguration ones.  
There should be the path to the symfony libraries.

Cheers,

Alvaro
On Jun 15, 2009, at 3:53 PM, Lawrence wrote:


 This was a surprising problem. I suppose it shows how poorly I
 understand Symfony.

 We were doing development on our server at this path:

 /home/mypail/home/sfprojects/bw2/

 On the server, in the directory that is available on the web, we
 created an alias so that the above path could be reached at an url
 like:

 http://www.domain.com/v1/

 After 2 months of hard-work, it was time to let some people test the
 site. Of course, we didn't want beta-testers looking at a site that
 the programmers were working on, since there was always the chance of
 some transitory bug arising during work. So I created a new directory,
 and then I copied everything over:

 cp -r /home/mypail/home/sfprojects/bp2/* /home/mypail/home/sfprojects/
 betatest/

 Then I created an alias so that our beta testers could see this site
 by pointing their browsers here:

 http://www.domain.com/v1/

 But when I ssh'ed to the server and cd'ed to here:

 /home/mypail/home/sfprojects/betatest/

 Every command I entered went back to the other, earlier path. For
 instance, if I went here:

 /home/mypail/home/sfprojects/betatest/

 and did this:

 # symfony cc

 then I got this error:

 Fatal error: Cannot redeclare class ProjectConfiguration in /home/
 mypail/home/sfprojects/bp2/config/ProjectConfiguration.class.php on
 line 28

 That is the path of the other site.


 I did all the obvious things:

 1.) I deleted everything in the cache folder.

 2.) I chased down every reference to the first site in the config
 files:

 grep bp2 config/*

 I looked in the symfony file itself, but I didn't see anything
 hardcoded there, other than the shebang line.

 Still the problem persisted.

 Finally, I tracked down, and changed, every single instance of bp2:

 grep -R bp2 *

 I deleted everything in the log folder, I deleted an error_log file
 that someone had started in the web directory. I deleted a backup of
 the database that had bp2 in it.

 None of these files struck me as important, but once I had deleted or
 changed every single instance of 'bp2', the symfony cc command began
 to work again.

 But where was the reference to the other path? It wasn't in the cache
 and it wasn't in any of the config files, because I took care of those
 early on. So where was it? Where else would Symfony store a hard-coded
 path?

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: where does symfony hard-code paths?

2009-06-15 Thread Eno

On Mon, 15 Jun 2009, Lawrence wrote:

 This was a surprising problem. I suppose it shows how poorly I
 understand Symfony.

Yes, probably.

http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Configuration-Files#chapter_19_sub_customizing_the_file_structure



-- 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: where does symfony hard-code paths?

2009-06-15 Thread Jake Barnes



On Jun 15, 4:31 am, alvaro harryjek...@gmail.com wrote:
 Depends on the version of symfony you are using.

 Check on the config.php files or in the ProjectConfiguration
 ones.  
 There should be the path to the symfony libraries.


As I said before, those were the first files that I checked.


















  This was a surprising problem. I suppose it shows how poorly I
  understand Symfony.

  We were doing development on our server at this path:

  /home/mypail/home/sfprojects/bw2/

  On the server, in the directory that is available on the web, we
  created an alias so that the above path could be reached at an url
  like:

 http://www.domain.com/v1/

  After 2 months of hard-work, it was time to let some people test the
  site. Of course, we didn't want beta-testers looking at a site that
  the programmers were working on, since there was always the chance of
  some transitory bug arising during work. So I created a new directory,
  and then I copied everything over:

  cp -r /home/mypail/home/sfprojects/bp2/* /home/mypail/home/sfprojects/
  betatest/

  Then I created an alias so that our beta testers could see this site
  by pointing their browsers here:

 http://www.domain.com/v1/

  But when I ssh'ed to the server and cd'ed to here:

  /home/mypail/home/sfprojects/betatest/

  Every command I entered went back to the other, earlier path. For
  instance, if I went here:

  /home/mypail/home/sfprojects/betatest/

  and did this:

  # symfony cc

  then I got this error:

  Fatal error: Cannot redeclare class ProjectConfiguration in /home/
  mypail/home/sfprojects/bp2/config/ProjectConfiguration.class.php on
  line 28

  That is the path of the other site.

  I did all the obvious things:

  1.) I deleted everything in the cache folder.

  2.) I chased down every reference to the first site in the config
  files:

  grep bp2 config/*

  I looked in the symfony file itself, but I didn't see anything
  hardcoded there, other than the shebang line.

  Still the problem persisted.

  Finally, I tracked down, and changed, every single instance of bp2:

  grep -R bp2 *

  I deleted everything in the log folder, I deleted an error_log file
  that someone had started in the web directory. I deleted a backup of
  the database that had bp2 in it.

  None of these files struck me as important, but once I had deleted or
  changed every single instance of 'bp2', the symfony cc command began
  to work again.

  But where was the reference to the other path? It wasn't in the cache
  and it wasn't in any of the config files, because I took care of those
  early on. So where was it? Where else would Symfony store a hard-coded
  path?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: where does symfony hard-code paths?

2009-06-15 Thread Jake Barnes



On Jun 15, 9:38 am, Eno symb...@gmail.com wrote:
 On Mon, 15 Jun 2009, Lawrence wrote:
  This was a surprising problem. I suppose it shows how poorly I
  understand Symfony.

 Yes, probably.

 http://www.symfony-project.org/book/1_2/19-Mastering-
 Symfony-s-Config...


You are sending me to a URL that has no relevance to what I wrote. Did
you mean to post this in a different thread?









--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---