WPML
ステータス
解決済み
報告対象
WPML Multilingual CMS 4.5.5
解決されたバージョン
4.5.6

問題の概要

WPML設定ページに移動して、カスタムタームメタ翻訳セクションで検索やページネーションを使用しようとしても、機能しません。ブラウザーのコンソールを確認すると、以下のJSエラーが表示されます。

Cannot read properties of null (reading ‘checked’)

回避策

先に進む前に、サイトの完全なバックアップを作成してください。


  1. wp-content/plugins/sitepress-multilingual-cms/classes/menu/mcsetup/class-wpml-tm-mcs-custom-field-settings-menu.phpを開きます。

  2. 120行目を探します。

  3. 次を:
    						if ( esc_attr( $this->kind_shorthand() ) === 'cf' ) {


  4. 次のように置き換えます。
    						if ( esc_attr( $this->kind_shorthand() ) === 'cf' || esc_attr( $this->kind_shorthand() ) === 'tcf' ) {

すべての既知の問題 →