Drupal - upgrade from 8.6.7 to 8.8.1

六月ゝ 毕业季﹏ 提交于 2020-01-05 01:40:08

问题


I have upgraded using below command https://www.cloudways.com/blog/update-drupal-8-core/ https://alvinalexander.com/drupal/how-update-drupal-7-website-with-drush

drush pm-update

After update it gives below error

Fatal error: Class 'Aws\S3\StreamWrapper' not found in //web/modules/contrib/s3fs/src/StreamWrapper/S3fsStream.php on line 23

I also added latest AWS SDK

composer require aws/aws-sdk-php

Any idea how to fix this?

[UPDATE] Before Upgrade 8.6.16:

composer.json
composer.lock
config -> Folder
docs -> Folder
drush -> Folder
LICENSE
load.environment.php
phpunit.xml.dist
README.md
vendor -> Folder
web -> Folder
 -> autoload.php
 -> core -> Folder
 -> index.php
 -> libaries -> Folder
 -> modules -> Folder
 -> profiles -> Folder
 -> robots.txt
 -> sites -> Folder
 -> themes -> Folder
 -> update.php
 -> web.config

After Upgrade 8.8.11 :

composer.json
composer.lock
config -> Folder
docs -> Folder
drush -> Folder
LICENSE
load.environment.php
phpunit.xml.dist
README.md
vendor -> Folder
web -> Folder
 -> autoload.php
 -> composer.json [NEW FILES]
 -> composer.lock [NEW FILES]
 -> core -> Folder
 -> index.php
 -> libaries -> Folder
 -> modules -> Folder
 -> profiles -> Folder
 -> robots.txt
 -> sites -> Folder
 -> themes -> Folder
 -> vendor -> [NEW FOLDER]
 -> update.php
 -> web.config

Then I run composer dump-autoload. I renamed web/composer.json_1 & web/composer.lock_1'.

I copy/paste inside web\vendor folder to root\web. So there is only 1 vendor folder.

After that I got

PHP Warning:  require(//web/vendor/autoload.php): failed to open stream: No such file or directory in /web/autoload.php on line 16

Error so I changed path from

return require __DIR__ . '/vendor/autoload.php';

to

return require __DIR__ . '/../vendor/autoload.php';

Now I am getting

Fatal error: Declaration of Drupal\Core\Security\PharExtensionInterceptor::assert(string $path, string $command): bool must be compatible with TYPO3\PharStreamWrapper\Assertable::assert($path, $command) in /web/core/lib/Drupal/Core/Security/PharExtensionInterceptor.php on line 14

I hope I am following the right process.

来源:https://stackoverflow.com/questions/59527569/drupal-upgrade-from-8-6-7-to-8-8-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!