- สถานะ
- เปิด
- รายงานสำหรับ
- WPML Multilingual CMS 4.8.0
- แท็กหัวข้อ
- Bug
ภาพรวมของปัญหา
ขณะบันทึกโพสต์ที่มีรายการสื่อด้วย Bricks builder คุณอาจพบ “Error on save: HTTP code 200”
วิธีแก้ปัญหาชั่วคราว
นักพัฒนาของเรากำลังดำเนินการแก้ไขปัญหานี้อยู่
โปรดอย่าลืมสำรองข้อมูลก่อนที่จะดำเนินการใช้วิธีแก้ปัญหาชั่วคราวด้วยโค้ด!
ในการใช้วิธีแก้ปัญหาชั่วคราว ให้ไปที่: /wp-content/plugins/sitepress-multilingual-cms/classes/media/duplication/class-wpml-media-attachments-duplication.php
หลังจากบรรทัดนี้:
$lang = $this->sitepress->get_language_for_element( $post->ID, 'post_' . $post->post_type );
ให้เพิ่มเงื่อนไขนี้:
if ($lang == NULL) {
$not_revision = get_post_parent($post->ID);
$lang = $this->sitepress->get_language_for_element( $not_revision->ID, 'post_' . $post->post_type );
}