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 파일과 데이터베이스를 백업하세요.

알려진 모든 문제 →