WordPressのプラグイン「Jetpack」を8.0にアップグレードすると、E_ERRORが発生する

この記事は1年以上前に投稿されたものです。
内容が古い可能性がありますのでご注意ください。

WordPressのプラグイン「Jetpack」を「7.9.1」から「8.0」に更新すると、更新画面でE_ERRORが表示されたので、備忘録として。
ただ、プラグインそのものは更新できており、サイトの表示や動作には問題がない模様。

サイト環境はWordPress 5.3、PHP 7.3です。
エラー内容は以下の通り。(一部省略しています)

Uncaught Error: Class 'Automattic\Jetpack\Roles' not found in /xxxxxxxxxx/wp-content/plugins/jetpack/vendor/automattic/jetpack-sync/src/Listener.php:270

ネット上で情報を探してみたところ、公式メッセージが出ていました。

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.

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

大雑把な把握ですが、以下の内容のようです。

  • このエラーはアップグレード時の一度のみ発生し、その後はエラーは発生しないはずです。
  • 公開サイト側も問題ないと思いますが、キャッシュをクリアする必要があるかもしれません。

ひとまず問題ないということで、様子見となりそうです。

コメントする

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

CAPTCHA