WPML

Overview of the Issue

If you recently upgraded the Divi theme to the 3.0.99 version, you have probably seen the HTTP error 500 page or the following PHP error in your PHP debug log:

Fatal error: Call to undefined function et_builder_register_layouts() in .../plugins/sitepress-multilingual-cms/compatibility/divi/class-wpml-compatibility-divi.php on line 71

Workaround

This issue is fixed in WPML Multilingual CMS 3.9.3. Updating solves it on your site, so you only need this workaround if you can’t update yet.

After making a full backup of your site, please add the following code to the functions.php file found in the Divi theme folder.

if ( ! function_exists( 'et_builder_register_layouts' ) ) {
    function et_builder_register_layouts() {
        require_once ET_BUILDER_DIR . 'feature/Library.php';
    }
}

You can edit the functions.php file of the child theme, if you’re using one, instead of the parent theme.

This prevents losing the change if the parent theme gets updated, until a fix is provided in the next version of WPML.

All known issues

Still Seeing This Issue?

If updating doesn’t fix it, ask a support question and we’ll look into it with you.