ภาพรวมของปัญหา
ใน WordPress เวอร์ชันใหม่ล่าสุด 6.0 โพสต์อาจมีคำศัพท์อนุกรมวิธานที่ถูกทำสำเนา
วิธีแก้ปัญหาชั่วคราว
ปัญหานี้ได้รับการแก้ไขแล้ว การอัปเดตเป็นเวอร์ชันล่าสุดจะแก้ปัญหานี้บนไซต์ของคุณ ดังนั้นคุณจึงต้องใช้วิธีแก้ปัญหาชั่วคราวนี้เฉพาะในกรณีที่คุณยังไม่สามารถอัปเดตได้
ปัญหานี้ควรได้รับการแก้ไขแล้วใน WPML 4.5.8
โปรดสำรองข้อมูลทั้งหมดของไซต์ของคุณก่อนดำเนินการต่อ
- เปิดไฟล์ wp-content/plugins/sitepress-multilingual-cms/classes/query-filtering/class-wpml-term-adjust-id.php
- ค้นหาบรรทัดที่ 59
- เปลี่ยน: PHP
if ( $adjust_id_url_filter_off || ! $this->sitepress->get_setting( 'auto_adjust_ids' ) || $this->is_ajax_add_term_translation() || $this->debug_backtrace->are_functions_in_call_stack( [ 'get_category_parents', 'get_permalink', 'wp_update_post', 'wp_update_term',
- เป็น: PHP
if ( $adjust_id_url_filter_off || ! $this->sitepress->get_setting( 'auto_adjust_ids' ) || $this->is_ajax_add_term_translation() || $this->debug_backtrace->are_functions_in_call_stack( [ 'get_category_parents', 'get_permalink', 'wp_update_post', 'wp_update_term', [ 'WP_Term_Query', 'populate_terms' ],
หมายเหตุ: คุณอาจต้องไปที่ WPMLฝ่ายสนับสนุนแก้ไขข้อมูลภาษา (ใน WPML 5.0 และใหม่กว่า เครื่องมือนี้จะมาพร้อมกับปลั๊กอิน WPML Troubleshooting ซึ่งติดตั้งจาก WPMLActivate & Update) เลือก Products และคลิกที่ปุ่ม Synchronize posts taxonomies ดังรูปด้านล่าง
