- ステータス
- 解決済み
- 報告対象
- WPML Multilingual CMS 4.6.13
- 解決されたバージョン
- Elementor Pro 3.26.0
- 関連するプラグイン/テーマ
- Elementor
- トピックタグ
- Compatibility
問題の概要
高度な翻訳エディタ(ATE)で、フォームウィジェットや類似のウィジェット(検索ウィジェットなど)を含む翻訳されたElementorページを保存する際、致命的なエラーが発生し、投稿が保存されない場合があります。これは特に、ElementorのNested Elements機能が有効になっている場合に発生します。
PHP Fatal error: Uncaught Error: Call to a member function get_main_id() on null in /plugins/elementor-pro/core/utils.php:80
回避策
続行する前に、必ずサイトの完全なバックアップを作成してください。
- …/wp-content/plugins/elementor-pro/core/utils.phpファイルを開きます。
- 80行目を探します。
- 次のコードを:
if ( isset( Plugin::elementor()->documents ) ) { - 次のように置き換えます:
if ( isset( Plugin::elementor()->documents ) && Plugin::elementor()->documents->get_current() ) {