WPML
Status
Resolved
Reported for
WPML String Translation 3.1.0
Resolved in
3.1.2

Overview of the issue

When you try to update or create a new page Using Divi theme, you’ll get this error:

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

 

Workaround

If you have experienced this issue, you can solve it doing the following:


  • Restore your last stable backup.

  • Update your WPML plugins

 

However, if your Divi settings have been corrupted when saving in a secondary language, then:


  1. Please, make a full backup of your site before proceeding.

  2. Reset your Divi settings by using the Reset button or by following these steps:

  3. Add the following code into your functions.php file.
    add_action ('init', function () {
    delete_option ('et_divi');
    });


  4. Open any page on the backend in the default language.

  5. Save the theme settings again staying in the default language. This will reset your Divi theme options.

  6. Remove this code.

  7. Once your Divi settings are no longer corrupted, you can update your plugins and update the Divi settings normally.

All known issues →