Upgrading to 7.62 using drush 8 causes PHP Fatal error: Uncaught TYPO3\PharStreamWrapper\Exception

Created on 16 January 2019, over 5 years ago
Updated 22 May 2020, about 4 years ago

Upgrading from 7.61 to 7.62

Drush 8.1.18
PHP 7.2

Running drush up produces the following error:

PHP Fatal error:  Uncaught TYPO3\PharStreamWrapper\Exception: Unexpected file extension in
"phar:///usr/local/bin/drush/includes/.." in
/var/www/drupal/misc/typo3/drupal-security/PharExtensionInterceptor.php:39
Stack trace:
#0 /var/www/drupal/misc/typo3/phar-stream-wrapper/src/Behavior.php(72):
Drupal\Core\Security\PharExtensionInterceptor->assert('phar:///usr/loc...', 'url_stat')
#1 /var/www/drupal/misc/typo3/phar-stream-wrapper/src/Manager.php(83):
TYPO3\PharStreamWrapper\Behavior->assert('phar:///usr/loc...', 'url_stat')
#2 /var/www/drupal/misc/typo3/phar-stream-wrapper/src/PharStreamWrapper.php(412):
TYPO3\PharStreamWrapper\Manager->assert('phar:///usr/loc...', 'url_stat')
#3 /var/www/drupal/misc/typo3/phar-stream-wrapper/src/PharStreamWrapper.php(401):
TYPO3\PharStreamWrapper\PharStreamWrapper->assert('phar:///usr/loc...', 'url_stat')
#4 [internal function]: TYPO3\PharStreamWrapper\PharStreamWrapper->url_stat('phar:///usr/loc...', 2)
#5 phar:///usr/local/bin/drush/includes in
/var/www/drupal/misc/typo3/drupal-security/PharExtensionInterceptor.php on line 39
, code: 255)
pm-updatestatus failed. 

Note that upgrade to 7.62 does go through despite errors. Also note that subsequent drush up exist with this error.

πŸ› Bug report
Status

Closed: duplicate

Component
OtherΒ  β†’

Last updated about 10 hours ago

Created by

πŸ‡¨πŸ‡¦Canada ydahi Waterloo, Canada

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡³πŸ‡±Netherlands firfin

    I had the same problem on Lando (local dev environment) runnig the default 'drupal7' recipe.
    That apparently installs Drush 8.4.8 problem was fixed when using Drush 8.4.12

    ( add drush: '^8.4.12' to the .lando.yml file )

Production build 0.69.0 2024