WPML
ステータス
解決済み
報告対象
WPML String Translation 3.1.0
解決されたバージョン
3.1.2

問題の概要

Diviテーマを使用してページを更新または新規作成しようとすると、このエラーが発生します:

PHP Fatal error: Uncaught Error: Object of class stdClass could not be converted to string in /home/skinro1q/public_html/wpsystem/wp-content/themes/Divi/epanel/custom_functions.php:271

Stack trace:

#0 .../wp-content/themes/Divi/includes/builder/feature/global-presets/Settings.php(263): et_update_option('builder_custom_...', Object(stdClass))

#1 .../wp-content/themes/Divi/includes/builder/class-et-global-settings.php(636): ET_Builder_Global_Presets_Settings->migrate_customizer_settings(Array)

#2 .../wp-content/themes/Divi/includes/builder/class-et-global-settings.php(21): ET_Global_Settings::set_values()

#3 .../wp-content/themes/Divi/includes/builder/class-et-global-settings.php(721): ET_Global_Settings::init()

#4 .../wp-includes/class-wp-hook.php(287): et_builder_init_global_settings(Object(WP))

#5 .../wp-includes/class-wp-hook.php(311): in .../wp-content/themes/Divi/epanel/custom_functions.php on line 271

回避策

この問題が発生した場合は、以下の手順で解決できます。


  • 最後に安定して動作していたバックアップを復元します。

  • WPMLプラグインをアップデートします。

ただし、セカンダリ言語での保存時にDiviの設定が破損した場合は、以下の手順に従ってください。


  1. 続行する前に、サイトの完全なバックアップを作成してください。

  2. リセットボタンを使用するか、以下の手順に従ってDiviの設定をリセットします。

  3. functions.phpファイルに以下のコードを追加します。
    add_action ('init', function () {
    delete_option ('et_divi');
    });


  4. デフォルト言語でバックエンドの任意のページを開きます。

  5. デフォルト言語のまま、テーマの設定を再度保存します。これにより、Diviのテーマオプションがリセットされます。

  6. このコードを削除します。

  7. Diviの設定の破損が解消されたら、通常通りプラグインをアップデートし、Diviの設定を更新できます。

すべての既知の問題 →