## 最初のエラー
### 1. modules サブディレクトリから古い 2.x 版の simple_sitemap を削除。
### 2. modules サブディレクトリに新しい 3.x 版の simpla_sitemap をインストール
拡張機能 》SSO 》Simple XML Sitemap 》Configure を実行すると次のエラー。
The website encountered an unexpected error. Please try again later. TypeError: Argument 3 passed to Drupal\simple_sitemap\EntityHelper::__construct() must implement interface Drupal\Core\Entity\EntityTypeBundleInfoInterface, none given, called in /var/vhosts/<a href="http://www.postgresql.jp/drupal-8.6.16/core/lib/Drupal/Component/DependencyInjection/Container.php">www.postgresql.jp/drupal-8.6.16/core/lib/Drupal/Component/DependencyInj…</a> on line 266 in Drupal\simple_sitemap\EntityHelper->__construct() (line 45 of modules/simple_sitemap/src/EntityHelper.php).
## 2度目のトライ
次の手順で途中までうまくいった。
## 1. 上記と同じ。
* 1.1 cd モジュールディレクトリ; rm -rf simple_sitemap
* 1.2 drupal 管理画面から、[拡張機能 》リスト] でモジュール一覧表示
simple-sitemap が消えたことを確認。
## 2. 上記と同じ。
* 2.1 cd モジュールディレクトリ; tar xvfz simple_sitemap-8.x-3.3.tar.gz
(simple_sitemap-8.x-3.3.tar.gz はあらかじめダウンロードしておく)
* 2.2 drupal 管理画面から、[ 拡張機能 》リスト ] でモジュール一覧を確認
simplesitemap と simple_sitemap(Vies) があることを確認。
* 2.3 [ 拡張機能 》リスト ] の「Simple XML Sitema(Views)」をチェックしてインストール
拡張機能 》SSO 》Simple XML Sitema(Views) チェックボックスをクリックし、
「インストール」ボタンをクリックすると、
> モジュール Simple XML Sitemap (Views) が有効化されました。
と表示される。
ここで、「Configure」 をクリックすると、次のエラー。
サイトに予期せぬエラーが起こりました。しばらくたってから再度お試しください。</br></br><em class="placeholder">Drupal\Core\Database\DatabaseExceptionWrapper</em>: SQLSTATE[42703]: Undefined column: 7 ERROR: column &quot;type&quot; does not exist LINE 1: SELECT type, status FROM simple_sitemap GROUP BY type, statu... ^: SELECT type, status FROM {simple_sitemap} GROUP BY type, status; Array ( ) in <em class="placeholder">Drupal\simple_sitemap\Form\SimplesitemapSettingsForm-&gt;fetchSitemapInstanceStatuses()</em> (line <em class="placeholder">341</em> of <em class="placeholder">modules/simple_sitemap/src/Form/SimplesitemapSettingsForm.php</em>).
## 最後に次の操作でやっと更新成功
### 3. DBの更新
ブラウザで、
> https://サイトのドメイン/update.php
にアクセスすると、次のようは表示となる。
```
Drupal データベース更新
アップデートを適用する先の Drupal のバージョンを自動で判別しました。
承認待ちのアップデートが 10 個あります
simple_sitemap module
8210 - Adding 'type' and 'delta' fields to simple_sitemap table.
8211 - Adding simple_sitemap.variants and simple_sitemap.types to configuration.
8212 - Changing storage data type of 'index' and 'include_images' from integer to boolean.
8213 - Altering the configuration storage of variants.
8214 - Removing sitemap types from configuration as they are to be stored as plugins in code.
8215 - Adding 'status' field to simple_sitemap table and weight to variants.
8216 - Adding per-variant bundle and entity override configuration.
8217 - Adding per-variant custom link configuration.
8301 - Changing id and delta fields of simple_sitemap table from smallint to int.
8302 - Removing unused batch_process_limit key from simple_sitemap.settings configuration.
[保留中のアップデートを適用する]
```
のような表示がされるので、「保留中のアップデートを適用する」ボタンをクリックする。
すると、以下のアップデートのメッセージが返される。
```
simple_sitemap モジュール
アップデート #8217
The XML sitemaps need to be regenerated.
```
これで、更新終了。
ブラウザ管理画面から、「拡張機能 》SSO 》Simple XML Sitemap 》Configure」 が可能になった。
このURLは、
> https://サイトのドメイン/admin/config/search/simplesitemap
である。