-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Again error "pm-updatestatus failed" and version PHP #2826
Comments
DRUSH_PHP is not supported anymore. You are better off changing your PATH so that the desired PHP comes first. You can do that for each call to Drush ( I'm not sure that PHP path is your problem but its the first thing that comes to mind. |
@weitzman Hi. I looked at the problem and this is looks like real error. Currently .basrhc file contains: PATH="/opt/php70/bin/php:$PATH:~/.config/composer/vendor/bin" and .bash_profile export COLUMNS
alias php='/opt/php70/bin/php'
alias drush='/opt/php70/bin/php ~/.config/composer/vendor/drush/drush/drush.php' Drush status works fine, but then I trying to execute …
Cache MISS cid: 8.1.12-alias-path--9e2d30ac3720b8825322ab97fab87ce8 [0.27 sec, 28.96 МБ] [debug]
Backend invoke: php /home/c/user/.config/composer/vendor/drush/drush/drush.php --backend=2 --verbose --debug --root=/home/c/user/balkon-plus-kuban.ru/public_html --uri=http://default [command]
pm-updatestatus 2>&1 [0.27 sec, 28.98 МБ]
php /home/c/user/.config/composer/vendor/drush/drush/drush.php --backend=2 --verbose --debug --root=/home/c/user/balkon-plus-kuban.ru/public_html --uri=http://default pm-updatestatus 2>&1 [0.27 [notice]
sec, 28.98 МБ]
The external command could not be executed due to an application error. [0.31 sec, 28.98 МБ] [error]
The command could not be executed successfully (returned: PHP Parse error: syntax error, unexpected '[' in /home/c/user/.config/composer/vendor/drush/drush/includes/preflight.inc on line 341 [error]
, code: 255) [0.31 sec, 28.98 МБ]
pm-updatestatus failed. [0.31 sec, 28.98 МБ] [error] Why did backend trying to invoke code from default PHP environment if it executed from other?
Why it still |
The most reliable way to control the PHP that Drush uses is to change your PATH. You can do that forever in .bashrc, or you can do it for just one request: |
The was misspell in PATH: PATH="/opt/php70/bin/php:$PATH:~/.config/composer/vendor/bin"
|
@weitzman @Niklan excellent!!!
|
Hi!
Drush installed via composer.
In my .bashrc/.bash_profile added
alias work good
Commands drush status/cc/cr/dl workin very good. drush pm-updatestatus workin too...
But!
drush up don't work!((
Error:
Why???
Php version for drush ok:
Help me, please!
--
Sory for my English
PS of course read issue #2027 #2155 #1294 , shared hosting, can't restart mysql server.
The text was updated successfully, but these errors were encountered: