From this comment:

the new .install file will create variable like amazons3_presigned_urls = ''; which cause below error.

Warning: Invalid argument supplied for foreach() in Drupal\amazons3\StreamWrapperConfiguration::fromDrupalVariables() (line 391 of /var/www/html/sites/all/modules/contrib/amazons3/src/StreamWrapperConfiguration.php).
Recoverable fatal error: Argument 1 passed to Drupal\amazons3\Matchable\BasicPath::factory() must be of the type array, string given, called in /var/www/html/sites/all/modules/contrib/amazons3/src/StreamWrapperConfiguration.php on line 400 and defined in Drupal\amazons3\Matchable\BasicPath::factory() (line 31 of /var/www/html/sites/all/modules/contrib/amazons3/src/Matchable/BasicPath.php).

It require to drush vdel amazons3_presigned_urls to fix the error

Comments

deviantintegral’s picture

Does anyone have an example of a variable that breaks the amazons3_update_7203 upgrade hook?

deviantintegral’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Feel free to reopen if you can reproduce this.

tripper54’s picture

Status: Closed (cannot reproduce) » Active

I've just encountered the same problem upgrading from 1.1 to 2.0

amazons3_presigned_urls seems to be equal to an empty string in the pre-upgraded DB:
s:0:"";

tripper54’s picture

I also had to vdel amazons3_torrents and amazons3_saveas. Both were set to empty strings post upgrade.