- 상태
- 해결됨
- 보고된 제품
- 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 설정이 손상된 경우 다음을 수행하세요.
- 진행하기 전에 사이트를 전체 백업하세요.
- 재설정 버튼을 사용하거나 다음 단계를 따라 Divi 설정을 재설정하세요.
- functions.php 파일에 다음 코드를 추가하세요.
add_action ('init', function () { delete_option ('et_divi'); }); - 백엔드에서 기본 언어로 아무 페이지나 여세요.
- 기본 언어를 유지한 상태에서 테마 설정을 다시 저장하세요. 이렇게 하면 Divi 테마 옵션이 재설정됩니다.
- 이 코드를 제거하세요.
- Divi 설정이 더 이상 손상되지 않은 상태가 되면 플러그인을 업데이트하고 Divi 설정을 정상적으로 업데이트할 수 있습니다.