Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client experienced a noticeable slowdown and layout issues with Elementor after installing WPML. Elements such as headers and footers disappeared or appeared broken, and styles like text colors were affected. The issues were resolved upon deactivating WPML.
Solution:
We initially suggested a WPML reset and reinstallation, which did not resolve the issue. After further investigation, we identified the problem was related to the PHP settings on the hosting environment, specifically the

pcre.backtrack_limit

configuration. We applied a workaround by adding the following code to the

wp-config.php

file:

ini_set("pcre.backtrack_limit", 10000000);
ini_set("pcre.jit", 1);

This code increases the

pcre.backtrack_limit

and enables

pcre.jit

, which resolved the issue. More information about

pcre.backtrack_limit

can be found here.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the problem persists, we highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, please open a new support ticket in the WPML support forum.

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.

Tagged: 

This topic contains 15 replies, has 2 voices.

Last updated by Long Nguyen 1 year, 4 months ago.

Assisted by: Long Nguyen.

Author Posts
February 28, 2024 at 6:20 am

gerardR-3

After installing WPML, my site slows noticeably down and some parts of my layout created with Elementor appear broken or just disappear.

February 28, 2024 at 8:39 am
February 29, 2024 at 5:16 am #15356306

gerardR-3

"Noman : This issue arises when we activate WPML String Translation plugin. To further debug this issue, I\'m going to move this chat into a forum ticket and we will get back to you with an update soon."

Just making sure that this hasn't been forgotten, as the client is waiting for the website.

February 29, 2024 at 7:17 am #15356383

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Gerard,

Thank you for contacting WPML support, I’m happy to help you with this issue.

It is very weird. I try some troubleshooting steps on your site, but the header/footer still doesn't work. I take a backup of your site and restore it on my localhost, they display properly without any issues. Please check the attached screenshot.

I think there could be an issue with your hosting but I'm not sure what it is. Please also share the FTP account and I can check some configurations. Your next reply is set to private to share the info.
❌ IMPORTANT: Please backup your database and website before proceeding ❌

Looking forward to your reply.
Thanks

Homepage - ROSAPARKS 2024-02-29 14-08-44.png
February 29, 2024 at 7:59 am
February 29, 2024 at 8:52 am #15356665

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I'm asking our 2nd tier support about this issue and I will update you here when I have something to share.

By the way, was the header also displaying properly in your localhost copy or only the footer?

Yes, both header and footer.

Thanks.

Homepage - ROSAPARKS 2024-02-29 15-51-23.png
February 29, 2024 at 10:07 am #15357163

gerardR-3

Thanks, I'll be waiting.

March 1, 2024 at 1:16 pm #15363136

gerardR-3

Hi,

Please, pause any tests that you might currently be doing on the website. The client needs to edit some content, so I will now restore a backup from before I installed WPML and we will be working on the still clean website before WPML was installed.

We still need assistance, so please don't close this ticket. I'll let you know once you can test again, or I'll soon provide you a copy of the site where you can keep testing.

Thank you. Let's keep in touch.

March 1, 2024 at 2:38 pm #15363480

gerardR-3

Hi again,

I have updated my last private message in this thread with the new credentials for the testing site. Admin credentials and FTP credentials have been provided for the new testing site where you can debug the issue.

Thank you!

We are looking forward to solving this issue.

March 1, 2024 at 3:07 pm #15363594

gerardR-3

Since I had to install WPML on the new test site because it was created from a backup pre-WPML, I recorded a video reproducing the issue from scratch:

hidden link

As you can see, it already happens with the default settings, before I start editing any more options from WPML.

I want to add something else, because although they may look like unrelated support topics, I have the feeling that they might actually stem from the same issue:

According to the documentation for the WP Menus Sync ( https://wpml.org/documentation/getting-started-guide/translating-menus/#easy-customizable-wp-menus-sync ), when I sync a menu, the menu items should be in sync between both languages. However this isn't happening as I show in this other recording:

hidden link

This might be my misunderstanding, maybe it doesn't work until all the content has been translated, or maybe I'm right and it should be synchronizing the menu items with the new language. Please take a look at it as well, or let me know if I am syncing the menus incorrectly so that we can discard this as being a related issue.

March 4, 2024 at 1:28 am #15367415

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

This issue has been escalated to our 2nd tier support. I will let you know once I have any information.

Meanwhile, the login link doesn't work hidden link
please update it in your private message and let me know.

Thanks.

March 5, 2024 at 9:16 am #15373238

gerardR-3

Hi Long,

The login link should be working now. It hasn't changed.

Thank you.

Gerard

March 8, 2024 at 3:46 pm #15390140

gerardR-3

Hi,

Do you have any updates? Our website is on hold because we need this in order to publish it. 🙏🏼

Thank you,
Gerard

March 11, 2024 at 1:37 am #15393033

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

We cannot replicate the issue locally so the 2nd tier support applied the workaround on your test site. The following code below is added to the file wp-config.php to fix the issue:

ini_set("pcre.backtrack_limit", 10000000);
ini_set("pcre.jit", 1);

Can you please confirm it works on your end?

ROSAPARKS – Agencia Creativa 2024-03-11 08-37-09.png
March 11, 2024 at 6:39 am #15393282

gerardR-3

Hi Long,

That seems to be working for now. I've applied it as well to the original site and it's working there as well!

Could we please get an explanation of what was the problem and why are those lines necessary and what do they do? I would like to take notes for if it happens again and to try to find a solution that doesn't require those lines (maybe those settings can be applied from cPanel).

I'll mark this as resolved after we have completed some translations and everything looks well, just in case.

Thank you,
Gerard