WPML
สถานะ
แก้ไขแล้ว
รายงานสำหรับ
WPML Multilingual CMS 4.4.6
แก้ไขใน
4.4.7

ภาพรวมของปัญหา

หากคุณใช้งานปลั๊กอิน Elementor คุณอาจพบข้อผิดพลาดนี้เมื่อใช้วิดเจ็ตบางตัว:

Warning: preg_match_all(): Unknown modifier ‘a’ in …/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-elementor/src/class-wpml-elementor-urls.php on line 58 Warning: preg_match_all(): Unknown modifier ‘r’ in …/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-elementor/src/class-wpml-elementor-urls.php on line 57

วิธีแก้ปัญหาชั่วคราว

ปัญหานี้จะได้รับการแก้ไขใน WPML เวอร์ชันที่เผยแพร่ถัดไป

ผู้ใช้ที่ได้รับผลกระทบสามารถแก้ไขปัญหาได้ในระหว่างนี้ โดยการแก้ไขไฟล์ต่อไปนี้: wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-elementor/src/class-wpml-elementor-urls.php ประมาณบรรทัดที่ 52:

จาก:

	public function is_pagination_url( $is_pagination_url_in_post, $url, $post_name ) {

		return $is_pagination_url_in_post

เป็น:

	public function is_pagination_url( $is_pagination_url_in_post, $url, $post_name ) {

        $post_name = preg_quote( $post_name, '/' );

		return $is_pagination_url_in_post

** โปรดอย่าลืมสำรองไฟล์และฐานข้อมูล WordPress ของคุณก่อนที่จะแก้ไขไฟล์

ปัญหาที่ทราบแล้วทั้งหมด →