Skip to content Skip to sidebar

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

Problem:
You are unable to click the save button after uploading a custom flag icon in WPML, and the flag images are not visible on the frontend.
Solution:
To resolve the issue with the save button being unclickable:
1. Enable the Advanced Translation Editor from WPML >> Settings.
2. Disable the 'Translate Everything Automatically' option from WPML >> Translation Management page.
3. Go to WPML >> Languages > Edit Languages, map the Arabic language with Arabic and English language with English, and press the Save button.
4. Disable the Advanced Translation Editor and enable the Classic Translation Editor from WPML >> Settings.

To fix the frontend flag visibility issue:
1. Navigate to LiteSpeed Cache >> Page Optimization.
2. Open the Media Excludes tab.
3. Add the "wpml-ls-flag" class name in the "Lazy Load Image Class Name Excludes" field.

If these steps do not resolve your issues or if the solution seems outdated or irrelevant to your case, we highly recommend 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. Additionally, please feel free to open a new support ticket for further assistance at 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 6 replies, has 0 voices.

Last updated by MUHAMMED ASLAN 2 weeks, 2 days ago.

Assisted by: Noman.

Author Posts
August 24, 2025 at 3:19 pm #17343368

MUHAMMED ASLAN

Background of the issue:
I am trying to edit the flag icon on my site, which is under development, using WPML.

Symptoms:
The save button is not clickable after uploading a custom flag icon.

Questions:

August 24, 2025 at 5:44 pm #17343430

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting WPML Support. Can you please follow the below steps and let me know how it goes:

1. Make sure the minimum requirements for WPML meet:
https://wpml.org/home/minimum-requirements/

2. Make sure you are using the latest version of theme and plugins on your site.

3. Please delete all sorts of caches on your site/server cache if any / plugin cache / CDN cache (if any), clear browser cache, and then see if it resolves the issue afterward.

4. Please try another browser and see if it helps.

If the issue persists, please check the browser console if there are any errors when you try to upload the custom flag.

Also, please add the debug report in the Debug Information box. I have also enabled debug info box for your next reply: https://wpml.org/faq/provide-debug-information-faster-support/

Kindly let me know the results,
Thank you

August 28, 2025 at 9:02 am #17353988

MUHAMMED ASLAN

Here is the debug information. I'm making all your required and have not worked

August 28, 2025 at 3:26 pm #17355936

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for trying the above steps and sharing debug info. Could you please try to follow the below steps and see if this resolves the issue:

1. The current WP Memory Limit on your site is 40MB. The WP memory limit needs to be increased, it's different from PHP memory. PHP memory is fine but WordPress uses 40MB as default in your site. The minimum requirements for WPML are 128MB: https://wpml.org/home/minimum-requirements/

Please add this line to your wp-config.php file to increase WP memory, wp-config.php file is located in the root of your WP install:

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

You can add it anywhere in your file. I recommend placing it right before the following line:

/* That's all, stop editing! Happy blogging. */

2. Please try another browser and see if it helps.

3. If the issue persists, please provide temporary access (WP-Admin and FTP Login info) to your site (preferably staging site), so that I can look into your setup and debug the issue.

Your next answer will be private, meaning only you and I can access it.

=== Please backup your database and website ===

✙ I would need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is essential.

✙ Please provide me with a flag image URL which you want to use on your site.

Thank you

September 4, 2025 at 5:20 pm #17377174

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thanks for providing the login details. This type of issue usually happens when the language mapping fields are not set from WPML >> Languages > Edit languages page. So, I followed the below steps in order to fix this issue:

1. Enabled the Advanced Translation Editor from WPML >> Settings as you can see in the attached screenshot.

2. Disabled the Translate Everything Automatically option from WPML >> Translation Management page.

3. Went to WPML >> Languages > Edit language page, map the Arabic language with Arabic and English language with English and press the Save button.

4. Disabled the Advanced Translation Editor and Enable Classic Translation Editor from WPML >> Settings page.

Then I’m able to upload the custom flag without any issues as you can see in the attached screenshot. Could you please check and confirm?

Thank you for your cooperation

custom flag added.jpg
ATE enabled 1.jpg
disable TEA.jpg
Lang mapp.jpg
September 4, 2025 at 10:20 pm #17377543

MUHAMMED ASLAN

you are now make an issuse in the website yes iam was enable to upload the icon but dosent worked iam try to defiranet logo img and dosnet show me in menu the eng flag is missed please fix it

13.png
1.png
September 5, 2025 at 6:05 am #17377794

Noman
WPML Supporter since 06/2016

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Glad to hear you are able to upload the custom flag now.

For fixing the frontend flag visibility issue, I followed the below steps:

1. Went to the LiteSpeed Cache >> Page Optimization
2. Open the Media Excludes tab.
3. Added the “wpml-ls-flag” class name in the “Lazy Load Image Class Name Excludes” field.

Now, flag images are showing correctly at the front end as you can see in the attached screenshot.

Please let me know if this resolves the issue or if you need further assistance with this issue.

Thank you

English flag 1.jpg
Arabic flag.jpg
exclude flag image.jpg
September 5, 2025 at 8:03 pm #17380340

MUHAMMED ASLAN

thank you he was worked