Resolved

Reported for: WPML Multilingual CMS 4.0.3

Resolved in: 4.0.4

Symptoms

You might encounter a performance issue when saving a post that uses certain page builders.

We have identified the problem and it will be fixed in our next release of WPML.

The issue is caused by running save actions on AJAX request and can be fixed by applying the patch presented below.

Workaround

Edit the class-wpml-pb-string-translation.php file found in the ../sitepress-multilingual-cms/vendor/wpml/page-builders/src/st/ folder.

Remove the following code at lines 30, 31 and 32:


 if ( defined( 'DOING_AJAX' ) && DOING_AJAX || defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) {
$this->save_translations_to_post();
}

 

 

2 Responses to “Performance issues while saving posts with certain page builders”

  1. Dear all,
    I cannot save the translations into other languages, the page hangs up without any change. It seems there´s a problem with DB quiery, DB does not respond. What are the ways to solve it?
    Thanks a lot