symfony
symfony forum
Home » legacy support » symfony 1.0 » Error on symfony freeze when custom web dir name
Error on symfony freeze when custom web dir name [message #20969] Sun, 04 February 2007 17:15 Go to next message
qube  is currently offline qube
Messages: 88
Registered: August 2006
Location: Czech republic
Member
Hi,

I have customized web directory name and during symfony freeze command (Symfony 1.0.0rc2), I get following error at the end:

...
>> file+     data/symfony\web\sf\sf_web_debug\js\main.js
>> rename    data/symfony/web/sf > web/sf
PHP Warning:  rename(): Unable to access web/sf in c:\php51\PEAR\symfony\vendor\pake\pakeFunction.php on line 153

Warning: rename(): Unable to access web/sf in c:\php51\PEAR\symfony\vendor\pake\pakeFunction.php on line 153
>> file+     symfony.php


I tried specifying $sf_root_dir, $sf_web_dir, $sf_upload_dir in config/config.php, but it does not helped.

When I rename customized web directory to standard 'web' name, it works fine.

Can I somehow set web directory name for freeze command? Or is it a bug?
Re: Error on symfony freeze when custom web dir name [message #27810 is a reply to message #20969 ] Mon, 21 May 2007 23:18 Go to previous messageGo to next message
qube  is currently offline qube
Messages: 88
Registered: August 2006
Location: Czech republic
Member
Same problem, different error message in Symfony 1.0.2.

...
>> file+     data/symfony\web\sf\sf_web_debug\js\main.js
>> rename    data/symfony/web/sf > web/sf
PHP Warning:  rename(data/symfony/web/sf,web/sf): No such file or directory in c:\php51\PEAR\symfony\vendor\pake\pakeFunction.php on line 153

Warning: rename(data/symfony/web/sf,web/sf): No such file or directory in c:\php51\PEAR\symfony\vendor\pake\pakeFunction.php on line 153
>> file+     symfony.php


Any thoughts?
Re: Error on symfony freeze when custom web dir name [message #29794 is a reply to message #20969 ] Wed, 20 June 2007 13:47 Go to previous messageGo to next message
skoop  is currently offline skoop
Messages: 21
Registered: November 2006
Location: The Netherlands
Junior Member

We have a similar problem, our document root is called HTML

What I did is to add a step in our deployment process, where I now do the following:

1. Make clean Subversion export
2. create directory web
3. Symfony freeze
4. Move web/sf to HTML/
5. remove web/ directory
6. Symfony sync production go

There is a ticket for this issue in the Symfony Trac: #1582


Ibuildings - The PHP Professionals
Re: Error on symfony freeze when custom web dir name [message #42154 is a reply to message #20969 ] Thu, 20 December 2007 22:32 Go to previous messageGo to next message
Fabian.Lange  is currently offline Fabian.Lange
Messages: 8
Registered: January 2007
Junior Member
Hi all,
the problem was resolved during todays symfony sprint.
To get the correction just upgrade symfony to 1.0.10 by
pear upgrade symfony/symfony
enjoy!

Razz

Fabian
PS:
For the experts the trac for the issuethat was solved is http://trac.symfony-project.com/ticket/2605
the backport to 1.0.x branch was done in revison 6622 http://trac.symfony-project.com/changeset/6622
Re: Error on symfony freeze when custom web dir name [message #52283 is a reply to message #42154 ] Mon, 19 May 2008 14:22 Go to previous messageGo to next message
leon  is currently offline leon
Messages: 30
Registered: March 2008
Member
I have symfony 1.0.16 and I have the same error during the freeze as qube Sad

I have checked the sfPakeSymfony.php and there is corrected version.
I have changed the directory structure according to The Book and set the sf_web_dir in application config.php

But isn't it to late to set the sf_web_dir only in config.php of one of the application? I think it should be set for the whole project, isn't it? The freeze command is using which configuration?
Re: Error on symfony freeze when custom web dir name [message #61206 is a reply to message #52283 ] Wed, 17 September 2008 19:47 Go to previous message
simongl  is currently offline simongl
Messages: 20
Registered: July 2008
Location: QC
Junior Member
Freezing a symfony 1.0.11 project, I have the same error ('web' has been renamed to 'public_html') :

PHP Warning:  rename(/home/sglessard/CLH/site/data/symfony/web/sf,/home/sglessard/CLH/site/web/sf): No such file or directory in /usr/share/pear/symfony/vendor/pake/pakeFunction.php on line 153

Warning: rename(/home/sglessard/CLH/site/data/symfony/web/sf,/home/sglessard/CLH/site/web/sf): No such file or directory in /usr/share/pear/symfony/vendor/pake/pakeFunction.php on line 153


While this is not a major issue, is there anything new about it?
Previous Topic:i want to play swf file in my symfony page
Next Topic:sfMogileFSPlugin saving file problem
Goto Forum:
  

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