Skip Navigation

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

Problem:
The client was unable to save changes when trying to use personalized flags for different languages on their WPML settings page. Despite attempting to save, the page did not respond, and no confirmation of 'Changes Saved' appeared. The issue persisted even after deactivating cache and security plugins.
Solution:
We identified that the problem was not related to the flags themselves but was due to a JavaScript error on the language edit page. Here are the steps we recommend:
1) Navigate to WPML > Settings > Translation Mode and change it to 'Translate What You Choose'.
2) Return to the language settings and attempt to add the image and save again.
If these steps do not resolve the issue, it might be because the solution is outdated or not applicable to your specific 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. If the problem persists, please open a new support ticket.

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 5 replies, has 3 voices.

Last updated by Bobby 3 months, 4 weeks ago.

Assisted by: Bobby.

Author Posts
October 8, 2024 at 3:26 am #16263760

jesus-pabloE

Background of the issue:
I am trying to allow languages to use personalized flags (en_US & es_MX) and save the changes on the page: hidden link.

Symptoms:
When I try to save, nothing happens. I expected to see 'Changes Saved', but instead, I got nothing.

Questions:
Why are the changes not being saved?
Is there a specific setting I need to adjust to allow personalized flags?
Is the page blocked from making changes?
Why is Idioms editing having trouble saving and making the change?

October 8, 2024 at 12:15 pm #16265324

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

Thanks for contacting us.

While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.

1) To confirm your website allows upload of SVG files, please try to upload it first to your Media library.

2) If that works fine, please try to disable any cache or security plugin you may have and re-try again to upload flags for language.

Let us know how it goes.

Regards,
Drazen

October 8, 2024 at 4:26 pm #16266728

jesus-pabloE

I tried the same with png file by desactivating cache and security.

wp super cache and really simple security has nothing to do with the issue. Also tried many options that had to restore backup many times.

I have another website with the same configuration and it works.

Screenshot 2024-10-08 102424.png
October 8, 2024 at 4:34 pm #16266802

jesus-pabloE

When PNG upload option format PNG was selected

Screenshot 2024-10-08 103355.png
October 8, 2024 at 10:39 pm #16267513

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

October 11, 2024 at 7:16 am #16277756

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

I was able to reproduce the error and it looks like it's not related to the flags but rather an issue with the language edit page.

If you go to WPML->Languages->Edit languages-> click in the default locale box (it will enable the save option), and click save, nothing will happen.

The console is logging the following error:

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'value')
at app.js?ver=4.6.13:57:16159
at NodeList.forEach (<anonymous>)
at app.js?ver=4.6.13:57:15980
at app.js?ver=4.6.13:57:16344
at app.js?ver=4.6.13:57:2743
at app.js?ver=4.6.13:57:2437
at app.js?ver=4.6.13:57:2717
at o (app.js?ver=4.6.13:57:2761)
at app.js?ver=4.6.13:57:2818
at d (app.js?ver=4.6.13:43:77106)

Try this workaround and let me know your results please:

1) WPML > Settings> Translation Mode, change to "Translate What You Choose"
2) Head back to add the image and save

does it save OK now?

October 11, 2024 at 4:01 pm #16280567

jesus-pabloE

My issue was resolved following the directions specified.

Thank you very much for your time.

You deserve the heads up