- Status
- Resolved
- Resolved in
- WPML Multilingual CMS 3.9.3
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
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.