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 » General plug-ins » [SOLVE][sf 1.4.6] publish asset symlink issue
[SOLVE][sf 1.4.6] publish asset symlink issue [message #103133] Tue, 27 July 2010 16:05 Go to next message
iLoLo21  is currently offline iLoLo21
Messages: 11
Registered: March 2008
Location: France
Junior Member
Hello

When I use this command :

php lib/symfony plugin:publish-assets


this error is return :

Warning: symlink(): Operation not supported in /lib/symfony/lib/task/sfFilesystem.class.php on line 224

Call Stack:
    0.0022      57632   1. {main}() /lib/symfony/data/bin/symfony:0
    0.0156     318624   2. include('/lib/symfony/lib/command/cli.php') /lib/symfony/data/bin/symfony:37
    0.5091    6552160   3. sfSymfonyCommandApplication->run() /lib/symfony/lib/command/cli.php:20
    0.5139    6553896   4. sfTask->runFromCLI() /lib/symfony/lib/command/sfSymfonyCommandApplication.class.php:76
    0.5140    6554220   5. sfBaseTask->doRun() /lib/symfony-/lib/task/sfTask.class.php:97
    0.7130    6617388   6. sfPluginPublishAssetsTask->execute() /lib/symfony/lib/task/sfBaseTask.class.php:68
    0.7134    6618588   7. sfPluginPublishAssetsTask->installPluginAssets() /lib/symfony/lib/task/plugin/sfPluginPublishAssetsTask.class.php:82
    0.7164    6722228   8. sfFilesystem->relativeSymlink() /lib/symfony/lib/task/plugin/sfPluginPublishAssetsTask.class.php:98
    0.7165    6722572   9. sfFilesystem->symlink() /lib/symfony/lib/task/sfFilesystem.class.php:242
    0.7175    6722936  10. symlink() /lib/symfony/lib/task/sfFilesystem.class.php:224


I work with symfony 1.4.6 and with ubuntu.

Someone has a way to fix ? Thanks Smile

[Updated on: Wed, 28 July 2010 09:46]

Re: [sf 1.4.6] publish asset symlink issue [message #103135 is a reply to message #103133 ] Tue, 27 July 2010 16:42 Go to previous messageGo to next message
jeob  is currently offline jeob
Messages: 7
Registered: July 2010
Junior Member
Hi,

I supposed you have allready done that but just in case of :

Have you check the rights on the directory ? the user who lauch the command must have the write permission on the directory.




Re: [sf 1.4.6] publish asset symlink issue [message #103136 is a reply to message #103135 ] Tue, 27 July 2010 16:44 Go to previous messageGo to next message
iLoLo21  is currently offline iLoLo21
Messages: 11
Registered: March 2008
Location: France
Junior Member
Quote:

Have you check the rights on the directory ? the user who lauch the command must have the write permission on the directory.


My user is root Smile

When I test with an user havn't the write permission I have this error :

Warning: symlink(): Permission denied in /lib/symfony/lib/task/sfFilesystem.class.php on line 224


So it's an other issue

[Updated on: Tue, 27 July 2010 16:51]

Re: [sf 1.4.6] publish asset symlink issue [message #103138 is a reply to message #103136 ] Tue, 27 July 2010 17:10 Go to previous messageGo to next message
jeob  is currently offline jeob
Messages: 7
Registered: July 2010
Junior Member
ok

For which module have you got this problem ?

[Updated on: Tue, 27 July 2010 17:17]

Re: [sf 1.4.6] publish asset symlink issue [message #103139 is a reply to message #103138 ] Tue, 27 July 2010 17:21 Go to previous messageGo to next message
iLoLo21  is currently offline iLoLo21
Messages: 11
Registered: March 2008
Location: France
Junior Member
I have generate a backend module with admin generator and I would like set layout.

I read symfony documentation for do this => http://www.symfony-project.org/jobeet/1_4/Doctrine/fr/12


Quote:


The admin generator provides all the features you need to create a backend interface in a simple to configure package.

If you have a look at our two generated modules, you will notice there is no activated webdesign whereas the symfony built-in admin generator feature has a basic graphic interface by default. For now, assets from the sfDoctrinePlugin are not located under the web/ folder. We need to publish them under the web/ folder thanks to the plugin:publish-assets task:

$ php symfony plugin:publish-assets

[Updated on: Tue, 27 July 2010 17:21]

Re: [sf 1.4.6] publish asset symlink issue [message #103141 is a reply to message #103139 ] Tue, 27 July 2010 17:55 Go to previous messageGo to next message
iLoLo21  is currently offline iLoLo21
Messages: 11
Registered: March 2008
Location: France
Junior Member
In fact when I test to create a symbolic link with a test.php file, I have the same error.

<?php

$target = 'robots.txt';
$link = 'robotslink';
symlink($target, $link);

echo readlink($link);


It must be a php configuration issue and not symfony issue.

I use a virtual machine with ubuntu. PHP 5.2.10.

[Updated on: Tue, 27 July 2010 18:00]

Re: [sf 1.4.6] publish asset symlink issue [message #103144 is a reply to message #103141 ] Tue, 27 July 2010 18:26 Go to previous messageGo to next message
iLoLo21  is currently offline iLoLo21
Messages: 11
Registered: March 2008
Location: France
Junior Member
I have found the issue.
In fact my VM use NTFS file system. So I can't create symbolic link.

Can I solve the problem with an alias ?
Re: [sf 1.4.6] publish asset symlink issue [message #103145 is a reply to message #103144 ] Tue, 27 July 2010 19:02 Go to previous message
jeob  is currently offline jeob
Messages: 7
Registered: July 2010
Junior Member
I don't know but the symlink php function only work with

Windows Vista/Windows Server 2008 and older so ....

http://php.net/manual/fr/function.symlink.php
Previous Topic:sfJqueryReloadedPlugin ??
Next Topic:Which payement plugin to chose ?
Goto Forum:
  

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