WPML
Status
Open
Reported for
WPML Multilingual CMS 4.8.0
Topic tags
Bug

Overview of the issue

While saving a post with media items with Bricks builder you might get “Error on save: HTTP code 200”

Workaround

Our developers are working on the case right now.

Please remember to create a backup before you proceed with the code workaround!

To apply the workaround, go to: /wp-content/plugins/sitepress-multilingual-cms/classes/media/duplication/class-wpml-media-attachments-duplication.php
After this line:

$lang     = $this->sitepress->get_language_for_element( $post->ID, 'post_' . $post->post_type );

add this condition:
if ($lang == NULL) {
   $not_revision = get_post_parent($post->ID);
   $lang = $this->sitepress->get_language_for_element( $not_revision->ID, 'post_' . $post->post_type );
}

All known issues →