Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+02:00)

Tagged: 

This topic contains 10 replies, has 0 voices.

Last updated by Itamar 19 hours, 30 minutes ago.

Assisted by: Itamar.

Author Posts
December 29, 2025 at 3:10 pm

Kresimir

I'm getting a notice in PHP: Compilation failed: regular expression is too large at offset 33955 in wpml-string-translation/inc/admin-texts/wpml-admin-text-functionality.class.php

December 30, 2025 at 1:06 pm #17696842

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

So far, I have been unable to create a copy of your site. I'm also not able to use the admin of your site. I can access it, but after a few seconds, I get the server protection Sign In message. Please see the attached screenshot. The credentials you provided do not work for me in the admin. I was able to connect with FTP. I see the following warnings in the debug.log.

[30-Dec-2025 12:34:39 UTC] PHP Warning:  Undefined array key "wordpress_logged_in_10ffba3c342d9e9b305818313e8e81fd" in /www/gemmav2_136/public/wp-content/plugins/sitepress-multilingual-cms/classes/menu/ams-ate-console/AbstractConsoleSection.php on line 289
[30-Dec-2025 12:35:13 UTC] PHP Warning:  preg_match(): Compilation failed: regular expression is too large at offset 33955 in /www/gemmav2_136/public/wp-content/plugins/wpml-string-translation/inc/admin-texts/wpml-admin-text-functionality.class.php on line 117

I'm consulting our second-tier supporters about the error message you get and will keep you updated.

Regards,
Itamar.

2025-12-30_14-21-19.jpg
December 31, 2025 at 8:50 am #17698128

Kresimir

I think the prompt to renter the credentials for the htpasswd is WPML trying to login. Since we have multiple domains (one for each language) this happens to me when I log in into staging and then I'm required to enter the credentials for each of the domains. I tried the same credentials as the ones I gave you and they work. If you want I can enter them again? I can also disable htpasswd if it will make things easier for you?

December 31, 2025 at 9:48 am #17698240

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I have tried using htpasswd on each domain of your site, but I still get this problem. After a few seconds, I get the pop-up to insert the htpasswd again. I think it is better if you disable htpasswd.

I can also see that our second-tier supporter has already sent a message to our developers asking them about the error messages we get.

[30-Dec-2025 12:34:39 UTC] PHP Warning:  Undefined array key "wordpress_logged_in_10ffba3c342d9e9b305818313e8e81fd" in /www/gemmav2_136/public/wp-content/plugins/sitepress-multilingual-cms/classes/menu/ams-ate-console/AbstractConsoleSection.php on line 289
[30-Dec-2025 12:35:13 UTC] PHP Warning:  preg_match(): Compilation failed: regular expression is too large at offset 33955 in /www/gemmav2_136/public/wp-content/plugins/wpml-string-translation/inc/admin-texts/wpml-admin-text-functionality.class.php on line 117

We are still waiting for their reply.

In the short time I was connected to the admin, I noticed that the Duplicator plugin I installed had been removed. It seems there are many restrictions from your server or a security plugin. Can you please send us a package of your site? You can upload it to a service like Google Drive or Dropbox and share the link with me. For this, I'll enable private messaging for the following reply. Please reduce the package's size to the minimum possible, as handling large packages consumes time. For example, you can exlude media files and site backup files.

Thanks,
Itamar.

December 31, 2025 at 9:55 am #17698251

Kresimir

I've disabled the htpasswd. The plugin was removed by our CI/CD pipeline. Since we're working on the site also some changes got deployed and we're using version control to handle all the code changes the deployment pipeline removes anything not in our Git repository. Sorry about that but adding plugins manually to a site is a procedure we don't use in our development. I'll notify the rest of the team not to use the staging environment for the time being. You can add the Duplicator plugin again. I can make a package for the site if you require that also, just let me know.

December 31, 2025 at 10:23 am #17698263

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

Another attempt with the Duplicator plugin failed. Yes, please send me a package of your site.

Thanks,
Itamar.

January 1, 2026 at 8:06 pm #17699501

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

Thanks for sending the package of your site. I've sent it to our second-tier supporters. We will keep you updated on this issue as soon as we have news.

I appreciate your patience.
Itamar.

January 16, 2026 at 12:39 pm #17736936

Kresimir

We need to deploy some changes on our staging site. Is to OK that we use it? I'm asking since deploying removes the code you added because it's not in our Git repository.

January 18, 2026 at 9:19 am #17739847

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I have workarounds suggested by our second-tier supporter to share with you.

1. For error 1 (see below).

[30-Dec-2025 12:34:39 UTC] PHP Warning:  Undefined array key "wordpress_logged_in_10ffba3c342d9e9b305818313e8e81fd" in /www/gemmav2_136/public/wp-content/plugins/sitepress-multilingual-cms/classes/menu/ams-ate-console/AbstractConsoleSection.php on line 289

Add the folowing function to the functions.php of your theme.

// WPML Workaround for wpmltriage-3791
add_action('admin_init', function () {
    if ( is_user_logged_in() ) {
        return;
    }
    if ( defined('LOGGED_IN_COOKIE') && !array_key_exists(LOGGED_IN_COOKIE, $_COOKIE) ) {
        $_COOKIE[ LOGGED_IN_COOKIE ] = null;
    }
});

2. For error 2 (see below).

[30-Dec-2025 12:35:13 UTC] PHP Warning:  preg_match(): Compilation failed: regular expression is too large at offset 33955 in /www/gemmav2_136/public/wp-content/plugins/wpml-string-translation/inc/admin-texts/wpml-admin-text-functionality.class.php on line 117

Edit this file with a code editor: /wp-content/plugins/wpml-string-translation/inc/admin-texts/wpml-admin-text-functionality.class.php on line 117

replace:

		$matcher            = '#^' . join( '|^', $blacklist_prefixes ) . '#';

		return array_key_exists( $option_name, $black_list )
			   || preg_match( $matcher, $option_name ) === 1;

with:

foreach ( $blacklist_prefixes as $prefix ) {
    if ( str_starts_with( $option_name, $prefix ) ) { // <--PHP8+, if you're on PHP7: if ( strpos( $option_name, $prefix ) === 0 ) {
        return true;
    }
}
return array_key_exists( $option_name, $black_list );


**** Important! Please make a full site backup (files and DB) before you proceed with those steps****

Yes, you can use the staging site. We don't need anymore.

The issue had been escalated to our developers, and the fix will be included in future versions of our plugins. We will update you regarding any news.

Regards,
Itamar.

January 19, 2026 at 1:52 pm #17742852

Kresimir

I can confirm the notice is gone. Do you know when will this be added in WPML Multilingual CMS and WPML String Translation plugins?

January 19, 2026 at 2:17 pm #17742912

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I'm glad that the workaround has helped.

I'm sorry, I have no ETA for when the fix for this will be included in a future version of our plugins. The prioritization of such things is up to our developers and management. For I can see it has not been determined yet. Meanwhile, please keep using the suggested workaround, and we will update you once we have news about this issue.

I appreciate your patience.
Itamar.