WordPress:Jetpack8.0にアップデート中に「更新失敗: サイトに重大なエラーがありました。」と表示され、それを知らせるメールが届く問題


Wordpressの公式プラグイン"Jetpack 8.0"のアップデートする途中に「更新失敗: サイトに重大なエラーがありました。」と表示されました。

調べたところ、

これが起こる理由は、このJetpackのリリースにあたり幾つかのファイルを移動させた事が原因で、
古い場所でファイルを見つけられなかったと言うことがエラーのトリガーになっているようです。


既にJetpackの公式フォーラムにJetpack製作者のメカニックから説明があがっていました。

 

Fatal Error when updating to Jetpack 8.0? Read this

In some cases, upgrading to Jetpack 8.0 will cause an error like this one:

An error of type E_ERROR was caused in line 270 of the file wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/Listener.php. Error message: Uncaught Error: Class 'Automattic\Jetpack\Roles' not found in wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/Listener.php:270

The error may have been sent to you via an email with the subject line “Your Site is Experiencing a Technical Issue”, or it may have displayed in the Plugins page when you tried to update Jetpack.

This happened because we moved some files around in this Jetpack release, which triggers an error when they cannot be found in their old locations. Your site should still have upgraded to Jetpack 8.0, so refreshing the Plugins page in your dashboard should show that version. The error should only happen once, on upgrade, and not after that

As for the frontend of the site, that should also work fine, though you may want to clear any caches you have just to be sure.

If you continue to experience issues afterwards, do not hesitate to start a new thread here in the forums, or send us an email!

Sorry for the trouble here!

https://wordpress.org/support/topic/fatal-error-when-updating-to-jetpack-8-0-read-this/

 

日本語訳
ジェットパック8.0へアップデートしたときに重大なエラーが起きたときはこれを読んでください。
ジェットパック8.0へアップデートしたときにこのようなのエラーは起きます。

このエラーでは、あなたのメールアドレスへあなたのサイトにテクニカルエラーが発生していますという内容が送られるか、
このプラグインのページが表示されます。

この原因は、いくつかのファイルを移動させたことにより、古いファイルが見つからないことでエラーが引き起こされています。
アップデートさせた方は、ブラウザの再読み込みを試してみてください。
問題なく動きます。


サイトのフロント画面でも問題なく動いています。それでも念のためキャッシュをクリアを試してみてください。

その後も問題が続くなら、このフォーラムに新しいスレッドを立てるか、メールでお知らせください。
ご迷惑をおかけして申し訳ありません。

 

 

なので、再読み込みすると問題なく更新も完了しています。

 

category cloud