翻訳ファイルに関連するエラーのようですね。プラグインのファイルを一つずつ削除してエラーが消えたとのことですが、どのプラグインが原因かは特定できておられますか?
あとは、wp-config.php
ファイルにある WP_DEBUG
定数を true
に設定することで、より詳細なエラー情報が確認できるようになります。
https://ja.wordpress.org/support/article/debugging-in-wordpress/
トピック投稿者
ogoe
(@ogoe)
返信ありがとうございます。
2019年から使用していてアップデートを重ねてきたWORDPRESSのものが今回影響受けたものです。クラシックエディターからブロックエディターに変換しました。
2024年3月に新規でインストールしたものは全く影響を受けていません。
PHP8.3で使用しています。
また影響のあったプラグインは次のものです。
Autoptimize
Cache Enabler
Simple Cloudflare Turnstile
SiteGuard WP Plugin
XML Sitemap Generator for Google
共通しているのはWORDPRESS6.5に対応していないということです。
削除してからそれぞれインストールしましたが、どの順番でもエラーが発生します。
トピック投稿者
ogoe
(@ogoe)
wordpress6.5対応のプラグインXML Sitemap Generator for Googleをインストールし有効化したらエラーが出ました。
wp-config.phpについて正常なサイトとエラーを起こしたサイトを比較したら次の相違がありました。
①データベース参照が正常なものはDatabase settingsで異常なものはMySQL settings
②異常なサイトは下記のコードが欠落していました。
/* Add any custom values between this line and the “stop editing” line. */
/**
- For developers: WordPress debugging mode.
*
- Change this to true to enable the display of notices during development.
- It is strongly recommended that plugin and theme developers use WP_DEBUG
- in their development environments.
*
- For information on other constants that can be used for debugging,
- visit the documentation.
*
- @link https://wordpress.org/support/article/debugging-in-wordpress/
*/
if ( ! defined( ‘WP_DEBUG’ ) ) {
define( ‘WP_DEBUG’, false );
}
トピック投稿者
ogoe
(@ogoe)
今欠落した部分を補完して再度プラグインをインストールしましたが同じエラー表示でした。具体的にはtrueにすることでどこにエラーが表示されるのでしょうか。
トピック投稿者
ogoe
(@ogoe)
classwp-translation-file-mo.php on line161の記述は下記の通りです。
list( $name, $value ) = array_map( ‘trim’, explode( ‘:’, $meta_line, 2 ) );