Skip to content Skip to sidebar

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 );
}

Leave a Reply

Please stay on topic and be respectful to others. If you need help with issues not related to this post, use our Support Forum to start a chat or submit a ticket.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>