Skip Navigation

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

Problem:

The client reported a bug in the WPML advanced editor where a space was being deleted after a bold tag and before the following text. This issue occurred when editing the bold tag in one field while the following text was in another field. Additionally, the client mentioned a new problem where WPML added a br tag before the following text after some links.

Solution:

1. We noticed the client was using an outdated version of WPML. We recommended updating to the latest version and also updating any other outdated plugins to see if the issue would be resolved.

2. We also advised the client to increase the WordPress memory limit to at least 128 MB, as per WPML's minimum requirements.

3. Lastly, we asked the client to clear the cache of the website, including server-side, and to deactivate the Autoptimize plugin temporarily to check if the issue still persisted.

If the solution provided is not relevant due to being outdated or not applicable to your case, we recommend opening a new support ticket. We also highly suggest checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please contact us through the WPML support forum: https://wpml.org/forums/forum/english-support/.

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.

This topic contains 5 replies, has 2 voices.

Last updated by Marsel Nikolli 1 year, 3 months ago.

Assisted by: Marsel Nikolli.

Author Posts
February 1, 2024 at 9:49 am #15253649

milanP-8

Hi, I have found a bug in the advanced editor - it is deleting a space after a bold tag and before the following text. This bug occurs when 1. the bold tag is one field 2. the following text is in another field 3. and when I edit the bold tag in the first field.

OR
there are several bold or span tags in one field, see screenshots.

The result is a connected word, which should really be two words (thus missing a space). Is there a way, to prevent this somehow?

2024-02-01_11h12_59.png
2024-02-01_11h13_09.png
2024-02-01_10h33_08.png
2024-02-01_10h25_17 - Copy.png
February 1, 2024 at 11:41 am #15254701

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will be happy to help you.

In order to expedite handling your support requests, can you please share WPML support debug information from your site?

* To provide the debug information:

- go to WPML -> Support, in there click on the “debug information” link at the bottom of the page.
- Once on the “debug information” page, select the entire text box content and copy it.
- Go back to our support forum, find the debug information box, and paste it.
More information on the link: https://wpml.org/faq/provide-debug-information-faster-support/

* Please do no paste the debug information on the reply but just in the specific space that should appear on your next reply.

Looking forward to your reply,
Marsel

February 2, 2024 at 9:55 am #15258425

milanP-8

I've submittted the debug info.

February 2, 2024 at 10:04 am #15258455

Marsel Nikolli

Hi,

Thank you for providing the debug info, I've noticed that you are using WPML v4.6.7, I would suggest you update to the latest version v4.6.9.

Also, please update any other plugin that needs update and check if the issue persists.

---

It might not be related to the issue, but according to your debug.info, the WP memory limit needs to be increased, WordPress uses 40Mb as default and the minimum requirements for WPML are 128 MB. (Kindly check this page: https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file right before the line: /* That's all, stop editing! Happy publishing. */

/* Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M');

Let me know how it goes,
Marsel

February 15, 2024 at 1:03 pm #15307154

milanP-8

OK, so I am told that the limits have been set correctly, the plugin has been updated. The space deletion after bold tags bug seems to be corrected now. But there a new similar problem - after some links (not all in one article) the wpml adds <br> before the following text. What can I do with this? Thanks.

2024-02-15_13h54_06.png
2024-02-15_13h53_00.png
2024-02-15_13h52_42.png
February 15, 2024 at 2:19 pm #15307677

Marsel Nikolli

Hi,

Thank you for the update.

Will it be possible to clear the cache of the website (server-side included), and deactivate the plugin Autoptimize?

After, please check if the issue persists and let me know.
Marsel

February 26, 2024 at 5:47 pm #15345706

milanP-8

We have checked with autoptimize, we do not want to turn it off at this stage. There now only one instance on the website, where this happens, so we will leave it for now. Thank you for your help.