# Prestashop + Docker Upgrade : 1.7.x -\> 8.2.x -\> 9.0.3

**URL:** https://forum.ficusonline.com/t/topic/536
**Category:** Server
**Created:** [2025 年 9 月 21 日午前 8:42 UTC](https://forum.ficusonline.com/t/topic/536 "2025-09-21T08:42:09Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![tk-fuse](https://forum.ficusonline.com/user_avatar/forum.ficusonline.com/tk-fuse/32/255_2.png) [@tk-fuse](https://forum.ficusonline.com/u/tk-fuse)
#### Post date: [2026 年 2 月 19 日午後 2:11 UTC](https://forum.ficusonline.com/t/topic/536/3 "2026-02-19T14:11:15Z")

</div>

### 8.2.4 -＞ 9.0.3 へのアップデート時のエラー

 ![Screenshot from 2026-02-19 22-25-36](https://forum.ficusonline.com/uploads/default/original/2X/1/1fae44aa256f1c7d1582c637f659517342682fc6.png)

管理画面でキャッシュをクリアし、ps\_mboとps\_metricsを無効にしてアップデートを実行すること。

> 注）ps\_metricsについては、無効にしても下記エラーが発生するため、管理画面で無効にしたの上でモジュールそのものを削除、またはフォルダ名を変更して読み込まないようにすること。

```auto
/modules/ps_metrics/src/Adapter/LoggerAdapter.php line 75

Declaration of PrestaShop\Module\Ps_metrics\Adapter\LoggerAdapter::emergency
($message, array $context = [])
must be compatible with

Psr\Log\LoggerInterface::emergency(string|\Stringable $message, array $context = []): void

```

ps\_metricsモジュールの LoggerAdapter(emergency($message, array $context = )) が古いため発生したエラー。

上記モジュールを無効にして再度アップデート。このモジュールはショップのプロセスには何も影響しないため名称変更して無効化。

```auto
$ docker exec -ti prestashop-fpm bash
# mv ps_metrics ps_metrics_disabled

```

* * *

### メール送信エラー

> **[Mailer Migration - Changes in PrestaShop 9.0.x](https://devdocs.prestashop-project.org/9/modules/core-updates/9.0/#mailer-migration)**
>
> This section provides a list of the most significant changes in PrestaShop 9.0.x. While this list is not exhaustive, it aims to give developers a clear overview of the important updates. If you notice any missing or incorrect information, please help...

MailerはswiftmailerからSymfony Mailerへ変更  
Gmailのsmtpポートは587のままだとエラー。465に設定すると送信可。

> <https://github.com/PrestaShop/PrestaShop/issues/36663>
>
> \### Prerequisites
> 
> \- \[X\] I understand and accept the project's \[code of conduc…t\](https://github.com/PrestaShop/PrestaShop/blob/develop/CODE\_OF\_CONDUCT.md).
> \- \[X\] I have already \[searched in existing issues\](https://github.com/PrestaShop/PrestaShop/issues?q=is%3Aissue+label%3ABug) and found no previous report of this bug.
> 
> \### Describe the bug and add attachments
> 
> PS 9 implementing Symfony Mailer, PS 8 Swift Mailer.
> 
> PS1.7-PS8 with port 587 with TLS working well.
> PS9 port 587 isn't working, I investigated, port 465 is working..
> \*\*If eshop owner update PrestaShop from version 8 to 9, SMTP will stop working.\*\* (because other port definition)
> Huge BC... After update will eshop owner totally lost with this.
> 
> I tested more mail providers, same problem. Not related to mail service.
> 
> There is changed connection string:
> \`\`\`
> PS 8 connection string:
> tcp://smtp.seznam.cz:587
> PS 9 connection string
> ssl://smtp.seznam.cz:587
> \`\`\`
> 
> \### Expected behavior
> 
> Working same like in PS8
> 
> \### Steps to reproduce
> 
> 1) BO - tools - emails
> 2) fill SMTP credentials (TLS + port 587)
> 3) compare PS8 vs PS9 (PS8 will works, PS9 doesn't work)
> 
> \### PrestaShop version(s) where the bug happened
> 
> 9.0.0
> 
> \### PHP version(s) where the bug happened
> 
> 8.1+8.2+8.3
> 
> \### If your bug is related to a module, specify its name and its version
> 
> \_No response\_
> 
> \### Your company or customer's name goes here (if applicable).
> 
> https://www.openservis.cz/

* * *

### Friendly URL（URL書き換え）のリセット

管理画面にブラウザからアクセスできなくなった場合、データベースでリセット  
`PS_REWRITING_SETTINGS`( **テーブルps\_configuration** )を検索して１から０へ変更。  
キャッシュ削除

```shell
# rm -rf var/cache/*

```

* * *

### ログイン不可

IDとパスワードは正しく、ログイン画面に戻ってきてしまう。

.htaccessファイルに以下のみを指定。

> SetEnvIf X-Forwarded-Proto https HTTPS=on

下記データを一時的に無効

> `PS_COOKIE_CHECKIP` を `0`

ログインして以下手順で`.htaccess`を再生成

- 管理画面の ショップパラメータ \> トラフィック & SEO に移動。
- 下の方にある「URLの設定」セクションで、フレンドリーURLを一度「いいえ」にして保存し、再度「はい」にして保存

* * *

### メールテンプレート

`themes/classic/mails`にメールテンプレートが残っている場合、ここが優先されて使用されますが、これらテンプレートは変換コマンドでは上書きされないようです。このため、このフォルダは無効にします。

```auto
# mv themes/classic/mails themes/classic/mails_backup

```

下記変換コマンド（または管理画面のEmail Themeから）で作成されるメールテンプレートhtml.txtファイルは、`mails/en, mails/ja` ディレクトリに保存されます。

```auto
# bin/console prestashop:mail:generate -o true classic en-US
# bin/console prestashop:mail:generate -o true classic ja-JP

```

メールテンプレートについては以下も参照。

> [@PrestaShop + Docker](https://forum.ficusonline.com/t/topic/380/11):
>
> E-Mailテンプレートの編集 ModernよりもClassicテーマの方がレイアウトが整然としていて見やすいです。 メールで使用される各テンプレートは、テーマ毎 (Modern, Classic) に mails/themes に纏められています。 mails/themes フォルダ内の各テーマの twig ファイルから、html または txt 形式のファイルが作成されます（この作成…

---

_[View the full topic](https://forum.ficusonline.com/t/topic/536)._
