Skip Navigation

Resolved

Reported for: WPML Multilingual CMS 4.4.6

Resolved in: 4.4.7

Topic Tags: Page Builders

Overview of the issue

If you are using the Elementor plugin, you may get this error when using some widgets:

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

Workaround

This issue will be resolved in the next release of WPML.

Affected users can resolve the issue until then by correcting the following file:
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/page-builders-elementor/src/class-wpml-elementor-urls.php around line 52:

From:

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

		return $is_pagination_url_in_post

To:

	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

** Please remember to backup your WordPress files and database before editing the files.

2 Responses to “Elementor - Warning: preg_match_all(): Unknown modifier 'a' in .. /page-builders-elementor/src/class-wpml-elementor-urls.php on line 58”

  1. Hi,
    What I’ve to do to fix this problem?
    I contacto to support and he send me to you…
    But I can’t fix the problem!
    Please, I need urgent assistance!!
    Thanks