Skip to content

Again error "pm-updatestatus failed" and version PHP #2826

@pselfin

Description

@pselfin

Hi!
Drush installed via composer.
In my .bashrc/.bash_profile added

export DRUSH_PHP='/opt/php56/bin/php'
export COLUMNS
alias composer='/opt/php56/bin/php -d memory_limit=500M /home/c/XXXX/composer.phar'
alias drush='/opt/php56/bin/php -d memory_limit=500M /home/c/XXXX/vendor/bin/drush.php'

alias work good

public_html$ drush --version
 Drush Version   :  8.1.12

Commands drush status/cc/cr/dl workin very good. drush pm-updatestatus workin too...

But!
drush up don't work!((

Error:

public_html$ drush up
The external command could not be executed due to an application error.                                                                                 [error]
The command could not be executed successfully (returned: PHP Parse error:  syntax error, unexpected '[' in                                             [error]
/home/c/ct00533/vendor/drush/drush/includes/preflight.inc on line 341
, code: 255)
pm-updatestatus failed.  

Why???

Php version for drush ok:

public_html$ drush status
 PHP configuration               :  /etc/php56/cli/php.ini
 PHP OS                          :  Linux
 Drush script                    :  /home/c/XXXX/vendor/drush/drush/drush.php
 Drush version                   :  8.1.12

Help me, please!

--
Sory for my English

PS of course read issue #2027 #2155 #1294 , shared hosting, can't restart mysql server.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions