composer php - Cakephp 3 upgrade tools unable to access file -
i try use cakephp 3 upgrade tool.
i installed composer, made this:
cd /path/to/upgrade bin/cake upgrade /home/mark/sites/my-app
then tons of error in windows command shell.
error: not access ''c:\mydir\upgrade\tmp\upgrade\a2d4223f62e3499a84b6ca30be24bfdb4cb6de40'' update c:\mydir\myapp\lib\cake\view\helper\cachehelper.php error: not access ''c:\mydir\upgrade\tmp\upgrade\7fbe7651712387f351b1eb670b14c18e1161fcb8'' update c:\mydir\myapp\lib\cake\view\helper\htmlhelper.php error: not access ''c:\mydir\upgrade\tmp\upgrade\2301f9bed1167ddb29ca4e06706d0d21bd015766'' update c:\mydir\myapp\lib\cake\view\helper\numberhelper.php error: not access ''c:\mydir\upgrade\tmp\upgrade\e71af0cbc7df7ff76e801c5fb06ec07ee7f45233'' update c:\mydir\myapp\lib\cake\view\helper\paginatorhelper.php error: not access ''c:\mydir\upgrade\tmp\upgrade\1b04b5a763ca4e798d1e176111e49008b7486724'' update c:\mydir\myapp\lib\cake\view\helper\texthelper.php error: not access ''c:\mydir\upgrade\tmp\upgrade\f8ead667c131610c1f70f38d10c7122b34d9a7fc'' update c:\mydir\myapp\lib\cake\view\helper\timehelper.php error: not access ''c:\mydir\upgrade\tmp\upgrade\4a2c2e7f3f7e9faf744d10e6e1f3ff24bead7f08'' update c:\mydir\myapp\lib\cake\view\helpercollection.php
i run command shell administrator. problem ? when check folder during operation, can see temporary file exists in folder.
i got same issue. here's description of issue :
- this git error
- git command fails called /upgradetool/src/shell/task/stagetask.php on line 176 exec() php function (seems different you)
- command run git looks :
git diff --no-index 't:\logiciels\cakephp_3_upgradetool\tmp\upgrade\c5d0aaadb3484d4bfe56bdfc4553b444f6789e66' 't:\logiciels\cakephp_3_upgradetool\tmp\upgrade\4a6662f82cd03d46b515c28f7d77ef8a64c08cfd'
edit (2015-07-12)
as ndm noted, "the source of problem single quote usage in arguments git command, windows cli pass them if belong file path"
i changed line (/upgradetool/src/shell/task/stagetask.php on line 176) :
exec("git diff --no-index "$opath" "$upath"', $output);
to :
exec('git diff --no-index "'.$opath.'" "'.$upath.'"', $output);
now process seems complete. many many !
Comments
Post a Comment